ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Remaping topics doesn't work

asked 2016-11-11 07:02:15 -0500

eed gravatar image

updated 2016-11-11 08:14:13 -0500

gvdhoorn gravatar image

Hi I'm using Ros and I have some Camera-Data on topic


now I want to remap them to


Here the code I use:

<include file="$(find kinect2_bridge)/launch/kinect2_bridge.launch">
    <param name = "_depth_method"   value="cuda" />
    <param name = "_reg_method"     value="cpu" />
    <remap from="/camera/depth/points"  to="/kinect2/sd/points"/> 

Now if I listen with "rotopic echo" to the topic of "kinect2/sd/points" I got many output. But if I listen to the topic "/camera/depth/points" I get no Data.

Can anybody help me is the order of the remap right=?

edit retag flag offensive close merge delete


You want to map from /kinect2/sd/points to /camera/depth/points and you have

<remap from="/camera/depth/points" to="/kinect2/sd/points"/>

you need

<remap from="/kinect2/sd/points" to="/camera/depth/points"/>

They're the wrong way around

MarkyMark2012 gravatar image MarkyMark2012  ( 2016-11-12 08:16:49 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2016-11-11 08:08:17 -0500

MarkyMark2012 gravatar image

updated 2016-11-11 08:09:14 -0500

You won't get output. The topic, as you mentioned, has been remapped. The node doesn't duplicate the data

If you want to duplicate the topic then use relay:


edit flag offensive delete link more

Question Tools

1 follower


Asked: 2016-11-11 07:02:15 -0500

Seen: 1,054 times

Last updated: Nov 11 '16