Bratmobile
|
Tracking interface: Bridge between the real world and the simulation. Is used for tracking execution of tasks and using lived experience to modify the state-matching threshold. More...
#include <tracker.h>
Public Member Functions | |
Threshold * | get_threshold () |
void | register_learner (ThresholdLearner *l) |
virtual b2Transform | get_transform (const Task &t, const CoordinateContainer &pts, Disturbance *observed_disturbance, std::vector< BodyFeatures > &objects)=0 |
virtual b2Transform | track (Task &t, const CoordinateContainer &pts, std::vector< BodyFeatures > &objects)=0 |
Tracks task execution. More... | |
virtual void | on_new_task (Task *task=NULL)=0 |
Called every time a new task is created. More... | |
virtual void | on_new_reading (Task *task=NULL)=0 |
Called every time asensor reading is available. More... | |
virtual void | init (Task *goal)=0 |
void | make_log () |
opens file where all the data is dumped | |
Public Attributes | |
Threshold | threshold =Threshold() |
Protected Member Functions | |
void | log_thresholds () |
Protected Attributes | |
ThresholdLearner * | learner =NULL |
Tracking interface: Bridge between the real world and the simulation. Is used for tracking execution of tasks and using lived experience to modify the state-matching threshold.
|
pure virtual |
calculates 2d affine transformation of input task's disturbance from t-1 to t
t | input task |
pts | point cloud |
objects | world objects as extracted in worldbuilder |
Implemented in ClosedLoop_Tracker, and DeadReckoner.
|
pure virtual |
Called every time asensor reading is available.
task |
Implemented in DeadReckoner, and ClosedLoop_Tracker.
|
pure virtual |
Called every time a new task is created.
t | the task |
Implemented in ClosedLoop_Tracker, and DeadReckoner.
|
pure virtual |
Tracks task execution.
t | input task |
pts | point cloud |
observed_disturbance | pointer body features of the observed disturbance. |
objects | world objects as extracted in worldbuilder |
Implemented in ClosedLoop_Tracker, and DeadReckoner.