Add camera sensor frame_id variable #806
Closed
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 adds the ability to specify the frame_id that is used when publishing images from the camera sensor. This feature request was noted in CameraSensors.cc and will help close issue 175 in ign-sensors.
This is my first PR here so I'm sure there are a few things I need to clean up. Below are a few questions I had.
sdf12
the correct branch to base this off of?I named the variable
optical_frame_id
because it is associated with the camera_info message which normally contains the header value with the frame_id that is set to the optical frame name of the sensor.I am also looking to add a variable
point_cloud_frame_id
so that I can set the frame_id name that the point cloud is published from (in the current RGBD implementation this value is set to the Name() of the node which does not seem correct or helpful to consumers of the data). I decided to not include that change here until I get some feedback from the maintainers. If you feel that this is in scope of this PR I can add it.🎉 New feature
Summary
This adds the sdf parameter
<optical_frame_id>
to the Camera sensor. This allows the user to specify the frame_id that is returned in the message published from CameraSensor.cc.Test it
This PR only add the ability to specify the tag
<optical_frame_id>
which is not required. Follow up PR's will be made against ign-sensors to utilize it.Checklist
codecheck
passed (See contributing)Note to maintainers: Remember to use Squash-Merge and edit the commit message to match the pull request summary while retaining
Signed-off-by
messages.