Gazebo Gui

API Reference

9.0.0
InteractiveViewControl Class Reference

This Plugin allows to control a user camera with the mouse: More...

#include <InteractiveViewControl.hh>

Public Member Functions

 InteractiveViewControl ()
 Constructor.
 
virtual ~InteractiveViewControl ()
 Destructor.
 
virtual void LoadConfig (const tinyxml2::XMLElement *_pluginElem) override
 

Detailed Description

This Plugin allows to control a user camera with the mouse:

  • Drag left button to pan
  • Drag middle button to orbit
  • Drag right button or scroll wheel to zoom

This plugin also supports changing between perspective and orthographic projections through the /gui/camera/view_control service. Perspective projection is used by default. For example:

gz service -s /gui/camera/view_control
    --reqtype gz.msgs.StringMsg
    --reptype gz.msgs.Boolean
    --timeout 2000 --req 'data: "ortho"'

Supported options are:

  • orbit: perspective projection
  • ortho: orthographic projection

Constructor & Destructor Documentation

◆ InteractiveViewControl()

Constructor.

◆ ~InteractiveViewControl()

virtual ~InteractiveViewControl ( )
virtual

Destructor.

Member Function Documentation

◆ LoadConfig()

virtual void LoadConfig ( const tinyxml2::XMLElement *  _pluginElem)
overridevirtual

The documentation for this class was generated from the following file: