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

How to visualize mass properties with the RobotModel plugin (rviz2)?

asked 2021-11-03 06:30:11 -0500

jasr gravatar image

updated 2021-11-03 13:39:15 -0500

gvdhoorn gravatar image

I'm trying to visualize in rviz the mass properties of a robot simulation. This properties are in the inertial block in the urdf of each part of the robot. According to this and this threads, this should be implemented, and it is a matter of configuring the RobotModel plugin, so does anybody knows how to do this?

I'm currently using ros2 in foxy.

edit retag flag offensive close merge delete


Is this a duplicate of #q388944?

It actually has a better title.

gvdhoorn gravatar image gvdhoorn  ( 2021-11-03 07:26:26 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2021-11-03 07:22:59 -0500

gvdhoorn gravatar image

You tagged this foxy, and that's likely why you can't find the checkbox (which you mention in the comments you posted on ros2/rviz#714).

Unfortunately the CHANGELOG does not seem to make any mention of that PR, nor the feature, but as you can see in ros2/rviz@2b551f80, this feature was merged into RViz2 version 8.7.0:

PR merge commit

According to (and status_page/ros_foxy_default.html?q=rviz2), RViz2 is at version 8.2.x in Foxy.

The only ROS 2 version which has RViz2 at 8.7.0 would be Rolling at this time. See

Galactic gets 8.5.0 (

So that would explain why you don't have that checkbox.

edit flag offensive delete link more


Thank you very much for the answer, now I understand what's happening. Do you think there's a way to make this work in foxy? I'm thinking maybe modifying the files with the changes listed in the commit can work, but I can't find in my local foxy files all the files listed in the commit, I can see the .hpp, but the .cpp I don't know where they are. Any suggestions? Really appreciate your help, thanks again!

jasr gravatar image jasr  ( 2021-11-04 15:53:00 -0500 )edit

You could try and see whether you can build Rolling's RViz2 on Foxy, but there are no guarantees it will work.

Failing that, you could try to backport the changes from just the PR to a Foxy source checkout of RViz2 in a Colcon workspace.

gvdhoorn gravatar image gvdhoorn  ( 2021-11-05 02:02:55 -0500 )edit

Got it, thanks again for your help!

jasr gravatar image jasr  ( 2021-11-05 18:34:35 -0500 )edit

Question Tools



Asked: 2021-11-03 06:30:11 -0500

Seen: 214 times

Last updated: Nov 03 '21