Manages grids in a Gazebo Rendering scene. This plugin can be used for:
More...
#include <GridConfig.hh>
|
QStringList | NameList () const |
| Get the list of grid names.
|
|
void | OnName (const QString &_name) |
| Callback when a new name is chosen on the combo box.
|
|
void | OnRefresh () |
| Callback when refresh button is pressed.
|
|
void | OnShow (bool _checked) |
| Callback when checkbox is clicked.
|
|
void | SetColor (double _r, double _g, double _b, double _a) |
| Callback to update grid color.
|
|
void | SetNameList (const QStringList &_nameList) |
| Set the list of names.
|
|
void | SetPose (double _x, double _y, double _z, double _roll, double _pitch, double _yaw) |
| Callback to update grid pose.
|
|
void | UpdateCellLength (double _length) |
| Callback to update cell length.
|
|
void | UpdateHCellCount (int _cellCount) |
| Callback to update horizontal cell count.
|
|
void | UpdateVCellCount (int _cellCount) |
| Callback to update vertical cell count.
|
|
Manages grids in a Gazebo Rendering scene. This plugin can be used for:
- Introspecting grids
- Editing grids
Configuration
- <insert> : One grid will be inserted at startup for each <insert> tag.
- <horizontal_cell_count> : Number of cells in the horizontal direction, defaults to 20.
- <vertical_cell_count> : Number of cells in the vertical direction, defaults to 0;
- <cell_length> : Length of each cell, defaults to 1.
- <pose> : Grid pose, defaults to the origin.
- <color> : Grid color, defaults to (0.7, 0.7, 0.7, 1.0)
◆ GridConfig()
◆ ~GridConfig()
◆ ConnectToGrid()
Callback to retrieve existing grid.
◆ CreateGrids()
Create grids defined at startup.
◆ eventFilter()
◆ LoadConfig()
void LoadConfig |
( |
const tinyxml2::XMLElement * |
| ) |
|
|
override |
◆ NameList
Get the list of grid names.
- Returns
- List of grids.
◆ NameListChanged
Notify that name list has changed.
◆ newParams
Notify QML that grid values have changed.
- Parameters
-
[in] | _hCellCount | Horizontal cell count |
[in] | _vCellCount | Vertical cell count |
[in] | _cellLength | Cell length |
[in] | _pos | XYZ Position |
[in] | _rot | RPY orientation |
[in] | _color | Grid color |
◆ OnName
void OnName |
( |
const QString & |
_name | ) |
|
|
slot |
Callback when a new name is chosen on the combo box.
- Parameters
-
◆ OnRefresh
Callback when refresh button is pressed.
◆ OnShow
void OnShow |
( |
bool |
_checked | ) |
|
|
slot |
Callback when checkbox is clicked.
- Parameters
-
[in] | _checked | indicates show or hide grid |
◆ RefreshList()
Refresh list of grids. This is called in the rendering thread.
◆ SetColor
void SetColor |
( |
double |
_r, |
|
|
double |
_g, |
|
|
double |
_b, |
|
|
double |
_a |
|
) |
| |
|
slot |
Callback to update grid color.
- Parameters
-
[in] | _r,_g,_b,_a | RGB color model with fourth alpha channel |
◆ SetNameList
Set the list of names.
- Parameters
-
[in] | _nameList | List of names |
◆ SetPose
void SetPose |
( |
double |
_x, |
|
|
double |
_y, |
|
|
double |
_z, |
|
|
double |
_roll, |
|
|
double |
_pitch, |
|
|
double |
_yaw |
|
) |
| |
|
slot |
Callback to update grid pose.
- Parameters
-
[in] | _x,_y,_z | cartesion coordinates |
[in] | _roll,_pitch,_yaw | principal coordinates |
◆ UpdateCellLength
void UpdateCellLength |
( |
double |
_length | ) |
|
|
slot |
Callback to update cell length.
- Parameters
-
[in] | _length | new cell length |
◆ UpdateGrid()
◆ UpdateHCellCount
void UpdateHCellCount |
( |
int |
_cellCount | ) |
|
|
slot |
Callback to update horizontal cell count.
- Parameters
-
[in] | _cellCount | new horizontal cell count |
◆ UpdateVCellCount
void UpdateVCellCount |
( |
int |
_cellCount | ) |
|
|
slot |
Callback to update vertical cell count.
- Parameters
-
[in] | _cellCount | new vertical cell count |
◆ nameList
The documentation for this class was generated from the following file: