Stg::StgModelBlobfinder Class Reference
#include <stage.hh>
Inherits Stg::StgModel.
Public Member Functions | |
| void | AddColor (stg_color_t col) |
| virtual void | DataVisualize () |
| stg_blobfinder_blob_t * | GetBlobs (unsigned int *count) |
| virtual void | Load () |
| void | RemoveAllColors () |
| void | RemoveColor (stg_color_t col) |
| virtual void | Shutdown () |
| virtual void | Startup () |
| StgModelBlobfinder (StgWorld *world, StgModel *parent, stg_id_t id, char *typestr) | |
| virtual void | Update () |
| ~StgModelBlobfinder () | |
Static Public Member Functions | |
| static StgModel * | Create (StgWorld *world, StgModel *parent, stg_id_t id, char *typestr) |
Public Attributes | |
| stg_radians_t | fov |
| stg_radians_t | pan |
| stg_meters_t | range |
| unsigned int | scan_height |
| unsigned int | scan_width |
Constructor & Destructor Documentation
| StgModelBlobfinder::StgModelBlobfinder | ( | StgWorld * | world, | |
| StgModel * | parent, | |||
| stg_id_t | id, | |||
| char * | typestr | |||
| ) |
References Stg::StgModel::ClearBlocks(), fov, PRINT_DEBUG2, range, scan_height, and scan_width.
Referenced by Create().
| StgModelBlobfinder::~StgModelBlobfinder | ( | void | ) |
Member Function Documentation
| void Stg::StgModelBlobfinder::AddColor | ( | stg_color_t | col | ) |
Start finding blobs with this color.
Referenced by Load().
| void StgModelBlobfinder::DataVisualize | ( | void | ) | [virtual] |
Reimplemented from Stg::StgModel.
References Stg::stg_pose_t::a, Stg::stg_blobfinder_blob_t::bottom, Stg::stg_blobfinder_blob_t::color, Stg::StgModel::debug, fov, Stg::StgModel::GetGlobalPose(), Stg::stg_blobfinder_blob_t::left, pan, Stg::StgModel::PopColor(), Stg::StgModel::PushColor(), range, Stg::stg_blobfinder_blob_t::right, Stg::rtod(), s, scan_height, scan_width, Stg::StgModel::subs, and Stg::stg_blobfinder_blob_t::top.
| stg_blobfinder_blob_t* Stg::StgModelBlobfinder::GetBlobs | ( | unsigned int * | count | ) | [inline] |
| void StgModelBlobfinder::Load | ( | void | ) | [virtual] |
Reimplemented from Stg::StgModel.
References AddColor(), fov, Stg::StgWorld::GetWorldFile(), Stg::StgModel::Load(), pan, Stg::Worldfile::PropertyExists(), range, Stg::Worldfile::ReadAngle(), Stg::Worldfile::ReadFloat(), Stg::Worldfile::ReadTupleFloat(), Stg::Worldfile::ReadTupleString(), RemoveAllColors(), scan_height, scan_width, Stg::stg_lookup_color(), and Stg::StgModel::world.
| void StgModelBlobfinder::RemoveAllColors | ( | ) |
Stop tracking all colors. Call this to clear the defaults, then add colors individually with AddColor();
Stop tracking all colors. Call this to clear the defaults, then add colors individually with AddColor();
Referenced by Load().
| void StgModelBlobfinder::RemoveColor | ( | stg_color_t | col | ) |
Stop tracking blobs with this color
| void StgModelBlobfinder::Shutdown | ( | void | ) | [virtual] |
Reimplemented from Stg::StgModel.
References PRINT_DEBUG, Stg::StgModel::SetWatts(), and Stg::StgModel::Shutdown().
| void StgModelBlobfinder::Startup | ( | void | ) | [virtual] |
Reimplemented from Stg::StgModel.
References PRINT_DEBUG, Stg::StgModel::SetWatts(), and Stg::StgModel::Startup().
| void StgModelBlobfinder::Update | ( | void | ) | [virtual] |
Reimplemented from Stg::StgModel.
References Stg::stg_raytrace_sample_t::block, Stg::stg_blobfinder_blob_t::bottom, Stg::stg_blobfinder_blob_t::color, Stg::StgBlock::Color(), Stg::StgModel::data_dirty, fov, Stg::stg_blobfinder_blob_t::left, pan, Stg::stg_blobfinder_blob_t::range, range, Stg::StgModel::Raytrace(), Stg::stg_blobfinder_blob_t::right, s, scan_height, scan_width, Stg::stg_blobfinder_blob_t::top, and Stg::StgModel::Update().
Member Data Documentation
Referenced by DataVisualize(), Load(), StgModelBlobfinder(), and Update().
Referenced by DataVisualize(), Load(), and Update().
Referenced by DataVisualize(), Load(), StgModelBlobfinder(), and Update().
| unsigned int Stg::StgModelBlobfinder::scan_height |
Referenced by DataVisualize(), Load(), StgModelBlobfinder(), and Update().
| unsigned int Stg::StgModelBlobfinder::scan_width |
Referenced by DataVisualize(), Load(), StgModelBlobfinder(), and Update().
The documentation for this class was generated from the following files:
Generated on Thu Jan 7 17:42:17 2010 for Stage by
1.5.5
