Robotics StackExchange | Archived questions

How do i load jointtrajectoryaction controller from launch file

I am trying to load the "robot_mechanism_controllers/JointTrajectoryActionController" like this:

<!-- Load joint controller configurations from YAML file to parameter server -->

  <node name="default_controllers_spawner"
        pkg="pr2_controller_manager" type="spawner" output="screen"
        args="--wait-for=/calibrated Ravage_body_controller" />

  <group ns="Ravage_link_controller">
    <node name="point_head_server"
          pkg="Ravage_action" type="Ravage_action" />
  </group>

  <!-- convert joint states to TF transforms for rviz, etc -->
  <node name="robot_state_publisher" pkg="robot_state_publisher" type="robot_state_publisher"
    respawn="false" output="screen">
    <remap from="/joint_states" to="/Ravage/joint_states" />
  </node>

</launch>

And he yaml file is: Ravagebodycontroller:

  type: "robot_mechanism_controllers/JointTrajectoryActionController"
  joints:
    - joint1
        - joint2
      gains:
        join1: {p: 2400.0, d: 18.0, i: 800.0, i_clamp: 4.0}
        joint2: {p: 1200.0, d: 10.0, i: 700.0, i_clamp: 4.0}

  joint_trajectory_action_node:
    joints:
      - joint1
      - joint2
    constraints:
      goal_time: 0.6
      joint1:
        goal: 0.02
      joint2:
        goal: 0.02

But i cant see that the joint trajectory action controller has been loaded. When i change robotmechanism with effortcontrollers/jointtrajectorycontrooller it works fine.

Asked by dinesh on 2017-02-12 08:55:31 UTC

Comments

Answers