ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
You to change your first <arg>
tag to be a self-closing tag <arg/>
:
<launch>
<include file="$(find husky_gazebo)/launch/husky_empty_world.launch">
<!-- this tag below -->
<arg name="world_name" value="$(find gazebo-7)/worlds/robocup14_spl_field.world"/>
<arg name="laser_enabled" value="$(arg laser_enabled)"/>
<arg name="kinect_enabled" value="$(arg kinetic_enabled)"/>
</include>
<include file="$(find teleop_twist_keyboard)/teleop_twist_keyboard.py">
</include>
</launch>
Also, the <include>
tag is for including other XML files: Check out the documentation:
The
<include>
tag enables you to import another roslaunch XML file into the current file...
You want to use the <node>
tag instead to launch that node:
<node name="teleop_twist_keyboard" pkg="teleop_twist_keyboard" type="teleop_twist_keyboard.py"/>
So, your final launch file will look like
<launch>
<include file="$(find husky_gazebo)/launch/husky_empty_world.launch">
<!-- this tag below -->
<arg name="world_name" value="$(find gazebo-7)/worlds/robocup14_spl_field.world"/>
<arg name="laser_enabled" value="$(arg laser_enabled)"/>
<arg name="kinect_enabled" value="$(arg kinetic_enabled)"/>
</include>
<node name="teleop_twist_keyboard" pkg="teleop_twist_keyboard" type="teleop_twist_keyboard.py"/>
</launch>
Please see the documentation for the <node>
tag.
2 | No.2 Revision |
You to change your first <arg>
tag to be a self-closing tag <arg/>
:
<launch>
<include file="$(find husky_gazebo)/launch/husky_empty_world.launch">
<!-- this tag below -->
<arg name="world_name" value="$(find gazebo-7)/worlds/robocup14_spl_field.world"/>
<arg name="laser_enabled" value="$(arg laser_enabled)"/>
<arg name="kinect_enabled" value="$(arg kinetic_enabled)"/>
</include>
<include file="$(find teleop_twist_keyboard)/teleop_twist_keyboard.py">
</include>
</launch>
Also, the <include>
tag is for including other XML files: Check out the documentation:
The
<include>
tag enables you to import another roslaunch XML file into the current file...
You want to use the <node>
tag instead to launch that node:
<node name="teleop_twist_keyboard" pkg="teleop_twist_keyboard" type="teleop_twist_keyboard.py"/>
So, your final launch file will look like
<launch>
<include file="$(find husky_gazebo)/launch/husky_empty_world.launch">
<!-- this tag below -->
<arg name="world_name" value="$(find gazebo-7)/worlds/robocup14_spl_field.world"/>
<arg name="laser_enabled" value="$(arg laser_enabled)"/>
<arg name="kinect_enabled" value="$(arg kinetic_enabled)"/>
</include>
<node name="teleop_twist_keyboard" pkg="teleop_twist_keyboard" type="teleop_twist_keyboard.py"/>
</launch>
Please see the documentation for the <node>
tag.
3 | No.3 Revision |
You need to change your first <arg>
tag to be a self-closing tag <arg/>
:
<arg name="world_name" value="$(find gazebo-7)/worlds/robocup14_spl_field.world"/>
Also, the <include>
tag is for including other XML files: Check out the documentation:
The
<include>
tag enables you to import another roslaunch XML file into the current file...
You want to use the <node>
tag instead to launch that node:
<node name="teleop_twist_keyboard" pkg="teleop_twist_keyboard" type="teleop_twist_keyboard.py"/>
So, your final launch file will look like
<launch>
<include file="$(find husky_gazebo)/launch/husky_empty_world.launch">
<!-- this tag below -->
<arg name="world_name" value="$(find gazebo-7)/worlds/robocup14_spl_field.world"/>
<arg name="laser_enabled" value="$(arg laser_enabled)"/>
<arg name="kinect_enabled" value="$(arg kinetic_enabled)"/>
</include>
<node name="teleop_twist_keyboard" pkg="teleop_twist_keyboard" type="teleop_twist_keyboard.py"/>
</launch>
Please see the documentation for the <node>
tag.