Ask Your Question
1

How to set initial pose to UR5 in Gazebo

asked 2016-08-22 04:50:02 -0500

J_Schaefer gravatar image

updated 2016-08-22 05:58:48 -0500

Hello,

I have a simulation with an UR5 in Gazebo. How can I say, that the robot should start in a given pose?

I tried what was answered in How do I set the inital pose of a robot in gazebo? , just like this:

<!-- push robot_description to factory and spawn robot in gazebo -->
     <node name="spawn_gazebo_model" pkg="gazebo_ros" type="spawn_model"
         args="-urdf -param robot_description
         -model robot
         -z 0.0
         -shoulder_lift_joint 0 1.57 0"
         respawn="false" output="screen" />

There should be a -J label just like:

<!-- push robot_description to factory and spawn robot in gazebo -->
     <node name="spawn_gazebo_model" pkg="gazebo_ros" type="spawn_model"
         args="-urdf -param robot_description
         -model robot
         -z 0.0
         -J shoulder_lift_joint 1.57"
         respawn="false" output="screen" />

This didn't work for me. I have ROS Indigo. Regarding to spawn_model -J initial joint positions not working #93, the -J-argument does not work in Indigo.

Do you have any suggestions?

Best regards,

J_Schaefer

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2016-11-30 18:31:00 -0500

jorge gravatar image

Check at the last comments on the issue #93: at least on kinetic, it works if you start Gazebo paused and then add the -unpause to the spawn_model to start it.

edit flag offensive delete link more

Comments

thank a lot! it works

shannonleeeee gravatar imageshannonleeeee ( 2019-08-27 08:17:22 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

4 followers

Stats

Asked: 2016-08-22 04:50:02 -0500

Seen: 936 times

Last updated: Nov 30 '16