Classes | Public Member Functions | Public Attributes | Protected Member Functions
Stg::ModelRanger Class Reference

ModelRanger class More...

#include <stage.hh>

Inheritance diagram for Stg::ModelRanger:
Inheritance graph
[legend]

List of all members.

Classes

class  Sensor
class  Vis

Public Member Functions

const std::vector< double > & GetIntensities (unsigned int sensor=0) const
meters_tGetIntensitiesArr (unsigned int sensor, uint32_t *count)
const std::vector< meters_t > & GetRanges (unsigned int sensor=0) const
meters_tGetRangesArr (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 ()

Detailed Description

ModelRanger class


Constructor & Destructor Documentation

ModelRanger::ModelRanger ( World world,
Model parent,
const std::string &  type 
)
ModelRanger::~ModelRanger ( ) [virtual]

Member Function Documentation

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.


Member Data Documentation

Reimplemented from Stg::Model.


The documentation for this class was generated from the following files: