|
Public Member Functions |
|
| track (int hist_depth=MAX_HIST_DEPTH) |
| | Constructor.
|
|
| ~track () |
| | Destructor.
|
|
| track (const track &t) |
| | Copy constructor.
|
|
track & | operator= (const track &t) |
| | Assignment operator.
|
|
void | initialize (int id, int type, int mode, double time, gsl::matrix &x, gsl::matrix &C) |
| | Initialize new track.
|
|
int | get_id () |
| | Get track id.
|
|
int | get_type () |
| | Get type id.
|
|
int | is_matched () |
| | Return matched flag.
|
|
void | set_matched () |
| | Set matched flag to true and reset n_misses.
|
|
int | get_n_misses () |
| | Get number of non-matched in a row.
|
|
void | inc_n_misses () |
| | Increase number of non-matched in a row.
|
|
void | finalize_cycle () |
| | Conclude cycle.
|
|
double | get_timestamp () |
| | Get timestamp (= last updated time).
|
|
void | set_timestamp (double t) |
| | Set timestamp (= last updated time).
|
|
int | get_n_pairings () |
| | Get number of pairings.
|
|
void | inc_n_pairings () |
| | Increase number of pairings by 1.
|
|
void | get_state (gsl::matrix &x) |
| | Get state.
|
|
void | get_cov (gsl::matrix &C) |
| | Set covariance matrix.
|
|
void | get_state_and_cov (gsl::matrix &x, gsl::matrix &C) |
| | Get state moments.
|
|
void | get_meas_prediction (gsl::matrix &zp, gsl::matrix &Cp, gsl::matrix &H) |
| | Get measurement prediction and associated matrices.
|
|
int | get_hist_depth () |
| | Get number of entries in history.
|
|
void | get_hist_pos (int i, double &x, double &y) |
| | Get x,y,theta-variables from history at index i.
|
|
void | init_cycle () |
| | Initialize track for new cycle.
|
|
void | predict (double dt) |
| | Apply motion model.
|
|
void | predict_measurements () |
| | Predict measurements.
|
|
void | estimate_ekf (gsl::matrix &v, gsl::matrix &Sinv) |
| | Apply KF given innov. v, inv. inno. cov. S and meas. Jacobian H.
|
|
void | copy_prior_to_posterior () |
| | Transfer prediction to posterior for non-matched tracks.
|
|
void | update_history () |
| | Insert current state into history.
|
|
void | print () |
| | Print track info.
|
Private Attributes |
|
int | id |
| | Track identifier.
|
|
int | type |
| | Track type identifier. Encodes differnet target classes (currently nor used).
|
|
double | timestamp |
| | Timestamp of last track update (i.e. when track is matched).
|
|
int | mode |
| | Motion mode of track (currently not used).
|
|
int | matched |
| | Flag indicating if track is matched (= reobserved).
|
|
int | n_misses |
| | Number of consecutive non-observation of a track. Used for track deletion heuristics.
|
|
int | n_pairings |
| | Number of candidate associations to observations.
|
|
int | n_cycles |
| | Lifetime counter. As long as track exists it gets increased.
|
|
gsl::matrix | x |
| | Track state x.
|
|
gsl::matrix | C |
| | Track state covariance matrix C.
|
|
gsl::matrix | H |
| | Track measurement Jacobian H.
|
|
gsl::matrix | xp |
| | Track state prediction x hat;.
|
|
gsl::matrix | Cp |
| | Track state prediction covariance C hat.
|
|
gsl::matrix | zp |
| | Track measurement prediction z hat.
|
|
int | ne |
| | Number of entries in track history buffer.
|
|
int | ie |
| | Current index of history buffer. Gets increased automatically similar to a file desciptor.
|
|
int | max_ne |
| | Maximum number of history entries (= buffer length).
|
|
hist_entry * | history |
| | Track history. Stores most important track information into a cycle buffer.
|