delphyne
|
Specializes BasicVector with specific getters and setters.
#include <src/gen/angular_rate_acceleration_command.h>
Public Member Functions | |
AngularRateAccelerationCommand () | |
Default constructor. More... | |
AngularRateAccelerationCommand< T > * | DoClone () const final |
Getters and Setters | |
const T & | angular_rate () const |
The desired angular rate; positive results in the vehicle turning left. More... | |
void | set_angular_rate (const T &angular_rate) |
const T & | acceleration () const |
The signed acceleration, positive means speed up; negative means slow down, but should not move in reverse. More... | |
void | set_acceleration (const T &acceleration) |
bool | IsValid () const |
Returns whether the current values of this vector are well-formed. More... | |
static int | num_coordinates () |
static int | index_angular_rate () |
static int | index_acceleration () |
static const std::vector< std::string > & | GetCoordinateNames () |
Returns a vector containing the names of each coordinate within this class. More... | |
Default constructor.
Sets all rows to their default value:
angular_rate
defaults to 0.0 rad/s. acceleration
defaults to 0.0 m/s^2. const T& acceleration | ( | ) | const |
The signed acceleration, positive means speed up; negative means slow down, but should not move in reverse.
acceleration
is expressed in units of m/s^2. const T& angular_rate | ( | ) | const |
The desired angular rate; positive results in the vehicle turning left.
angular_rate
is expressed in units of rad/s.
|
final |
|
static |
Returns a vector containing the names of each coordinate within this class.
The indices within the returned vector matches that of this class. In other words, GetCoordinateNames()[i]
is the name for BasicVector::GetAtIndex(i)
.
|
static |
|
static |
bool IsValid | ( | ) | const |
Returns whether the current values of this vector are well-formed.
|
static |
void set_acceleration | ( | const T & | acceleration | ) |
void set_angular_rate | ( | const T & | angular_rate | ) |