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 | SetGridPose (const QList< double > &_gridPose) | 
|  | Set the grid pose. 
 | 
|  | 
| void | SetNameList (const QStringList &_nameList) | 
|  | Set the list of names. 
 | 
|  | 
| 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. 
 | 
|  | 
|  | 
| void | GridPoseChanged () | 
|  | Notify that the grid pose has changed. 
 | 
|  | 
| void | NameListChanged () | 
|  | Notify that name list has changed. 
 | 
|  | 
| void | newParams (int _hCellCount, int _vCellCount, double _cellLength, QColor _color) | 
|  | Notify QML that grid values have changed. 
 | 
|  | 
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()
◆ GridPose()
      
        
          | Q_INVOKABLE QList< double > GridPose | ( |  | ) | const | 
      
 
Get the current grid camera pose. 
 
 
◆ GridPoseChanged
Notify that the grid pose has changed. 
 
 
◆ 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
  
  | 
        
          | void newParams | ( | int | _hCellCount, |  
          |  |  | int | _vCellCount, |  
          |  |  | double | _cellLength, |  
          |  |  | QColor | _color |  
          |  | ) |  |  |  | signal | 
 
Notify QML that grid values have changed. 
- Parameters
- 
  
    | [in] | _hCellCount | Horizontal cell count |  | [in] | _vCellCount | Vertical cell count |  | [in] | _cellLength | Cell length |  | [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 |  
 
 
 
◆ SetGridPose
  
  | 
        
          | void SetGridPose | ( | const QList< double > & | _gridPose | ) |  |  | slot | 
 
Set the grid pose. 
- Parameters
- 
  
    | [in] | _gridPose | GridPose to set. The QList elements are x, y, z, roll, pitch, yaw |  
 
 
 
◆ SetNameList
Set the list of names. 
- Parameters
- 
  
    | [in] | _nameList | List of names |  
 
 
 
◆ 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 |  
 
 
 
◆ gridPose
Grid pose (QList order is x, y, z, roll, pitch, yaw) 
 
 
◆ nameList
The documentation for this class was generated from the following file: