Gazebo | Ignition | Community
Ask Your Question

Can I change link properties (length and pose) at run time?

asked 2017-11-28 22:11:13 -0600

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.


I want to model a closed chain robot which needs to have length-variable links(length ratio over 1:10), but it's first time using gazebo,, so I don't know whether its possible or not. If you know how to deal with this length-variable links. Please help me.

edit retag flag offensive close merge delete


How about using a prismatic joint which moves to expand the arm?

chapulina gravatar imagechapulina ( 2017-11-29 10:27:52 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2017-11-30 08:06:50 -0600

Brosseau.F gravatar image

updated 2017-11-30 08:36:30 -0600

In the c++ api of gazebo, there is a SetScale method for the "Link" class. I suppose that it should do what you want. (the solution mentionned by @chapulina may be a good way to do it if the SetScale method doesn't work as you want)

And there is a SetRelativePose method to change the pose of the link.

edit flag offensive delete link more


^ These might be better if you want to change a large number (10+) of link properties! Adding lots of extra joints to your model is going to slow things down noticeably...

josephcoombe gravatar imagejosephcoombe ( 2017-11-30 17:57:14 -0600 )edit

Question Tools

1 follower


Asked: 2017-11-28 22:11:13 -0600

Seen: 728 times

Last updated: Nov 30 '17