Ignition Gazebo

API Reference

7.0.0~pre1
ignition::gazebo::gui Namespace Reference

Namespaces

 events
 Namespace for all events. Refer to the EventManager class for more information about events.
 

Classes

class  Plot3D
 Plot the trajectory of an entity into the 3D scene. More...
 
class  SelectEntities
 This plugin is in charge of selecting and deselecting the entities from the Scene3D and emit the corresponding events. More...
 

Functions

IGNITION_GAZEBO_GUI_VISIBLE std::unique_ptr< ignition::gui::Application > createGui (int &_argc, char **_argv, const char *_guiConfig, const char *_defaultGuiConfig=nullptr, bool _loadPluginsFromSdf=true, const char *_renderEngine=nullptr)
 Create a Gazebo GUI application. More...
 
IGNITION_GAZEBO_GUI_VISIBLE int runGui (int &_argc, char **_argv, const char *_guiConfig, const char *_renderEngine=nullptr)
 Run GUI application. More...
 

Function Documentation

◆ createGui()

IGNITION_GAZEBO_GUI_VISIBLE std::unique_ptr<ignition::gui::Application> ignition::gazebo::gui::createGui ( int &  _argc,
char **  _argv,
const char *  _guiConfig,
const char *  _defaultGuiConfig = nullptr,
bool  _loadPluginsFromSdf = true,
const char *  _renderEngine = nullptr 
)

Create a Gazebo GUI application.

Parameters
[in]_argcNumber of command line arguments (Used when running without ign-tools. Set to 1 if using ign-tools). Note: The object referenced by this variable must continue to exist for the lifetime of the application.
[in]_argvCommand line arguments (Used when running without ign-tools. Set to the name of the application if using ign-tools)
[in]_guiConfigThe GUI configuration file. If nullptr, the default configuration from IGN_HOMEDIR/.ignition/gazebo/gui.config will be used.
[in]_defaultGuiConfigThe default GUI configuration file. If no plugins were added from a world file or from _guiConfig, this configuration file will be loaded. If this argument is a nullptr or if the file does not exist, the default configuration from IGN_HOMEDIR/.ignition/gazebo/gui.config will be used.
[in]_loadPluginsFromSdfIf true, plugins specified in the world SDFormat file will get loaded.
[in]_renderEngineGui–render-engine-gui option
Returns
Newly created application.

◆ runGui()

IGNITION_GAZEBO_GUI_VISIBLE int ignition::gazebo::gui::runGui ( int &  _argc,
char **  _argv,
const char *  _guiConfig,
const char *  _renderEngine = nullptr 
)

Run GUI application.

Parameters
[in]_argcNumber of command line arguments (Used when running without ign-tools. Set to 1 if using ign-tools). Note: The object referenced by this variable must continue to exist for the lifetime of the application.
[in]_argvCommand line arguments (Used when running without ign-tools. Set to the name of the application if using ign-tools)
[in]_guiConfigThe GUI configuration file. If nullptr, the default configuration from IGN_HOMEDIR/.ignition/gazebo/gui.config will be used.
[in]_renderEngineGui–render-engine-gui option
Returns
-1 on failure, 0 on success