Use realistic LiDAR position in simple_sensor_simulator #1235
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Abstract
Fixes for #1193
Background
As I mentioned at #1227, LiDAR origin passed to Raycaster is too low (Ego bottom), and it detects objects that should be occluded.
Details
To make LiDAR realistic, this PR will change LiDAR position to top of the Ego vehicle.
Before
After
In the images, pink points are LiDAR scan.
Before this PR, LiDAR is located on the bottom of the vehicle and reads the pedestrian's feet. This is not realistic and detects some objects that should be occluded.
The after image shows that the pedestrian is occluded by npc1 and does not appear in the LiDAR scan results.
Note
In some cases, OccupancyGridSensor emits objects that we thought it was occluded (like images on #1193). This is because simulator converts three dimensions into two-dimensional information.
As research of Autoware probabilistic_occupancy_grid_map, such situation can be happen in real sensor.
In order to mimic Autoware's behavior, I have not excluded such cases.
Destructive changes
LiDAR is repositioned to the top of vehicle.
Because of this change, errors may be seen in some scenarios. Regression test is needed.