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

Start gazebo paused, then have spawn_model unpause gazebo.

<include file="(find gazebo_ros)/launch/empty_world.launch">
   ...
   <arg name="paused" value="true">
</include>

<node name="arm_base_spawn_urdf" pkg="gazebo_ros" type="spawn_model" args="-urdf -param robot_description -model schunk_lwa4p_and_base 
    -J schunk_lwa4p_and_base::J_foldingSupport 0.075 
    ...
    -unpause 
    ..."/>

If this does not work, you can make your own version of "spawn_model", where you can pause gazebo, set the configuration, reset your joint controller, then unpause gazebo.

Some links I found helpful:

https://github.com/ros-simulation/gazebo_ros_pkgs/issues/93 https://github.com/ros-simulation/gazebo_ros_pkgs/blob/kinetic-devel/gazebo_ros/scripts/spawn_model