delphyne
|
Specializes BasicVector with specific getters and setters that specify the continuous state for a RailFollower system.
#include <src/gen/rail_follower_state.h>
Public Member Functions | |
Implements CopyConstructible, CopyAssignable, MoveConstructible, | |
MoveAssignable | |
RailFollowerState (const RailFollowerState &other) | |
RailFollowerState (RailFollowerState &&other) noexcept | |
RailFollowerState & | operator= (const RailFollowerState &other) |
RailFollowerState & | operator= (RailFollowerState &&other) noexcept |
template<typename U = T> | |
std::enable_if< std::is_same< U, Symbolic >::value >::type | SetToNamedVariables () |
Create a symbolic::Variable for each element with the known variable name. More... | |
RailFollowerState< T > * | DoClone () const final |
Vector indices. | |
RailFollowerState () | |
Initialise the vector with defaults. More... | |
Getters and Setters | |
const T & | s () const |
The longitudinal position along the current rail (m). More... | |
void | set_s (const T &s) |
Setter that matches s(). More... | |
DRAKE_VECTOR_GEN_NODISCARD RailFollowerState< 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 (not nec. rail speed) (m/s). More... | |
void | set_speed (const T &speed) |
Setter that matches speed(). More... | |
DRAKE_VECTOR_GEN_NODISCARD RailFollowerState< T > | with_speed (const T &speed) const |
Fluent setter that matches speed(). More... | |
std::string | ToString () const |
Verbose string representation. More... | |
drake::boolean< T > | IsValid () const |
Returns whether the current values of this vector are well-formed. More... | |
Initialise the vector with defaults.
RailFollowerState | ( | const RailFollowerState< T > & | other | ) |
|
noexcept |
|
final |
drake::boolean<T> IsValid | ( | ) | const |
Returns whether the current values of this vector are well-formed.
RailFollowerState& operator= | ( | const RailFollowerState< T > & | other | ) |
|
noexcept |
const T& s | ( | ) | const |
The longitudinal position along the current rail (m).
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, Symbolic>::value>::type SetToNamedVariables | ( | ) |
Create a symbolic::Variable for each element with the known variable name.
This is only available for T == delphyne::Symbolic.
const T& speed | ( | ) | const |
The speed of the vehicle in physical space (not nec. rail speed) (m/s).
std::string ToString | ( | ) | const |
Verbose string representation.
DRAKE_VECTOR_GEN_NODISCARD RailFollowerState<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 RailFollowerState<T> with_speed | ( | const T & | speed | ) | const |
Fluent setter that matches speed().
Returns a copy of this
with speed set to a new value.