Ask Your Question
1

set revolute joint start angle

asked 2011-05-04 02:06:54 -0600

Ugo gravatar image

I'd like to know if it's possible to set a start angle which is not 0 directly in the urdf.

By default on our arm, when all the joints are at 0, the arm is pointing down (through the floor if you import it directly in Gazebo, without attaching it to a table). It would be better if I could specify default values for the joint angles.

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
6

answered 2011-05-04 08:56:50 -0600

hsu gravatar image

Hi, Please take a look at the service call gazebo/set_model_configuration in gazebo wiki to set pose of the robot. The strategy I've tested here is:

  • start simulation paused.
  • call gazebo/set_model_configuration with list of joint angles
  • [if holding position, trigger controller reset to set new goals]
  • unpause simulation

Hope this helps.

John

edit flag offensive delete link more

Comments

You can do this entirely from launch functions, as spawn_model has an "-unpause" option

bsaund gravatar imagebsaund ( 2017-02-09 05:31:00 -0600 )edit
0

answered 2017-12-09 18:29:50 -0600

pendragon gravatar image

I found a way that works for me. Since there is no such xml/urdf tag for setting default values hence poses, setting the [rpy] in your origin tag kinda does the trick for me. Hope it helps someone.

edit flag offensive delete link more

Your Answer

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

Add Answer

Question Tools

1 follower

Stats

Asked: 2011-05-04 02:06:54 -0600

Seen: 1,523 times

Last updated: May 04 '11