Bratmobile
Public Member Functions | List of all members
DeadReckoner Class Reference

Tracks task execution through dead reckoning. More...

#include <tracker.h>

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

Public Member Functions

TrackingResult track (const Task &t, const CoordinateContainer &pts, const std::vector< BodyFeatures > &objects)
 Tracks task execution. More...
 
void on_new_task (const Task &task, const Task &goal) override
 Called every time a new task is created. More...
 
virtual void on_new_reading (const Task &goal, const Task &currentTask) override
 Called every time asensor reading is available. More...
 
void init (const Task &goal)
 
- Public Member Functions inherited from Tracker
Thresholdget_threshold ()
 
void register_learner (ThresholdLearner *l)
 
b2Transform getDeltaTransform ()
 
virtual TrackingResult get_transform (const Task &t, const CoordinateContainer &pts, const std::vector< BodyFeatures > &objects)
 
virtual bool hasTaskEnded (Task &t)
 
void make_log ()
 opens file where all the data is dumped
 

Additional Inherited Members

- Public Attributes inherited from Tracker
Threshold threshold =Threshold()
 
- Protected Member Functions inherited from Tracker
void log_thresholds ()
 
- Protected Attributes inherited from Tracker
friend Configurator
 
ThresholdLearnerlearner =NULL
 
b2Transform deltaTransform =b2Transform_zero
 

Detailed Description

Tracks task execution through dead reckoning.

Member Function Documentation

◆ on_new_reading()

virtual void DeadReckoner::on_new_reading ( const Task goal,
const Task currentTask 
)
inlineoverridevirtual

Called every time asensor reading is available.

Parameters
task

Implements Tracker.

◆ on_new_task()

void DeadReckoner::on_new_task ( const Task task,
const Task goal 
)
inlineoverridevirtual

Called every time a new task is created.

Parameters
tthe task

Implements Tracker.

◆ track()

TrackingResult DeadReckoner::track ( const Task t,
const CoordinateContainer pts,
const std::vector< BodyFeatures > &  objects 
)
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

Implements Tracker.


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