ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
1

Planar joint in RVIZ

asked 2017-12-06 13:36:48 -0600

afar gravatar image

updated 2022-05-27 15:59:16 -0600

Andromeda gravatar image

Has anyone been able to to make a planar joint. Imagine I have a base link and another link on top of that and a planar joint between them. I use the following setting for joint:

<joint name="joint_planar" type="planar">
   <parent link="base_link" />
   <child link="link1" />
   <origin xyz="0 0 0.5" rpy="0 0 0" />
   <axis xyz="0 0 1" />
   <limit effort="30" velocity="1.0" lower="-10" upper="10" />
</joint>

After loading the model in RVIZ, I would expect to see two sliders for x and y in joint_state_publisher gui. But I only see one and it does not do anything.

edit retag flag offensive close merge delete

Comments

Did you fix it?

Andromeda gravatar image Andromeda  ( 2022-05-27 15:59:25 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2022-05-27 17:26:13 -0600

contradict gravatar image

joint_state_publisher ignores planar joints. I think this is because sensor_msgs/JointState assumes a single degree of freedom for each joint. I don't see any code in robot_state_publisher to handle multi-dimensional joints either, so this may just be missing functionality.

edit flag offensive delete link more

Comments

joint_state_publisher ignores planar joints, yes... but TranformedStamped (which is used for the transformation of the odometry) should be able to use it correctly. Anyway. I tried only to find out, that, it does not work as well...

Andromeda gravatar image Andromeda  ( 2022-05-28 07:45:17 -0600 )edit

Usually the odometery node publishes a transform from odom to base_link. This is indeed expressed as a Transform, not as joint information. There is no corresponding joint in the URDF, the node adds a transform to the TF tree by publishing its transform. Have a look at this example.

contradict gravatar image contradict  ( 2022-05-28 10:59:24 -0600 )edit

Question Tools

Stats

Asked: 2017-12-06 13:36:48 -0600

Seen: 543 times

Last updated: May 27 '22