Conform to ros format for header field frame_id of sensor msgs#111
Conform to ros format for header field frame_id of sensor msgs#111doisyg wants to merge 1 commit into
Conversation
Signed-off-by: Guillaume <guillaume.doisy@wyca.fr>
f50de8d to
26515e7
Compare
|
This would break existing usage in SubT where multiple robots that each have a sensor with the same name use the prefix as a way to differentiate themselves. For this to work, the conversion from As an alternative to this PR, maybe we can add an option to ign-sensors/ign-gazebo to report frame ids using just the name of the sensor instead of the fully qualified name. |
I agree with the alternative, how would you see this option exposed ? As an sdf attribute of the sensor plugging (which will apply this option to all sensors) or as new sdf attribute under the |
|
I would like to move forward on this topic, @chapulina , any advice on how to tackle it ? Implementing @azeey suggestion ? But how ? |
How about adding support for a custom For example: Then |
|
@doisyg , are you still interested in working on this? |
|
Still interested in the feature, still interested in working on it if nobody takes care of it, but I don't immediately have time |
|
@ros-pull-request-builder retest this please |
|
I think this PR/discussion is related with this other PR https://github.com/ignitionrobotics/ign-sensors/pull/195/files |
Reading the discussion I will work on a more generic solution in |
|
I udpated the PR gazebosim/gz-sensors#195 here is my solution I couldn't use |
|
@doisyg , what's the status of this PR? We just synced Citadel to packages.ros.org, so if you were waiting on any releases, this should be unblocked. |
|
Closing in favor of gazebosim/gz-sensors#195 and gazebosim/gz-sensors#218 |
Should partially solves gazebosim/gz-sim#340
The
frame_idfield of the header of a sensor msg will now be the name given in the sdf sensor name attribute instead of the full chain of links.Example with
<sensor name='laser' type='gpu_lidar'>Before:
After:
However, in case of multi robot simulation, one should take care of properly prefixing the frame_id names to ensure each stays globally unique. See for instance, an example of a multiple camera launch file with a macro for proper prefixing of the frame_id field in the format
tf_prefix_frame_id_nameand without/:https://github.com/IntelRealSense/realsense-ros/blob/development/realsense2_camera/launch/rs_multiple_devices.launch