Home | Tutorials | Wiki | Issues
Ask Your Question
0

JointController SetAngularVelocityTarget ?

asked 2017-04-21 08:13:21 -0500

shenki gravatar image

updated 2017-04-24 02:45:58 -0500

Hello it's me again,

I am using a JointController to move my robots, however I need to set an angularVelocity and I couldn't find this function in the documentation.

Does this exist ? If no, what other way to do do I have ? thank you in advance !

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
3

answered 2017-04-21 10:04:40 -0500

The JointController class uses the SetVelocityTarget function to set a target velocity for a joint's axis. If that joint is rotational, that will be an angular velocity given in rad/s. If it's a prismatic joint, that will be a linear velocity given in m/s.

edit flag offensive delete link more

Comments

My 4 joints are now of type revolute2 ( since I want 2 axis ), when I set a velocity it only roll on one axis, how do I do to make it rotate now (set velocity on another axis)? thank you for your answer anyway

shenki gravatar imageshenki ( 2017-04-24 03:16:06 -0500 )edit

Unfortunately, the joint controller doesn't support multi-axis joints. There's an issue open about this: https://bitbucket.org/osrf/gazebo/issues/2160/jointcontroller-doesnt-support-multi-axis One solution would be to use 2 revolute joints with a dummy link in between

chapulina gravatar imagechapulina ( 2017-04-24 11:46:07 -0500 )edit
0

answered 2017-04-21 08:31:12 -0500

winston gravatar image

You should try this functiongazebo::physics::Joint::SetVelocity as stated in link.

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2017-04-21 08:13:21 -0500

Seen: 260 times

Last updated: Apr 24 '17