ModelRanger class More...
#include <stage.hh>
Classes | |
class | Sensor |
class | Vis |
Public Member Functions | |
const std::vector< double > & | GetIntensities (unsigned int sensor=0) const |
meters_t * | GetIntensitiesArr (unsigned int sensor, uint32_t *count) |
const std::vector< meters_t > & | GetRanges (unsigned int sensor=0) const |
meters_t * | GetRangesArr (unsigned int sensor, uint32_t *count) |
std::vector< meters_t > & | GetRangesMutable (unsigned int sensor=0) |
const std::vector< Sensor > & | GetSensors () const |
virtual void | Load () |
void | LoadSensor (Worldfile *wf, int entity) |
ModelRanger (World *world, Model *parent, const std::string &type) | |
virtual void | Print (char *prefix) const |
virtual | ~ModelRanger () |
Public Attributes | |
Stg::ModelRanger::Vis | vis |
Protected Member Functions | |
virtual void | Shutdown () |
virtual void | Startup () |
virtual void | Update () |
ModelRanger class
ModelRanger::~ModelRanger | ( | ) | [virtual] |
const std::vector<double>& Stg::ModelRanger::GetIntensities | ( | unsigned int | sensor = 0 | ) | const [inline] |
returns a vector of intensitye samples from the indicated sensor (defaults to zero)
meters_t* Stg::ModelRanger::GetIntensitiesArr | ( | unsigned int | sensor, |
uint32_t * | count | ||
) | [inline] |
returns a pointer to an array of intensities, and fills in the argument with the array-length (C-style).
const std::vector<meters_t>& Stg::ModelRanger::GetRanges | ( | unsigned int | sensor = 0 | ) | const [inline] |
returns a const reference to the vector of range samples from the indicated sensor (defaults to zero)
meters_t* Stg::ModelRanger::GetRangesArr | ( | unsigned int | sensor, |
uint32_t * | count | ||
) | [inline] |
returns a pointer to an array of ranges, and fills in the argument with the array-length (C-style).
std::vector<meters_t>& Stg::ModelRanger::GetRangesMutable | ( | unsigned int | sensor = 0 | ) | [inline] |
returns a mutable reference to the vector of range samples from the indicated sensor (defaults to zero). Mutating the range data in place allows controllers to act as filters.
const std::vector<Sensor>& Stg::ModelRanger::GetSensors | ( | ) | const [inline] |
returns a const reference to a vector of range and reflectance samples
void ModelRanger::Load | ( | void | ) | [virtual] |
configure a model by reading from the current world file
Reimplemented from Stg::Model.
void ModelRanger::LoadSensor | ( | Worldfile * | wf, |
int | entity | ||
) |
void ModelRanger::Print | ( | char * | prefix | ) | const [virtual] |
Reimplemented from Stg::Model.
void ModelRanger::Shutdown | ( | void | ) | [protected, virtual] |
Reimplemented from Stg::Model.
void ModelRanger::Startup | ( | void | ) | [protected, virtual] |
Causes this model and its children to recompute their global position instead of using a cached pose in Model::GetGlobalPose()..
Reimplemented from Stg::Model.
void ModelRanger::Update | ( | void | ) | [protected, virtual] |
Reimplemented from Stg::Model.
Reimplemented from Stg::Model.