Robotics StackExchange | Archived questions

Gazebo sends wrong velocities when using joint effort controller

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
frameid: ''
name: ['j2n6s300
joint1', 'j2n6s300joint2', 'j2n6s300joint3', 'j2n6s300joint4', 'j2n6s300joint5', 'j2n6s300joint6', 'j2n6s300jointfinger1', 'j2n6s300jointfinger2', 'j2n6s300jointfinger3']
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

Asked by sahandrez on 2018-08-16 12:40:38 UTC

Comments

Answers

I encountered this problem, too. https://github.com/ros-simulation/gazebo_ros_pkgs/issues/830

Asked by itfanr on 2018-10-08 00:16:04 UTC

Comments

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

Asked by itfanr on 2018-10-08 00:18:38 UTC