delphyne
|
Specializes BasicVector with specific getters and setters.
#include <src/gen/maliput_railcar_state.h>
Public Types | |
typedef MaliputRailcarStateIndices | K |
An abbreviation for our row index constants. More... | |
Public Member Functions | |
MaliputRailcarState () | |
Default constructor. More... | |
Implements CopyConstructible, CopyAssignable, MoveConstructible, | |
MoveAssignable | |
MaliputRailcarState (const MaliputRailcarState &other) | |
MaliputRailcarState (MaliputRailcarState &&other) noexcept | |
MaliputRailcarState & | operator= (const MaliputRailcarState &other) |
MaliputRailcarState & | operator= (MaliputRailcarState &&other) noexcept |
template<typename U = T> | |
std::enable_if< std::is_same< U, drake::symbolic::Expression >::value >::type | SetToNamedVariables () |
Create a drake::symbolic::Variable for each element with the known variable name. More... | |
MaliputRailcarState< T > * | DoClone () const final |
Getters and Setters | |
const T & | s () const |
The s-coordinate of the vehicle in a Lane -frame. More... | |
void | set_s (const T &s) |
Setter that matches s(). More... | |
DRAKE_VECTOR_GEN_NODISCARD MaliputRailcarState< T > | with_s (const T &s) const |
Fluent setter that matches s(). More... | |
const T & | speed () const |
The speed of the vehicle in physical space. More... | |
void | set_speed (const T &speed) |
Setter that matches speed(). More... | |
DRAKE_VECTOR_GEN_NODISCARD MaliputRailcarState< T > | with_speed (const T &speed) const |
Fluent setter that matches speed(). More... | |
drake::boolean< T > | IsValid () const |
Returns whether the current values of this vector are well-formed. More... | |
static const std::vector< std::string > & | GetCoordinateNames () |
See MaliputRailcarStateIndices::GetCoordinateNames(). More... | |
typedef MaliputRailcarStateIndices K |
An abbreviation for our row index constants.
Default constructor.
Sets all rows to their default value:
s
defaults to 0.0 with unknown units. speed
defaults to 0.0 with unknown units. MaliputRailcarState | ( | const MaliputRailcarState< T > & | other | ) |
|
noexcept |
|
final |
|
static |
drake::boolean<T> IsValid | ( | ) | const |
Returns whether the current values of this vector are well-formed.
MaliputRailcarState& operator= | ( | const MaliputRailcarState< T > & | other | ) |
|
noexcept |
const T& s | ( | ) | const |
The s-coordinate of the vehicle in a Lane
-frame.
void set_s | ( | const T & | s | ) |
Setter that matches s().
void set_speed | ( | const T & | speed | ) |
Setter that matches speed().
std::enable_if<std::is_same<U, drake::symbolic::Expression>::value>::type SetToNamedVariables | ( | ) |
Create a drake::symbolic::Variable for each element with the known variable name.
This is only available for T == drake::symbolic::Expression.
const T& speed | ( | ) | const |
The speed of the vehicle in physical space.
DRAKE_VECTOR_GEN_NODISCARD MaliputRailcarState<T> with_s | ( | const T & | s | ) | const |
Fluent setter that matches s().
Returns a copy of this
with s set to a new value.
DRAKE_VECTOR_GEN_NODISCARD MaliputRailcarState<T> with_speed | ( | const T & | speed | ) | const |
Fluent setter that matches speed().
Returns a copy of this
with speed set to a new value.