Joint Trajectory Controller: Joints on incoming trajectory don't match the controller joints [closed]

asked 2023-07-20 12:10:11 -0500

Fischdog24 gravatar image


I am trying to create a script to control my robot using an action. The action server was already created by Joint Trajectory Controller and I had to make the action client. The issue I am having is that it continues to give me this error:

Joints on incoming trajectory don't match the controller joints.

I assume the reason I am getting this error though is because my yaml file keeps giving me this message, which isn't given as an error message but a info message:

No specific joint names are used for command interfaces. Using 'joints' parameter.

I do not understand why though because I am using a generic Joint Trajectory Controller yaml setup that is supposedly setup correctly, here it is:

    update_rate: 100 #Hz

      type: joint_trajectory_controller/JointTrajectoryController  

      type: joint_state_broadcaster/JointStateBroadcaster

      - shoulder_pan_joint
      - shoulder_lift_joint
      - elbow_joint
      - wrist_1_joint
      - wrist_2_joint
      - wrist_3_joint

      - position

      - position
      - velocity

As of now I am just trying to control a single joint on the robot, which happens to be the Elbow joint. I am able to control it through rqt but am trying to get actions working. Here is a snippet of my code for the action client that tells it which joint to use:

    def __init__(self):
        self._action_client = ActionClient(
            self, FollowJointTrajectory, '/arm_controller/follow_joint_trajectory'
#where the goal gets sent
    def send_goal(self, angle):
        goal_msg = FollowJointTrajectory.Goal()

#what joint it controls
        joint_names = ["elbow_joint"]

Thank you for your support and if any more information is needed please let me know!

edit retag flag offensive reopen merge delete

Closed for the following reason duplicate question by Mike Scheutzow
close date 2023-07-21 07:17:52.822641


Cross-posted & answered on stackexchange.

Mike Scheutzow gravatar image Mike Scheutzow  ( 2023-07-21 07:18:56 -0500 )edit