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

Spawn an xml model in gazebo

asked 2012-01-24 03:32:31 -0600

Penny gravatar image

This is my xml file(name:pool.xml):

<robot name="simple_pool"> <link name="base_link"> <inertial> <mass value="100.0"/> <origin xyz="0 0 0"/> <inertia ixx="1.0" ixy="0.0" ixz="0.0" iyy="1.0" iyz="0.0" izz="1.0"/> </inertial> <visual> <origin xyz="0 0 0" rpy="0 0 0"/> <geometry> <mesh filename="package://pool_party/meshes/finalpool.dae"/> </geometry> </visual> <collision> <origin xyz="0 0 0" rpy="0 0 0 "/> <geometry> <mesh filename="package://pool_party/meshes/finalpool.dae"/> </geometry> </collision> </link> <gazebo reference="base_link"> <material>Gazebo/White</material> </gazebo> </robot>

I used the command line: rosrun gazebo spawn_model -file pwd/pool.xml -urdf -z 1 -model my_pool

I have the master node running(empty_world.launch), but after the command line nothing appears. How can I spawn the current xml file (if everything is ok with it) in an empty_world.launch??

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2012-04-17 05:21:13 -0600

OptiX gravatar image

Did you actually use the pwd/pool.xml? If yes pwd is supposed to be the directory where you saved pool.xml like ros/electric/stack/Tutorial/pool_package/.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2012-01-24 03:32:31 -0600

Seen: 596 times

Last updated: Apr 17 '12