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

how to programmatically add/remove displays in rviz

asked 2011-04-13 02:15:38 -0600

ben gravatar image

I was wondering if there is a way to programmatically add and remove Displays in rviz? I would think that if the feature existed it would come in the form of a topic or service that a node can publish to or call to add or remove a Display of a certain DisplayType.

edit retag flag offensive close merge delete

3 Answers

Sort by ยป oldest newest most voted
3

answered 2011-05-26 07:27:14 -0600

tfoote gravatar image

updated 2017-09-04 09:44:34 -0600

lucasw gravatar image

rviz does not have an API to do that currently. I suggest that you file a feature request ticket.

edit flag offensive delete link more

Comments

1
ben gravatar image ben  ( 2011-06-02 08:24:30 -0600 )edit
0

answered 2017-09-10 15:12:03 -0600

lucasw gravatar image

I made a generic librviz node a while ago that has a service interface for adding or removing any rviz display and changing any property.

I'm not sure what the current state of it is, it doesn't really belong in the 'rviz_camera_stream' project. I test it out and perhaps fork it into a different repo, and update this later.

A dynamic dynamic reconfigure system that exposed all the controls would be a nice addition to it.

edit flag offensive delete link more
0

answered 2011-05-27 00:32:23 -0600

Chad Rockey gravatar image

This may not be relevant to you, but RVIZ does support the saving and loading of configurations (http://www.ros.org/wiki/rviz/UserGuide#Configurations). This is most relevant in launch files so that you could launch some code and have everything already set up.

Example:

<launch> <node pkg="rviz" type="rviz" name="rviz" args="-d $(find package_name)/config/rviz_config.vcg" /> </launch>

edit flag offensive delete link more

Question Tools

Stats

Asked: 2011-04-13 02:15:38 -0600

Seen: 1,477 times

Last updated: Sep 10 '17