Class Command2D

Inheritance Relationships

Base Type

  • public cv::Vec< double, 2 >

Class Documentation

class Command2D : public cv::Vec<double, 2>

class to handle motion control commands

Public Functions

Command2D()

constructor

Command2D(double v, double w)

constructor

Command2D(const Command2D &o)

copy constructor

double &v()
Returns:

linear velocity

const double &v() const
Returns:

linear velocity

double &w()
Returns:

angular velocity

const double &w() const
Returns:

angular velocity

void set(double v, double w)
Parameters:
  • v – linear velocity

  • w – angular velocity

Friends

friend std::ostream &operator<<(std::ostream &os, const Command2D &o)

Stream extraction

Parameters:
  • os – outputstream

  • o – object

Returns:

stream