Bratmobile
|
Chooses the next task reactively (Braitenberg controller) More...
#include <task_controller.h>
Public Member Functions | |
void | next_task (Task ¤tTask, const Task &controlGoal, const TransitionSystem &g, std::vector< vertexDescriptor > ¤t_vertices, std::vector< vertexDescriptor > &plan) |
Virtual function used to choose the next task. More... | |
![]() | |
Disturbance | get_disturbance () |
Returns the disturbance being counteracted as in the cognitive map. | |
void | set_disturbance (const Disturbance &d) |
b2Transform | disturbance_to_goal () |
returns the distance between the disturbance_q and the goal this is used to maintain constant ratios during tracking More... | |
Additional Inherited Members | |
![]() | |
static int | motor_step (Task::Action a, float distance=0.27) |
Assigns fixed duration (in amount of motor callbacks) More... | |
![]() | |
vertexDescriptor | get_current_vertex (const std::vector< vertexDescriptor > &cv) |
Get the current vertex. More... | |
![]() | |
Disturbance | disturbance_q |
b2Transform | _D_to_goal =b2Transform_zero |
Chooses the next task reactively (Braitenberg controller)
|
virtual |
Virtual function used to choose the next task.
currentTask | the current task |
controlGoal | the overarching goal task |
g | the cognitive map |
current_vertices | a container with the cognitive map vertices representing the current Task (more than one if Task has been split) |
plan | the plan |
Implements Controller.