Quantcast
Viewing all articles
Browse latest Browse all 348

Moving camera with librviz does not update view

Hi, I am on Ubuntu 16.04 with ROS Kinetic and trying to move the camera position in a 3D visualizer widget programmatically using librviz. I basically followed the provided [tutorial](http://docs.ros.org/indigo/api/librviz_tutorial/html/index.html) and came up with manager_ = new rviz::VisualizationManager( render_panel_ ); render_panel_->initialize( manager_->getSceneManager(), manager_ ); manager_->initialize(); manager_->startUpdate(); controller_ = manager_->getViewManager()->getCurrent(); controller_->getCamera()->moveRelative(Ogre::Vector3(0, 0.1, 0)); Unfortunately, this does not do anything. Also `controller_->getCamera()->setPosition(...)` does not have any effect. I can only see a change when I add a `controller_->getCamera()->lookAt(...)` to the code. This will result in the desired change of the position plus an in general unwanted change in orientation. It seems like `moveRelative(...)` and `setPosition(...)` do not trigger an update of the view?! Is there a solution to make this work without the `lookAt(...)` or do I miss something important here?

Viewing all articles
Browse latest Browse all 348

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>