Add graded axes to rviz

asked 2020-04-14 10:20:11 -0500

eriklarsson gravatar image

Hi I am using rviz for visualization of objects surrounding an origin, where the objects might be at a quite large distance (>100m). Rviz is configured in a birds-eye view, where only the xy plane is visible. The problem is that it is difficult to tell which distance these objects are located at, even with a grid and grid size set to 1m.

What I would like to add is axes with gradation (could not add image due to new account), so this is my question; how could one add these axes into rviz?

Preferably the scales would change depending on the distance from which the plane is observed from. So if there is objects at an interval [-100,100] meters i would like some graded axis indicating the distance every X meters, in both x and y direction, similar to the axes/tics of the plot function in matlab.

I am using ROS melodic, with rviz version 1.13.7.

edit retag flag offensive close merge delete

Comments

This is not something for which there is support in the default RViz distribution.

It could be there are Display plugins which add this, but you'd have to search for them.

gvdhoorn gravatar image gvdhoorn  ( 2020-04-14 10:28:40 -0500 )edit

Okay, thanks for your answer. Do you have any particular plugin in mind? Or one which can be modified / used as template?

eriklarsson gravatar image eriklarsson  ( 2020-04-15 03:15:52 -0500 )edit

No, I don't have anything particular in mind.

You could perhaps start with the current Grid plugin. It doesn't have any scales (which I believe is what you're looking for), but those could probably be added (ie: start drawing scales when the viewpoint is further away than X metres or something).

gvdhoorn gravatar image gvdhoorn  ( 2020-04-15 04:22:19 -0500 )edit