ros配置launch文件

作者:Keysqiu
创建时间:2025-11-30 18:19:01 最后一次修改时间:2025-11-30 18:19:01
Categories: Tags:

1.选定功能包右击 —> 添加launch文件夹
2.选定launch文件夹右击 —> 添加launch文件
3.编辑launch文件内容

<launch>
    <node pkg="helloworld" type="demo_hello" name="hello" output="screen">
    <node pkg="turtlesim" type="turtlesim_node" name="t1">
    <node pkg="turtlesim" type="turtle_teleop_key" name="key1">
</launch>
roslaunch 包名 launch文件名

5.运行结果:一次性启动了多个节点