MipResources::MRControlInput Class Reference
[Offliner Task]

This class represents the control input of a mobile unycycle robot. More...

#include <MRControlInput.h>

List of all members.

Public Member Functions

 MRControlInput ()
 Default constructor (sets all fields to zero - ctime included).
 MRControlInput (const Decimal lv, const Decimal av)
 Velocities constructor (sets ctime to the current SimTime).
 MRControlInput (const SimTime &t, const Decimal lv, const Decimal av)
 Complete constructor.
 MRControlInput (const MRControlInput &mc)
 Copy constructor.
 MRControlInput (stringstream &ss)
 stringstream constructor.
 ~MRControlInput ()
 Destructor (does not do anything).
MRControlInputoperator= (const MRControlInput &mc)
 Copy operator.
string exportAsString () const
 Exports as formatted string.

Public Attributes

SimTime ctime
 Time of imposition of the control input.
Decimal lVel
 Linear velocity.
Decimal aVel
 Angular velocity.


Detailed Description

This class represents the control input of a mobile unycycle robot.

Author:
Paolo Stegagno

Constructor & Destructor Documentation

MipResources::MRControlInput::MRControlInput (  ) 

Default constructor (sets all fields to zero - ctime included).

MipResources::MRControlInput::MRControlInput ( const Decimal  lv,
const Decimal  av 
)

Velocities constructor (sets ctime to the current SimTime).

Parameters:
[in] lv Sets lVel to this value.
[in] av Sets aVel to this value.

MipResources::MRControlInput::MRControlInput ( const SimTime t,
const Decimal  lv,
const Decimal  av 
)

Complete constructor.

Parameters:
[in] &t Sets ctime to this value.
[in] lv Sets lVel to this value.
[in] av Sets aVel to this value.

MipResources::MRControlInput::MRControlInput ( const MRControlInput mc  ) 

Copy constructor.

Parameters:
[in] &mc Copy this MRControlInput.

MipResources::MRControlInput::MRControlInput ( stringstream &  ss  ) 

stringstream constructor.

Parameters:
[in] &ss extract the MRControlInput from this stringstream. Extracts a MRControlInput from a stringstream reading the values as if they where printed using exportAsString.

MipResources::MRControlInput::~MRControlInput (  ) 

Destructor (does not do anything).


Member Function Documentation

MRControlInput & MipResources::MRControlInput::operator= ( const MRControlInput mc  ) 

Copy operator.

Parameters:
[in] &mc Copy this MRControlInput.
Returns:
Returns this.

string MipResources::MRControlInput::exportAsString (  )  const

Exports as formatted string.

Returns:
Returns a formatted string composed by "ctime.exportAsString() lVel aVel".


Member Data Documentation

Time of imposition of the control input.

Linear velocity.

Angular velocity.


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

Generated on Mon Feb 20 07:01:12 2017 for MIP by  doxygen 1.5.6