Add Gazebo simulation plug-in for IMU and camera modules #4
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.
This pull request adds IMU and camera simulation modules for the Alphasense. In the process it was necessary to rotate the
_optical_frame
as it was not oriented correctly (see the images below). The old incorrect frame still exists as_frame
:There are still some frame inconsistencies that persist. The links do not have the same name as the ones published by the Alphasense driver. The Alphasense driver publishes
camX_sensor_frame
whereX
is an integer while the ones inside the URDF are calledcam_front_left
,cam_front_right
,cam_side_right
, ... Similarly for the IMU where the driver publishesimu_sensor_frame
but inside the URDF the corresponding link is calledalphasense_imu
. I do not want to fix these inconsistencies as they might break somebody's URDF that build on them.The current configuration neglects lens distortion. The reason for this is that the
kalibr
calibration values I have at hand only output distortion values for the equidistant distortion model (see here) while Gazebo only supports the radial tangential Brown–Conrady (see here). More information about this can be found on several issues onkalibr
(e.g. #17 and #226). Somebody posted also a Matlab script for approximating the equidistant distortion model with the Brown-Conrady (RadTan) distortion model.