ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
According to the docs (http://wiki.ros.org/roslaunch/XML/remap) remap affects all subsequent nodes.
Therefore you might want to try:
<launch>
<remap from="turtlebot_teleop_keyboard" to="teleop"/>
<include file="$(find turtlebot_teleop)/launch/keyboard_teleop.launch"/>
</launch>
2 | No.2 Revision |
According to the docs (http://wiki.ros.org/roslaunch/XML/remap) remap affects all subsequent nodes.
Therefore you might want to try:
<launch>
<remap from="turtlebot_teleop_keyboard" to="teleop"/>
<include file="$(find turtlebot_teleop)/launch/keyboard_teleop.launch"/>
</launch>
Update:
I have tried it with a simple example and having the remap tag before the node tag is the correct way:
<launch>
<remap from="chatter" to="foobar"/>
<node pkg="rospy_tutorials" type="talker" name="talker"/>
</launch>
Are you sure your teleop node actually has that topic? It looks the launch file you are using might already perform some kind of remapping internally: https://github.com/turtlebot/turtlebot_apps/blob/9ab88c750754aab1c5b26ad68a03f5e1041207fd/turtlebot_teleop/launch/keyboard_teleop.launch
3 | No.3 Revision |
According to the docs (http://wiki.ros.org/roslaunch/XML/remap) remap affects all subsequent nodes.
Therefore you might want to try:
<launch>
<remap from="turtlebot_teleop_keyboard" to="teleop"/>
<include file="$(find turtlebot_teleop)/launch/keyboard_teleop.launch"/>
</launch>
Update:
I have tried it with a simple example and having the remap tag before the node tag is the correct way:
<launch>
<remap from="chatter" to="foobar"/>
<node pkg="rospy_tutorials" type="talker" name="talker"/>
</launch>
Are you sure your teleop node actually has that topic? It looks the launch file you are using might already perform some kind of remapping internally: https://github.com/turtlebot/turtlebot_apps/blob/9ab88c750754aab1c5b26ad68a03f5e1041207fd/turtlebot_teleop/launch/keyboard_teleop.launch
Update 2: this only describes how to remap a topic. Remapping a node name is not possible using roslaunch
. If you have control over the launch file you can use an argument to allow passing in a different name for the node name.