|
Public Member Functions |
|
| feature (int np=MAX_N_CONTR_POINTS) |
| | Constructor.
|
|
| ~feature () |
| | Destructor.
|
|
| feature (const feature &f) |
| | Copy constructor.
|
|
feature & | operator= (const feature &f) |
| | Assignment operator.
|
|
int | get_id () const |
| | Get feature id.
|
|
void | set_id (int id) |
| | Set feature id.
|
|
int | get_type () const |
| | Get type id.
|
|
void | set_type (int type) |
| | Set type.
|
|
int | get_i_start () const |
| | Get start index from range of contributing points in original scan.
|
|
void | set_i_start (int i) |
| | Set start index from range of contributing points in original scan.
|
|
int | get_i_end () const |
| | Get end index from range of contributing points in original scan.
|
|
void | set_i_end (int i) |
| | Set end index from range of contributing points in original scan.
|
|
int | get_n_support_cues () const |
| | Get number of supporting cues.
|
|
void | set_n_support_cues (int n) |
| | Set number of supporting cues.
|
|
void | get_cog (double &x_mean, double &y_mean) const |
| | Get center of gravity.
|
|
int | get_n_points () const |
| | Get number of contributing points.
|
|
void | set_n_points (int np) |
| | Set number of contributing points.
|
|
void | get_points (double *&phi, double *&rho) const |
| | Get contributing points.
|
|
int | set_point (int i, double phi, double rho) |
| | Set point with index i.
|
|
void | estimate_center () |
| | Estimate centers (x_mean, y_mean).
|
|
void | print () const |
| | Print feature info into shell.
|
Private Attributes |
|
int | id |
| | Feature identifier.
|
|
int | type |
| | Feature type encoding origin from a set of cues/sensors.
|
|
int | n_support_cues |
| | Number of cues by which the feature is supported.
|
|
int | i_start |
| | Feature segment start index, referring to the scan array.
|
|
int | i_end |
| | Feature segment end index, referring to the scan array.
|
|
int | max_np |
| | Maximal number of segment points (this is to make faster static point arrays possible).
|
|
int | np |
| | Number of points in segment.
|
|
double | x_mean |
| | Segment center of gravity in x.
|
|
double | y_mean |
| | Segment center of gravity in y.
|
|
double * | phi |
| | Segment points in polar coordinates, pointer to phi-values.
|
|
double * | rho |
| | Segment points in polar coordinates, pointer to rho-values.
|