Ask Your Question
1

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

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

pablocesar gravatar image

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

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
1

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

lucasw gravatar image

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

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 http://docs.ros.org/indigo/api/librvi... or http://docs.ros.org/indigo/api/rviz_p... 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

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

2 followers

Stats

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

Seen: 147 times

Last updated: Apr 12 '16