Skip to content

Joints in current_joints mixed up #28

@michaelosthege

Description

@michaelosthege

Our portal has axes A1, A2, A3, E1 and when moving to a JointsState it works as expected: E1 is the Z-rotational axis in this case.

However, robot_state.joints_current reports E1=0 at all times but puts the values for E1 into the field for A4:

Image

This looks like the line where the POSJOINTCURRENT messages are unpacked:

case "POSJOINTCURRENT":
joints = []
for i in range(16):
joints.append(float(parameters[segment_start_idx + 1 + i]))
with self.robot_state_lock:
self.robot_state.joints_current = JointsState(*joints)
segment_start_idx += 17

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions