ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

How to implement the position_controllers correctly?

asked 2021-12-18 15:50:27 -0500

sincoy gravatar image

Hello everybody,

I would like to use the position_controllers/JointPositionController after loading my robot in gazebo to move a joint up and down with the command

"rostopic pub -1 /joint1/command std_msgs/Float64 "data: 5.0""

But the joint1 is not moving. I do not know why? Do you have any advice?

My .yaml file for this joint1 is:

joint1:
    type: position_controllers/JointPositionController
    joint: joint_base_link

the transmission in my urdf file for this joint1 is:

<transmission name="tran">
        <type>transmission_interface/SimpleTransmission</type>
        <joint name="joint_base_link">
          <hardwareInterface>hardware_interface/PositionJointInterface</hardwareInterface>
        </joint>
        <actuator name="joint">
          <hardwareInterface>hardware_interface/PositionJointInterface</hardwareInterface>
          <mechanicalReduction>1</mechanicalReduction>
        </actuator>
      </transmission>

Thank you very much!

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2021-12-19 15:29:12 -0500

ljaniec gravatar image

This tutorial about ros_control could be helpful for you or straight out this post from The Construct.

I would like to see your topic list too, did you try to publish your message with sample talker? Maybe sending it once isn't enough.

edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2021-12-18 15:50:27 -0500

Seen: 247 times

Last updated: Dec 19 '21