ROS中rosrun和roslaunch命令的对比
来源:互联网 发布:淘宝首页搜索 编辑:程序博客网 时间:2024/06/05 04:25
在ROS中运行节点的命令有两个:rosrun和roslaunch。
官网上的解释如下:
rosrun allows you to run an executable in an arbitrary package without having to cd (or roscd) there first.
roslaunch is a tool for easily launching multiple ROS nodes locally and remotely via SSH, as well as setting parameters on the Parameter Server. It includes options to automatically respawn processes that have already died. roslaunch takes in one or more XML configuration files (with the .launch extension) that specify the parameters to set and nodes to launch, as well as the machines that they should be run on.
测试发现,rosrun是运行一个单独节点的命令,如果要运行多个节点,则需要使用多次rosrun命令。
而roslaunch采用XML的格式对需要运行的节点进行描述,可以同时运行多个节点。例如:
<launch>
<node name="listener" pkg="rospy_tutorials" type="listener.py" output="screen"/>
<node name="publish_on_shutdown" pkg="rospy_tutorials" type="publish_on_shutdown.py" output="screen"/>
</launch>
可以同时运行listener和publish_on_shutdown两个节点。
- ROS中rosrun和roslaunch命令的对比
- ROS中rosrun和roslaunch命令的对比
- ROS中rosrun和roslaunch命令的对比
- rosrun和roslaunch区别解析
- rosrun 和 roslaunch 的时候 TAB 的自动补全出现问题
- ros roslaunch 命令启动 node
- ROS学习(基于Ubuntu 15.04 和ROS Jade)第三章 ROS核心教程 之 8 学习ROS的rqt_console和roslaunch命令
- ROS关于roscore,roscore,rosrun命令
- [跟我学ROS]8.rqt_console和roslaunch的用法
- ROS的学习(十)rqt_console和roslaunch
- (七)ROS rxconsole和roslaunch学习
- ROS总结—— rqt_console 和 roslaunch
- ROS中执行roslaunch后,显示功能包不存在的解决方法
- 在ROS中使用参数时学习到roslaunch的使用方法
- ROS使用之roslaunch
- ROS学习之 roslaunch
- ROS roslaunch 学习
- ROS roslaunch 学习
- Nhibernate3.3.1使用
- Using RemoteIO audio unit
- SET IDENTITY_INSERT
- MFC之代码跟踪
- LINQ学习(一)
- ROS中rosrun和roslaunch命令的对比
- AOP实现(二)---Spring框架中的AOP应用
- 莽撞记者弄哭何姿 我没有妈妈她在天上看我
- CString详解以及CString转换成char*
- JDK环境变量配置(Linux and Windows)
- Some handy code for backing beans ( ADF & JSF )
- IOS成长之路-symbol(s) not found for architecture i386 解决办法
- Centos系统下 Nginx 服务器安装
- Android 保留listview item的选中样式