joint_state_publisher icon indicating copy to clipboard operation
joint_state_publisher copied to clipboard

Prismatic joints aren't supported

Open AndyZe opened this issue 2 years ago • 2 comments

You can tell by searching for prismatic here: https://github.com/ros/joint_state_publisher/blob/ros2/joint_state_publisher/joint_state_publisher/joint_state_publisher.py

It's not a big deal but I wanted to raise the issue so others don't waste their time.

AndyZe avatar May 03 '22 15:05 AndyZe

Did joint_state_publisher support prismatic joints in ROS 1? I also looked for prismatic in https://github.com/ros/joint_state_publisher/blob/noetic-devel/joint_state_publisher/src/joint_state_publisher/init.py , and I didn't find anything.

clalancette avatar May 03 '22 21:05 clalancette

So prismatic isn't explicitly called out, but the joint types are handled in this block: https://github.com/ros/joint_state_publisher/blob/0a765c0ef26b59ba230992fa0eeb8610a61643ed/joint_state_publisher/joint_state_publisher/joint_state_publisher.py#L95-L109

floating and planar are excluded (because they would require multiple sliders).

continuous joints are handled with a special case because their limits don't exist.

prismatic and revolute joints are handled implicitly by the else block.

Can you given an example of how it doesn't work? If you launch the URDF tutorial that uses joint_state_publisher_gui, you should be able to extend/retract the arm using the prismatic joint gripper_extension

screenshot from urdf_tutorial

DLu avatar May 19 '22 17:05 DLu