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

b2Transform get_transform (const Task &t, const CoordinateContainer &pts, Disturbance *observed_disturbance, std::vector< BodyFeatures > &objects)
 
b2Transform track (Task &t, const CoordinateContainer &pts, std::vector< BodyFeatures > &objects)
 Tracks task execution. More...
 
void on_new_task (Task *task=NULL)
 Called every time a new task is created. More...
 
void on_new_reading (Task *task=NULL)
 Called every time asensor reading is available. More...
 
void init (Task *goal)
 
- Public Member Functions inherited from Tracker
Thresholdget_threshold ()
 
void register_learner (ThresholdLearner *l)
 
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
ThresholdLearnerlearner =NULL
 

Detailed Description

Tracks task execution through dead reckoning.

Member Function Documentation

◆ get_transform()

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

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

Implements Tracker.

◆ on_new_reading()

void DeadReckoner::on_new_reading ( Task task = NULL)
inlinevirtual

Called every time asensor reading is available.

Parameters
task

Implements Tracker.

◆ on_new_task()

void DeadReckoner::on_new_task ( Task task = NULL)
inlinevirtual

Called every time a new task is created.

Parameters
tthe task

Implements Tracker.

◆ track()

b2Transform DeadReckoner::track ( Task t,
const CoordinateContainer &  pts,
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: