Skip to content
Snippets Groups Projects
Commit 876acbcc authored by Thomas Moulard's avatar Thomas Moulard
Browse files

Read the joint names in the robot model to fill the joint_states message.

Previous version of abstract-robot-dynamics did not contain the joint
name. Therefore, we had no way to forward the joint names to ROS.

This patch changes the ros_joint_state entity to add a
retrieveJointNames command. This command uses the pool to retrieve an
instance of the Dynamic entity (i.e. robot.dynamic) by using the
entity name. It then iterates on the robot structure to fill the joint
names in the message.

This command is automatically called in the Ros class so this change
is transparent for the end-user.

However, no more assumptions are made on the robot structure so the
sent message is exactly matching the robot structure loaded in the
dynamic entity. In particular, the free floating DOFs are sent and the
hard coded hand values have been removed.

ROS, in fact, requires DOF names and not joint names. Therefore, the
names are computed as follow:
- 0 dof: ignored,
- 1 dof: dof name is the joint name,
- >1 dof: <joint name>_<dof id>
parent 2542b861
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment