ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

It looks like you are using ROS Hydro, there is no package called "gazebo" in Hydro, it has been replaced with gazebo_ros.

It looks like you are using ROS Hydro, there is no package called "gazebo" in Hydro, it has been replaced with gazebo_ros.. Additionally, this page has really good information about how to launch a URDF in gazebo from ROS. Here is their example:

<!-- Spawn a robot into Gazebo --> <node name="spawn_urdf" pkg="gazebo_ros" type="spawn_model" args="-file $(find baxter_description)/urdf/baxter.urdf -urdf -z 1 -model baxter" />

It looks like what you are doing should work, you're just using the wrong "pkg". Also I notice you have ../robots/hexapod_launch.URDF-urdf" There should be a space between .URDF and -urdf.

Long story short, try this

<node 
name="spawn_model" 
pkg="gazebo_ros" 
type="spawn_model" 
args="-file ../robots/hexapod_launch.URDF -urdf -model hexapod_launch" 
output="screen" />