Gazebo Sim

API Reference

7.9.0
ComponentInspector.hh File Reference
#include <map>
#include <memory>
#include <string>
#include <sdf/Material.hh>
#include <sdf/Physics.hh>
#include <gz/math/SphericalCoordinates.hh>
#include <gz/math/Vector3.hh>
#include <gz/transport/Node.hh>
#include <gz/sim/components/Component.hh>
#include <gz/sim/gui/GuiSystem.hh>
#include <gz/sim/Types.hh>
#include "Types.hh"
#include <gz/msgs/light.pb.h>

Go to the source code of this file.

Functions

 Q_DECLARE_METATYPE (ComponentTypeId) namespace gz
 

Function Documentation

◆ Q_DECLARE_METATYPE()

Q_DECLARE_METATYPE ( ComponentTypeId  )

Generic function to set data.

Parameters
[in]_itemItem whose data will be set.
[in]_dataData to set.

Specialized to set string data.

Parameters
[in]_itemItem whose data will be set.
[in]_dataData to set.

Specialized to set light data.

Parameters
[in]_itemItem whose data will be set.
[in]_dataData to set.

Specialized to set vector data.

Parameters
[in]_itemItem whose data will be set.
[in]_dataData to set.

Specialized to set Physics data.

Parameters
[in]_itemItem whose data will be set.
[in]_dataData to set.

Specialized to set Spherical Coordinates data.

Parameters
[in]_itemItem whose data will be set.
[in]_dataData to set.

Specialized to set boolean data.

Parameters
[in]_itemItem whose data will be set.
[in]_dataData to set.

Specialized to set integer data.

Parameters
[in]_itemItem whose data will be set.
[in]_dataData to set.

Specialized to set double data.

Parameters
[in]_itemItem whose data will be set.
[in]_dataData to set.

Specialized to set stream data.

Parameters
[in]_itemItem whose data will be set.
[in]_dataData to set.

Specialized to set material data.

Parameters
[in]_itemItem whose data will be set.
[in]_dataData to set.

Set the unit of a given item.

Parameters
[in]_itemItem whose unit will be set.
[in]_unitUnit to be displayed, such as 'm' for meters.

Model holding information about components, such as their type and data.

Constructor

Destructor

Static version of roleNames

Returns
A hash connecting a unique identifier to a role name.

Add a component type to the inspector.

Parameters
[in]_typeIdType of component to be added.
Returns
Newly created item.

Remove a component type from the inspector.

Parameters
[in]_typeIdType of component to be removed.

Keep track of items in the tree, according to type ID.

Displays a tree view with all the entities in the world.

Configuration

None

Entity

Type

Locked

Paused

Nested Model

System display name list

Constructor

Destructor

Add a callback that's called whenever there are updates from the ECM to the view, for a given component type.

Parameters
[in]_idThe component type id
[in]_cbFunction that's called when there are updates.

Callback in Qt thread when specular changes.

Parameters
[in]_rSpecularspecular red
[in]_gSpecularspecular green
[in]_bSpecularspecular blue
[in]_aSpecularspecular alpha
[in]_rDiffuseDiffuse red
[in]_gDiffuseDiffuse green
[in]_bDiffuseDiffuse blue
[in]_aDiffuseDiffuse alpha
[in]_attRangeRange attenuation
[in]_attLinearLinear attenuation
[in]_attConstantConstant attenuation
[in]_attQuadraticQuadratic attenuation
[in]_castShadowsSpecify if this light should cast shadows
[in]_directionXX direction of the light
[in]_directionYY direction of the light
[in]_directionZZ direction of the light
[in]_innerAngleInner angle of the spotlight
[in]_outerAngleOuter angle of the spotlight
[in]_falloffFalloff of the spotlight
[in]_intensityIntensity of the light
[in]_typelight type
[in]_isLightOnis light on
[in]_visualizeVisualis visual enabled

Callback in Qt thread when physics' properties change.

Parameters
[in]_stepSizestep size
[in]_realTimeFactorreal time factor
[in]_rAmbientambient red
[in]_gAmbientambient green
[in]_bAmbientambient blue
[in]_aAmbientambient alpha
[in]_rDiffusediffuse red
[in]_gDiffusediffuse green
[in]_bDiffusediffuse blue
[in]_aDiffusediffuse alpha
[in]_rSpecularspecular red
[in]_gSpecularspecular green
[in]_bSpecularspecular blue
[in]_aSpecularspecular alpha
[in]_rEmissiveemissive red
[in]_gEmissiveemissive green
[in]_bEmissiveemissive blue
[in]_aEmissiveemissive alpha
[in]_typeif type is not empty, opens QColorDialog. The possible types are ambient, diffuse, specular, or emissive.
[in]_currColorused for QColorDialog to show the current color in the open dialog.

Callback in Qt thread when spherical coordinates change.

Parameters
[in]_surfaceSurface model
[in]_latitudeLatitude in degrees
[in]_longitudeLongitude in degrees
[in]_elevationElevation in meters
[in]_headingHeading in degrees

Get whether the entity is a nested model or not

Returns
True if the entity is a nested model, false otherwise

Notify that is nested model property has changed

Get the entity currently inspected.

Returns
Entity ID.

Set the entity currently inspected.

Parameters
[in]_entityEntity ID.

Notify that entity has changed.

Get the type of entity currently inspected.

Returns
Type, such as 'world' or 'model'

Set the type of entity currently inspected.

Parameters
[in]_typeType, such as 'world' or 'model'.

Notify that entity type has changed

Get whether the inspector is currently locked on an entity.

Returns
True for locked

Set whether the inspector is currently locked on an entity.

Parameters
[in]_lockedTrue for locked.

Notify that locked has changed.

Get whether the inspector is currently paused for updates.

Returns
True for paused.

Set whether the inspector is currently paused for updates.

Parameters
[in]_pausedTrue for paused.

Notify that paused has changed.

Name of world entity

Returns
World name

Node for communication

Returns
Transport node

Query system plugin info.

Get the system plugin display name list

Returns
A list of names that are potentially system plugins

Set the system plugin display name list

Parameters
[in]_systempFilenameListA list of system plugin display names

Notify that system plugin display name list has changed

Callback when a new system is to be added to an entity

Parameters
[in]_nameName of system
[in]_filenameFilename of system
[in]_innerxmlInner XML content of the system

References std::endl(), gzwarn, stringstream::str(), and IsOutStreamable< Stream, DataType >::value.