interfacing hw_interface and ros_controler

asked 2020-03-28 13:40:01 -0500

dinesh gravatar image

updated 2020-03-28 13:40:21 -0500

while interfaceing ros_controller with simulated robot i saw that i am applying the ros_controller to given joint by specifying it in .yaml file and than loading it from lauch file with controller_manager.

My question how do i do it with real robot where the hw_interface is present for it? eg in rrbot the controllers like position and efforct controllers are defined in .yaml file like :

rrbot:
  # Publish all joint states -----------------------------------
  joint_state_controller:
    type: joint_state_controller/JointStateController
    publish_rate: 50

  # Position Controllers ---------------------------------------
  joint1_position_controller:
    type: effort_controllers/JointPositionController
    joint: joint1
    pid: {p: 100.0, i: 0.01, d: 10.0}
  joint2_position_controller:
    type: effort_controllers/JointPositionController
    joint: joint2
    pid: {p: 100.0, i: 0.01, d: 10.0}

how do i do this similar to real hardware?

edit retag flag offensive close merge delete