wbc
wbc::PotentialField Class Referenceabstract

Base class for potential fields. More...

#include <PotentialField.hpp>

Inheritance diagram for wbc::PotentialField:
wbc::PlanarPotentialField wbc::RadialPotentialField

Public Member Functions

 PotentialField (const uint _dimension, const std::string &_name="unset")
 
virtual ~PotentialField ()
 
virtual const base::VectorXd & update (const base::VectorXd &position)=0
 Implement in derived class. Compute control update according to potential field equation.
 

Public Attributes

base::Time time
 
uint dimension
 
double influence_distance
 
base::VectorXd distance
 
base::VectorXd pot_field_center
 
base::VectorXd gradient
 
const std::string name
 

Detailed Description

Base class for potential fields.

Constructor & Destructor Documentation

◆ PotentialField()

wbc::PotentialField::PotentialField ( const uint _dimension,
const std::string & _name = "unset" )
inline

Init all members. Dimension of the field. Has to be > 0. e.g. a field in Cartesian space would have dimension 3.

◆ ~PotentialField()

virtual wbc::PotentialField::~PotentialField ( )
inlinevirtual

Member Function Documentation

◆ update()

virtual const base::VectorXd & wbc::PotentialField::update ( const base::VectorXd & position)
pure virtual

Implement in derived class. Compute control update according to potential field equation.

Returns
Computed gradient. Size will be same as dimension

Implemented in wbc::PlanarPotentialField, and wbc::RadialPotentialField.

Member Data Documentation

◆ dimension

uint wbc::PotentialField::dimension

Dimension of the potential field, e.g. a potential field in 3d space would have size 3.

◆ distance

base::VectorXd wbc::PotentialField::distance

Distance vector to the potential field.

◆ gradient

base::VectorXd wbc::PotentialField::gradient

Gradient for this field

◆ influence_distance

double wbc::PotentialField::influence_distance

Maximum influence distance of the field. Default will be inf

◆ name

const std::string wbc::PotentialField::name

ID of the potential field

◆ pot_field_center

base::VectorXd wbc::PotentialField::pot_field_center

Potential field center position

◆ time

base::Time wbc::PotentialField::time

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