rviz setViewController doesn't hook up mouse events?
I have an librviz application https://github.com/lucasw/visualizati... which works fine with the default view controller, but I would like to use a different controller. It seems like this should be done with setViewController(), it renders the view from a default zero starting point but the mouse doesn't rotate or translate the view.
This is in my constructor:
...
manager_->initialize();
manager_->startUpdate();
rviz::ViewController* view = new rviz::OrbitViewController();
if (view)
{
view->initialize(manager_);
render_panel_->setViewController(view);
}
Is something missing that will cause the view controller handleMouseEvents() to get called? Some additional comments are here:
https://github.com/ros-visualization/...
And a visualization_tutorial issue here https://github.com/ros-visualization/...
Is this a straight-up
rviz
orrqt
plugin? I ask 'cuz your link is to alibrviz
question and my experience withrqt
is minimal. Can you post more information (and code/links) to better describe your situation?It is an rqt plugin that uses librviz. Do you have any code that uses
setViewController
? I can try to duplicate the problem withvisualization_tutorials/librviz_tutorial
independent of rqt.I've added a link to a setViewController version of librviz_tutorial and rqt is no longer part of the issue.