<launch>
<node pkg="turtlesim" type="turtlesim_node" name="myturtle" output="screen" />
<node pkg="turtlesim" type="turtle_teleop_key" name="mykey" output="screen" />
</launch>
roslaunch 包名 xxx.launch
<launch deprecated = "弃用声明">
<!-- 弃用声明,会在运行的过程中进行警告 -->
<node pkg="turtlesim" type="turtlesim_node" name="myturtle" output="screen" />
<node pkg="turtlesim" type="turtle_teleop_key" name="mykey" output="screen" />
</launch>
NODES
/
mykey (turtlesim/turtle_teleop_key)
myturtle (turtlesim/turtlesim_node)
WARNING: [/media/d102/EPAN/Desktop/code_study_ubuntu/rosdemo_05/src/launch_test_01/launch/turtle_start.launch] DEPRECATED: 弃用声明
<launch deprecated = "弃用声明">
<!-- 弃用声明,会在运行的过程中进行警告 -->
<node pkg="turtlesim" type="turtlesim_node" name="myturtle" output="screen" respawn="true" respawn_delay="10" ns="turtle"/>
<node pkg="turtlesim" type="turtle_teleop_key" name="mykey" output="screen" />
</launch>
<launch>
<include file="$(find launch_test_01)/launch/turtle_start.launch" />
<!-- 再加入自己需要的节点 -->
</launch>
sudo apt-get install ros-noetic-teleop-twist-keyboard
rosrun teleop_twist_keyboard teleop_twist_keyboard.py
<launch deprecated = "弃用声明">
<!-- 弃用声明,会在运行的过程中进行警告 -->
<node pkg="turtlesim" type="turtlesim_node" name="myturtle" output="screen" >
<remap from="/turtle1/cmd_vel" to="/cmd_vel" />
</node>
<node pkg="turtlesim" type="turtle_teleop_key" name="mykey" output="screen" />
</launch>