Bratmobile
Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | List of all members
Tracker Class Referenceabstract

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>

Inheritance diagram for Tracker:
Inheritance graph
[legend]
Collaboration diagram for Tracker:
Collaboration graph
[legend]

Public Member Functions

Thresholdget_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

ThresholdLearnerlearner =NULL
 

Detailed Description

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.

Member Function Documentation

◆ get_transform()

virtual b2Transform Tracker::get_transform ( const Task t,
const CoordinateContainer &  pts,
Disturbance observed_disturbance,
std::vector< BodyFeatures > &  objects 
)
pure virtual

calculates 2d affine transformation of input task's disturbance from t-1 to t

Parameters
tinput task
ptspoint cloud
objectsworld objects as extracted in worldbuilder

Implemented in ClosedLoop_Tracker, and DeadReckoner.

◆ on_new_reading()

virtual void Tracker::on_new_reading ( Task task = NULL)
pure virtual

Called every time asensor reading is available.

Parameters
task

Implemented in DeadReckoner, and ClosedLoop_Tracker.

◆ on_new_task()

virtual void Tracker::on_new_task ( Task task = NULL)
pure virtual

Called every time a new task is created.

Parameters
tthe task

Implemented in ClosedLoop_Tracker, and DeadReckoner.

◆ track()

virtual b2Transform Tracker::track ( Task t,
const CoordinateContainer &  pts,
std::vector< BodyFeatures > &  objects 
)
pure virtual

Tracks task execution.

Parameters
tinput task
ptspoint cloud
observed_disturbancepointer body features of the observed disturbance.
objectsworld objects as extracted in worldbuilder
Returns
b2Transform that the robot has moved by, can use for updating cognitive map and control

Implemented in ClosedLoop_Tracker, and DeadReckoner.


The documentation for this class was generated from the following files: