ModelBlobfinder class More...
#include <stage.hh>
Classes | |
class | Blob |
class | Vis |
Public Member Functions | |
void | AddColor (Color col) |
Blob * | GetBlobs (unsigned int *count) |
std::vector< Blob > | GetBlobs () const |
virtual void | Load () |
ModelBlobfinder (World *world, Model *parent, const std::string &type) | |
void | RemoveAllColors () |
void | RemoveColor (Color col) |
virtual void | Shutdown () |
virtual void | Startup () |
virtual void | Update () |
~ModelBlobfinder () | |
Public Attributes | |
radians_t | fov |
radians_t | pan |
meters_t | range |
unsigned int | scan_height |
unsigned int | scan_width |
Stg::ModelBlobfinder::Vis | vis |
Static Private Member Functions | |
static bool | BlockMatcher (Block *testblock, Model *finder) |
Private Attributes | |
std::vector< Blob > | blobs |
std::vector< Color > | colors |
ModelBlobfinder::ModelBlobfinder | ( | World * | world, |
Model * | parent, | ||
const std::string & | type | ||
) |
Definition at line 82 of file model_blobfinder.cc.
ModelBlobfinder::~ModelBlobfinder | ( | void | ) |
Definition at line 103 of file model_blobfinder.cc.
void Stg::ModelBlobfinder::AddColor | ( | Color | col | ) |
Start finding blobs with this color.
static bool Stg::ModelBlobfinder::BlockMatcher | ( | Block * | testblock, |
Model * | finder | ||
) | [static, private] |
Blob* Stg::ModelBlobfinder::GetBlobs | ( | unsigned int * | count | ) | [inline] |
std::vector<Blob> Stg::ModelBlobfinder::GetBlobs | ( | ) | const [inline] |
void ModelBlobfinder::Load | ( | void | ) | [virtual] |
configure a model by reading from the current world file
Reimplemented from Stg::Model.
Definition at line 147 of file model_blobfinder.cc.
void ModelBlobfinder::RemoveAllColors | ( | ) |
Stop tracking all colors. Call this to clear the defaults, then add colors individually with AddColor();
Definition at line 142 of file model_blobfinder.cc.
void ModelBlobfinder::RemoveColor | ( | Color | col | ) |
Stop tracking blobs with this color
Definition at line 131 of file model_blobfinder.cc.
void ModelBlobfinder::Shutdown | ( | void | ) | [virtual] |
Reimplemented from Stg::Model.
Definition at line 281 of file model_blobfinder.cc.
void ModelBlobfinder::Startup | ( | void | ) | [virtual] |
Reimplemented from Stg::Model.
Definition at line 271 of file model_blobfinder.cc.
void ModelBlobfinder::Update | ( | void | ) | [virtual] |
Reimplemented from Stg::Model.
Definition at line 179 of file model_blobfinder.cc.
std::vector<Blob> Stg::ModelBlobfinder::blobs [private] |
std::vector<Color> Stg::ModelBlobfinder::colors [private] |
unsigned int Stg::ModelBlobfinder::scan_height |
unsigned int Stg::ModelBlobfinder::scan_width |
Reimplemented from Stg::Model.