How to remap freenect_launch /camera/depth_registered/points?
I have a package that listens for image data from a Kinect on /dodo_detector_ros/image_feed
and for point cloud data on /dodo_detector_ros/pointcloud_feed
. When I use the kinect2_bridge
package with Kinect v2, I am able to remap topics from kinect2_bridge
to the addresses my package listens to, like so.
<remap from="/kinect2/hd/image_color" to="/dodo_detector_ros/image_feed"/>
<remap from="/kinect2/hd/points" to="/dodo_detector_ros/pointcloud_feed"/>
<include file="$(find kinect2_bridge)/launch/kinect2_bridge.launch"/>
...
I am also able to remap a camera's image topic to the address my package listens to and it works (here I am ignoring the point cloud).
<remap from="/image_raw" to="/dodo_detector_ros/image_feed"/>
<node name="camera" output="screen" pkg="uvc_camera" type="uvc_camera_node" />
...
However, when I use freenect_launch
with Kinect v1 and remap its topics like so, only the image topic is remapped. The remapped point cloud topic is created, but nothing is published on /dodo_detector_ros/pointcloud_feed
.
<remap from="/camera/rgb/image_color" to="/dodo_detector_ros/image_feed"/>
<remap from="/camera/depth_registered/points" to="/dodo_detector_ros/pointcloud_feed"/>
<include file="$(find freenect_launch)/launch/examples/freenect-registered-xyzrgb.launch"/>
...
If I remove the remap commands from this last launch file and create subscribers that point directly to /camera/rgb/image_color
and /camera/depth_registered/points
, my package works fine. This is odd as it seems I am following the same pattern in all three launch files. Can someone help me?
Can you create an answer and post your solution in there?
@jayess done.