Ask Your Question
0

How to programmatically add display to running Rviz instance?

asked 2013-09-05 06:32:41 -0500

danep gravatar image

I'm writing a package that is meant to be run after a 3rd-party package starts Rviz. My package simply provides a new display type, and some topics for that display type to subscribe to.

Currently, I have to launch the 3rd-party package, then launch my package, then manually add and configure the display type to Rviz. It would be nice if in the launch file for my package I could automatically add and configure the display.

Is this at all possible? I don't think Rviz exposes any services for this, or allows you to 'force' it to reload a custom config file, so I don't know how this would be possible.

edit retag flag offensive close merge delete

Comments

I thought about that, but it was too ugly to seriously consider :) I guess I'll just resort to hacking the other package's config file, and maintaining a vendor branch. It would be nice if there were a Better Way in the future...

danep gravatar image danep  ( 2013-09-05 11:01:56 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2013-09-05 10:12:34 -0500

dgossow gravatar image

The only (hacky) way I see would be to add a 'rosnode kill' on the rviz instance launched by the 3rd party package and an rviz instance with a different config to your own launchfile.

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

1 follower

Stats

Asked: 2013-09-05 06:32:41 -0500

Seen: 172 times

Last updated: Sep 05 '13