Public Member Functions | Friends | List of all members
tuw::Command Class Reference

#include <command.h>

Inheritance diagram for tuw::Command:
Inheritance graph
[legend]

Public Member Functions

 Command ()
 constructor More...
 
 Command (const Command &o)
 copy constructor More...
 
 Command (double v, double w)
 constructor More...
 
void set (double v, double w)
 
double & v ()
 
const double & v () const
 
double & w ()
 
const double & w () const
 

Friends

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

Detailed Description

class to handle motion control commands

Definition at line 16 of file command.h.

Constructor & Destructor Documentation

◆ Command() [1/3]

Command::Command ( )

constructor

Definition at line 4 of file command.cpp.

◆ Command() [2/3]

Command::Command ( double  v,
double  w 
)

constructor

Definition at line 6 of file command.cpp.

◆ Command() [3/3]

Command::Command ( const Command o)

copy constructor

Definition at line 8 of file command.cpp.

Member Function Documentation

◆ set()

void Command::set ( double  v,
double  w 
)
Parameters
vlinear velocity
wangular velocity

Definition at line 26 of file command.cpp.

◆ v() [1/2]

const double & Command::v ( )
Returns
linear velocity

Definition at line 10 of file command.cpp.

◆ v() [2/2]

const double& tuw::Command::v ( ) const
Returns
linear velocity

◆ w() [1/2]

const double & Command::w ( )
Returns
angular velocity

Definition at line 18 of file command.cpp.

◆ w() [2/2]

const double& tuw::Command::w ( ) const
Returns
angular velocity

Friends And Related Function Documentation

◆ operator<<

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

Stream extraction

Parameters
osoutputstream
oobject
Returns
stream

Definition at line 55 of file command.h.


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


tuw_geometry
Author(s): Markus Bader
autogenerated on Sun Feb 26 2023 03:25:40