Gazebo | Ignition | Community
Ask Your Question
0

Gazebo sends wrong velocities when using joint effort controller

asked 2018-08-16 12:40:38 -0600

sahandrez gravatar image

Hello Everyone,

I am working with Kinova Jaco 2 arm in Gazebo. I have set up joint effort controllers (type: effort_controllers/JointEffortControllers) for each joint as well as a state publisher (type: joint_state_controller/JointStateController) to publish the joint states. When Gazebo launches the robot falls down and all of the torques are set to zero (which is correct) but surprisingly the joint velocities are large non-zero values.

This is an example of the joint states:

header:
seq: 374
stamp:
secs: 7
nsecs: 960000000
frame_id: ''
name: ['j2n6s300_joint_1', 'j2n6s300_joint_2', 'j2n6s300_joint_3', 'j2n6s300_joint_4', 'j2n6s300_joint_5', 'j2n6s300_joint_6', 'j2n6s300_joint_finger_1', 'j2n6s300_joint_finger_2', 'j2n6s300_joint_finger_3']
position: [-0.9012024910200029, 1.0208960902473638, 2.5683548384732386, -3.113053974961307, -3.003218016745004, -14.645901287670581, 0.49310698169504263, 1.9998755950416065, 1.9992591337701349]
velocity: [22.471898998067832, -9.565097861942068, 0.8652258587505691, 1.1186389825126324, -1.176501196002201, -0.4477771946902821, -0.3705619297587054, 0.2368315633849316, 0.5800874302398775]
effort: [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]

An interesting point is that Gazebo will return correct joint velocities if I switch the controllers to effort_controllers/JointPositionController.

Does anybody know the reason behind this strange behaviour?

Thanks a lot,
Sahand

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2018-10-08 00:16:04 -0600

itfanr gravatar image

I encountered this problem, too. https://github.com/ros-simulation/gaz...

edit flag offensive delete link more

Comments

The position state is correct, but the velocity is not corrent.

itfanr gravatar imageitfanr ( 2018-10-08 00:18:38 -0600 )edit

Question Tools

2 followers

Stats

Asked: 2018-08-16 12:40:38 -0600

Seen: 1,406 times

Last updated: Aug 16 '18