ROS launch文件
2022-04-05 15:38 jym蒟蒻 阅读(123) 评论(0) 编辑 收藏 举报
ROS launch文件
- 1.arg标签
- 2.group标签
- 3.param标签
- 4.ns标签
<!--指明了一个 xml 的版本>
<?xml version="1.0"?>
<launch>
<!-- support multi robot -->
<arg name="robot_name" default=""/> <!-- support multi robot -->
<!-- robot frame -->
<arg name="base_frame" default="base_footprint" />
<arg name="odom_frame" default="odom" />
<arg name="imu_frame" default="imu" />
<!-- pub topic -->
<arg name="odom_topic" default="odom" /><!-- do NOT use '/' in topic name-->
<arg name="imu_topic" default="imu" />
<arg name="battery_topic" default="battery" />
<!-- sub topic -->
<arg name="cmd_vel_topic" default="cmd_vel" /> <!-- do NOT use '/' in topic name-->
<arg name="ackermann_cmd_topic" default="ackermann_cmd" />
<!-- config param -->
<arg name="pub_imu" default="False" />
<arg name="sub_ackermann" default="False" />
<arg name="pub_sonar" default="False" />
<!-- base control node -->
<!--ros namespace name can NOT be empty,so need evaluate use multi robot or not-->
<group if="$(eval robot_name == '')">
<node name="base_control" pkg="base_control" type="base_control.py" output="screen">
<param name="baudrate" value="115200"/>
<param name="port