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

i am not able to remap

asked 2019-11-03 03:12:44 -0500

sai31267 gravatar image

updated 2019-11-04 03:38:45 -0500

can anyone tell the possible ways to fill the quote actually i have an output i need to match with the output i tried my level best but i cant it is regarding gazebo

<remap from="/camera/camera_info" to=""/>
<remap from="/camera/image_rect_color" to=""/>

image description

edit retag flag offensive close merge delete

Comments

Please attach your screenshots to your question directly. I've given you sufficient karma for that.

gvdhoorn gravatar image gvdhoorn  ( 2019-11-04 02:46:06 -0500 )edit

i am not able to upload screen shot it is showing the file name but i cant upplaod

sai31267 gravatar image sai31267  ( 2019-11-04 03:10:21 -0500 )edit

It's not entirely clear to me what isn't working for you.

For screenshots to appear, you need to click the image button (next to the button with 101010 on it) and then follow the prompts.

gvdhoorn gravatar image gvdhoorn  ( 2019-11-04 03:14:50 -0500 )edit

yes bro done thank

sai31267 gravatar image sai31267  ( 2019-11-04 03:44:35 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2019-11-03 16:27:17 -0500

FailFTW gravatar image

You just to it on a single tag.

<remap from="rgb/image"          to="/camera/rgb/image_raw"/>

A more complete example below. Note the "node" tag, because you're launching a node and remapping it's topics.

<node name="rtabmap" pkg="rtabmap_ros" type="rtabmap" output="screen">
    <remap from="scan" to="/scan"/>
    <remap from="camera" to="/camera1"/>
</node>

Doing it with an include file like below WILL NOT work i don't think (someone correct me if im wrong).

<include if="$(arg kinect)" file="$(find openni_launch)/launch/openni.launch">
    <remap from="camera"            to="/camera1"/>
</include>

Also, note that "scan" is different from "/scan". Having only "scan" without the "/" will place the topic under whatever namespace your node is running.

Take the rtabmap example above. Putting to="/scan" will use the topic "/scan". Using to="scan" will put it under "/rtabmap/scan".

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2019-11-03 03:12:44 -0500

Seen: 361 times

Last updated: Nov 04 '19