wrote a launch file foe robocup 14 world. but i can't launch it
i am using ros indigo with the gazebo that came with it.
<?xml version= "1.0" ?>
<launch>
<arg name="use_sim_time" default="true"/>
<arg name="world" default="gazebo_ros_range"/>
<arg name="debug" default="false"/>
<arg name="physics" default="ode"/>
<group if="$(arg use_sim_time)">
<param name="/use_sim_time" value="true"/>
</group>
<include file="$(find husky_gazebo)
/launch/husky_empty_world.launch">
<arg name="world_name" value="/usr/share/gazebo-2.2/worlds/robocup14_spl_field.world" />
<arg name="debug" value="$(arg debug)"/>
<arg name="physics" value="$(arg physics)"/>
</include>
</launch>
Can't launch it? What is the error it gives you?
the error it gives is this while processing /opt/ros/indigo/share/husky_gazebo /launch/husky_empty_world.launch: Invalid roslaunch XML syntax: [Errno 2] No such file or directory: u'/opt/ros/indigo/share/husky_gazebo /launch/husky_empt
i wrote roslaunch /home/victor/Ex1/huskyEx1.launch in the terminal
Looks like there is "no such file or directory: u'/opt/ros/indigo/share/husky_gazebo /launch/husky_empty_world.launch" . Ros is looking for your world file there, is it there?. Not sure if the space and the 'u' in the error is some formatting issue or it actually looks like that.
In any case the line that is giving you trouble is the one below: <include file="$(find husky_gazebo) /launch/husky_empty_world.launch"> Make sure the file exists. If you enter $ roscd husky_gazebo in the terminal does it match where it's looking in the error?
Start by deleting all the white-space between
file="$(find husky_gazebo)
and/launch/husky_empty_world.launch">