Open RValner opened 4 years ago
Hi
I need to remap camera info_topic and camera image_topic individually but it seems that the info_topic is tied to image_topic. As a result I cannot remap the info_topic in a predictable manner.
info_topic
image_topic
I can see that info_topic is named by removing the last token (separated by '/') of image_topic and then "camera_info" is added to the resulting token vector.
For example if I try remap the image_topic by running usb_cam (which uses the image_transport package)
$ rosrun usb_cam usb_cam_node /usb_cam/image_raw:=my_image_raw/remapped
and do rostopic list, this is what I get:
rostopic list
/my_image_raw/camera_info /my_image_raw/remapped
where you can see that image_topic is remapped correctly but info_topic is affected as a result. The only way I can remap the info_topic now is to
rosrun usb_cam usb_cam_node /usb_cam/image_raw:=my_image_raw/remapped /my_image_raw/camera_info:=my_camera_info/remapped
and then I get the result I need:
/my_camera_info/remapped /my_image_raw/remapped
Is there a valid reason for binding the info_topic with image_topic?
Hi
I need to remap camera
info_topic
and cameraimage_topic
individually but it seems that theinfo_topic
is tied toimage_topic
. As a result I cannot remap theinfo_topic
in a predictable manner.I can see that
info_topic
is named by removing the last token (separated by '/') ofimage_topic
and then "camera_info" is added to the resulting token vector.For example if I try remap the
image_topic
by running usb_cam (which uses the image_transport package)and do
rostopic list
, this is what I get:where you can see that
image_topic
is remapped correctly butinfo_topic
is affected as a result. The only way I can remap theinfo_topic
now is toand then I get the result I need:
Is there a valid reason for binding the
info_topic
withimage_topic
?