Bratmobile
Public Member Functions | List of all members
Task::Action Struct Reference

The motor instructions generated by the control strategy used in this tasks. More...

#include <task.h>

Public Member Functions

void init (Direction &direction)
 
void setVelocities (const float &l, const float &r)
 
b2Vec2 getLinearVelocity (const float &dt=1) const
 
b2Transform getTransform (const float &dt=1) const
 Gets the ROBOT's displacement in the world frame after dt seconds. More...
 
float getRWheelSpeed () const
 
float getLWheelSpeed () const
 
void setRWheelSpeed (float f)
 
void setLWheelSpeed (float f)
 
bool isValid ()
 
float getLinearSpeed ()
 
float getOmega (const float &dt=1) const
 
float getOmega (const float l, const float r, float dt=1) const
 Uses kinematic model to calculate angle. More...
 
void setOmega (const float &o)
 
void setLinearSpeed (const float &s)
 

Detailed Description

The motor instructions generated by the control strategy used in this tasks.

Member Function Documentation

◆ getOmega()

float Task::Action::getOmega ( const float  l,
const float  r,
float  dt = 1 
) const
inline

Uses kinematic model to calculate angle.

Parameters
lleft wheel speed (normalised)
rright wheen speed (normalised) *

◆ getTransform()

b2Transform Task::Action::getTransform ( const float &  dt = 1) const
inline

Gets the ROBOT's displacement in the world frame after dt seconds.

Parameters
dtdelta time (in seconds)

The documentation for this struct was generated from the following file: