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

How to update a robot visual enable check box in Rviz from a running node (c++)

asked 2016-04-12 07:04:49 -0500

pablocesar gravatar image

updated 2016-04-12 09:12:43 -0500

Hi, I would like to hide an existing robot model in Rviz from my running node (c++), I don't want to be checking and unchecking the visual enable option in the RobotModel, I would like to do it dynamically. Is there any way to update the visual of a link or robot when it is being shown in Rviz from the running node that is publishing the TF link values.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2016-04-12 10:49:25 -0500

lucasw gravatar image

updated 2016-04-12 10:52:30 -0500

It would be great if rviz had a set of topics and services for controlling all aspects of the user interface to the same ability manual clicking does. But short of that you can create a custom rviz render panel using librviz or for python.

Any rviz plugin can be added with createDisplay(), and then any property that is normally available through the ui can be changed with subProp()- and you could then hook up your own subscribers or services to change those properties.

edit flag offensive delete link more

Question Tools



Asked: 2016-04-12 07:04:49 -0500

Seen: 641 times

Last updated: Apr 12 '16