How to control velocity of joints in gazebo using ros_controllers?

asked 2019-06-22 04:55:39 -0500

asudot gravatar image

updated 2019-06-22 07:10:59 -0500

gvdhoorn gravatar image

I have four wheels connected to my robot base in gazebo and want to move the wheels at a desired velocity using Ros_Controllers. I am unable to set up the velocity controllers correctly.

<transmission name="tran6">
    <joint name="youbot__wheel_joint_bl">
    <actuator name="motor6">

Also in my config file i have included the controller as

    type: effort_controllers/JointVelocityController
    joint: youbot__wheel_joint_bl
    pid: {p: 100.0, i: 0.01, d: 10.0

I then send the velocity command on the respective topic but the joint does not move at all in gazebo.

I gave also tried the velocity controller (loaded another file specifying the PID gains on the parameter server) instead of the effort controller but still it doesn't work.

The joint does move on using the effort_controllers/JointPositionController but velocity control is what I need. The joint position limits were excluded from the urdf while trying out the velocity controllers

edit retag flag offensive close merge delete