How to control velocity of joints in gazebo using ros_controllers?
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">
<type>transmission_interface/SimpleTransmission</type>
<joint name="youbot__wheel_joint_bl">
<hardwareInterface>hardware_interface/EffortJointInterface</hardwareInterface>
</joint>
<actuator name="motor6">
<hardwareInterface>hardware_interface/EffortJointInterface</hardwareInterface>
<mechanicalReduction>1</mechanicalReduction>
</actuator>
</transmission>
Also in my config file i have included the controller as
wheel_bl_velocity_controller:
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