-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Naive 3D Scanning Radar #161
Conversation
The following PR adds a simple maritime RADAR. It is by no means complete but since I dont have time on this project anymore I'll leave this here. Bascially, the way this works is very simple. We extend the naive spiinning radar example with a simple plugin. This plugin projects the radar onto a polar coordinate frame. It combines the current lidar position and the lidar return and projects it into a polar plot like maritime radars do. The end user will receive a `ignition.msgs.Float_V`. The first bin contains the angle the radar is currently facing, the second bin will contain the resolution of the bin and the third item is the resolution of each bin. The rest of the FloatV will contain the sampled bins for each location. ## Some things to work on * [ ] Performance. Currently the performance of the system is at 25%RTF when we load the radar simulation. There are some low hanging fruits which I have marked with TODOs that should help boost the performance. In particular we are doing a lot of copying when filling the message. Pre-allocating the message could save some compute time. * [ ] ROS Bridge. Currently the function in the rosbridge looks correct but for whatever reason Im unable to link against the local protobuf runtime. (The Naive RADAR bridge is doing the same for me) * Unit/integration tests ## Stretch Goals * Integrate rain and sea state noise in (see todos in `MaritimeRadar.cc`) For completeness the NaiveRadar should really just populate the RadarTracks message instead of the RadarScan message. Signed-off-by: Arjo Chakravarty <arjo@openrobotics.org>
Signed-off-by: Ian Chen <ichen@osrfoundation.org>
…rom ecm Signed-off-by: Aaron Chong <aaronchongth@gmail.com>
Signed-off-by: Aaron Chong <aaronchongth@gmail.com>
… changed name to naive_3d_scanning_radar Signed-off-by: Aaron Chong <aaronchongth@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did a first pass. Overall looks good. Let's put this in mbzirc_ign/models/sensors
and make it a non-custom sensor model. I can help with this. I'll continue to do more testing.
This approach will leave a lot of gaps for detection, especially at long distances.
looking at the spec, it's 1.44 degrees bearing resolution. So I think that's expected? I see that the lidar horz sample count is 60 / 1.44 = 250, which should be correct.
I have not been able to find any relevant information regarding the sensor noise of the Wartsila RS24. At the moment, it is using the same basic gaussian noise as in mbzirc_naive_radar
This is a shorter range radar than the one in mbzirc_naive_radar
so we may want to reduce the stddev a little bit. One option would be to set it to roughly the range resolution advertized.
Debugging output, I couldn't find any existing tool to visualize or ensure that the radar output is accurate
The lidar visualization look fine but agree we'll need to manually check the radar msg values.
...ustom/mbzirc_naive_3d_scanning_radar/models/sensors/mbzirc_naive_3d_scanning_radar/model.sdf
Outdated
Show resolved
Hide resolved
...ustom/mbzirc_naive_3d_scanning_radar/models/sensors/mbzirc_naive_3d_scanning_radar/model.sdf
Show resolved
Hide resolved
Signed-off-by: Ian Chen <ichen@osrfoundation.org>
I left this in |
Move scanning radar to new model
Signed-off-by: Aaron Chong <aaronchongth@gmail.com>
Signed-off-by: Aaron Chong <aaronchongth@gmail.com>
Signed-off-by: Ian Chen <ichen@osrfoundation.org>
made a minor change in a65456c to unsubscribe to the ign topic if there are no connections from the ros bridge I noticed that when I do |
Signed-off-by: Ian Chen <ichen@osrfoundation.org>
...ustom/mbzirc_naive_3d_scanning_radar/models/sensors/mbzirc_naive_3d_scanning_radar/model.sdf
Outdated
Show resolved
Hide resolved
Signed-off-by: Ian Chen <ichen@osrfoundation.org>
It looks like it might just be too much data for |
Signed-off-by: Aaron Chong <aaronchongth@gmail.com>
ok cool, thanks for verifying this. This PR looks good then. |
Changes:
mbzirc_naive_spinning_radar
withmbzirc_naive_3d_scanning_radar
, due to low RTF issues (40% RTF) when sampling at very high rates (250Hz) to match the specifications of the Wartsila RS24. RTF is now relatively high (90% on my machine, awaiting more testing)naive_radar_bridge
Possible further improvements:
mbzirc_naive_radar
How to try it out: