delphyne
|
Specializes BasicVector with specific getters and setters.
#include <src/gen/dynamic_bicycle_car_state.h>
Public Types | |
typedef DynamicBicycleCarStateIndices | K |
An abbreviation for our row index constants. More... | |
Public Member Functions | |
DynamicBicycleCarState () | |
Default constructor. More... | |
Implements CopyConstructible, CopyAssignable, MoveConstructible, | |
MoveAssignable | |
DynamicBicycleCarState (const DynamicBicycleCarState &other) | |
DynamicBicycleCarState (DynamicBicycleCarState &&other) noexcept | |
DynamicBicycleCarState & | operator= (const DynamicBicycleCarState &other) |
DynamicBicycleCarState & | operator= (DynamicBicycleCarState &&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... | |
DynamicBicycleCarState< T > * | DoClone () const final |
Getters and Setters | |
const T & | p_LoCp_x () const |
Lx measure of the location of Cp from Lo. More... | |
void | set_p_LoCp_x (const T &p_LoCp_x) |
Setter that matches p_LoCp_x(). More... | |
DRAKE_VECTOR_GEN_NODISCARD DynamicBicycleCarState< T > | with_p_LoCp_x (const T &p_LoCp_x) const |
Fluent setter that matches p_LoCp_x(). More... | |
const T & | p_LoCp_y () const |
Ly measure of the location of Cp from Lo. More... | |
void | set_p_LoCp_y (const T &p_LoCp_y) |
Setter that matches p_LoCp_y(). More... | |
DRAKE_VECTOR_GEN_NODISCARD DynamicBicycleCarState< T > | with_p_LoCp_y (const T &p_LoCp_y) const |
Fluent setter that matches p_LoCp_y(). More... | |
const T & | yaw_LC () const |
Yaw angle from Lx to Cx with positive Lz sense. More... | |
void | set_yaw_LC (const T &yaw_LC) |
Setter that matches yaw_LC(). More... | |
DRAKE_VECTOR_GEN_NODISCARD DynamicBicycleCarState< T > | with_yaw_LC (const T &yaw_LC) const |
Fluent setter that matches yaw_LC(). More... | |
const T & | v_LCp_x () const |
Cx measure of Cp's velocity in L. More... | |
void | set_v_LCp_x (const T &v_LCp_x) |
Setter that matches v_LCp_x(). More... | |
DRAKE_VECTOR_GEN_NODISCARD DynamicBicycleCarState< T > | with_v_LCp_x (const T &v_LCp_x) const |
Fluent setter that matches v_LCp_x(). More... | |
const T & | v_LCp_y () const |
Cy measure of Cp's velocity in L. More... | |
void | set_v_LCp_y (const T &v_LCp_y) |
Setter that matches v_LCp_y(). More... | |
DRAKE_VECTOR_GEN_NODISCARD DynamicBicycleCarState< T > | with_v_LCp_y (const T &v_LCp_y) const |
Fluent setter that matches v_LCp_y(). More... | |
const T & | yawDt_LC () const |
C's angular velocity in frame L. More... | |
void | set_yawDt_LC (const T &yawDt_LC) |
Setter that matches yawDt_LC(). More... | |
DRAKE_VECTOR_GEN_NODISCARD DynamicBicycleCarState< T > | with_yawDt_LC (const T &yawDt_LC) const |
Fluent setter that matches yawDt_LC(). 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 DynamicBicycleCarStateIndices::GetCoordinateNames(). More... | |
typedef DynamicBicycleCarStateIndices K |
An abbreviation for our row index constants.
Default constructor.
Sets all rows to their default value:
p_LoCp_x
defaults to 0.0 m. p_LoCp_y
defaults to 0.0 m. yaw_LC
defaults to 0.0 rad. v_LCp_x
defaults to 0.0 m/s. v_LCp_y
defaults to 0.0 m/s. yawDt_LC
defaults to 0.0 rad/s. DynamicBicycleCarState | ( | const DynamicBicycleCarState< T > & | other | ) |
|
noexcept |
|
final |
|
static |
drake::boolean<T> IsValid | ( | ) | const |
Returns whether the current values of this vector are well-formed.
DynamicBicycleCarState& operator= | ( | const DynamicBicycleCarState< T > & | other | ) |
|
noexcept |
const T& p_LoCp_x | ( | ) | const |
Lx measure of the location of Cp from Lo.
p_LoCp_x
is expressed in units of m. const T& p_LoCp_y | ( | ) | const |
Ly measure of the location of Cp from Lo.
p_LoCp_y
is expressed in units of m. void set_p_LoCp_x | ( | const T & | p_LoCp_x | ) |
Setter that matches p_LoCp_x().
void set_p_LoCp_y | ( | const T & | p_LoCp_y | ) |
Setter that matches p_LoCp_y().
void set_v_LCp_x | ( | const T & | v_LCp_x | ) |
Setter that matches v_LCp_x().
void set_v_LCp_y | ( | const T & | v_LCp_y | ) |
Setter that matches v_LCp_y().
void set_yaw_LC | ( | const T & | yaw_LC | ) |
Setter that matches yaw_LC().
void set_yawDt_LC | ( | const T & | yawDt_LC | ) |
Setter that matches yawDt_LC().
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& v_LCp_x | ( | ) | const |
Cx measure of Cp's velocity in L.
v_LCp_x
is expressed in units of m/s. const T& v_LCp_y | ( | ) | const |
Cy measure of Cp's velocity in L.
v_LCp_y
is expressed in units of m/s. DRAKE_VECTOR_GEN_NODISCARD DynamicBicycleCarState<T> with_p_LoCp_x | ( | const T & | p_LoCp_x | ) | const |
Fluent setter that matches p_LoCp_x().
Returns a copy of this
with p_LoCp_x set to a new value.
DRAKE_VECTOR_GEN_NODISCARD DynamicBicycleCarState<T> with_p_LoCp_y | ( | const T & | p_LoCp_y | ) | const |
Fluent setter that matches p_LoCp_y().
Returns a copy of this
with p_LoCp_y set to a new value.
DRAKE_VECTOR_GEN_NODISCARD DynamicBicycleCarState<T> with_v_LCp_x | ( | const T & | v_LCp_x | ) | const |
Fluent setter that matches v_LCp_x().
Returns a copy of this
with v_LCp_x set to a new value.
DRAKE_VECTOR_GEN_NODISCARD DynamicBicycleCarState<T> with_v_LCp_y | ( | const T & | v_LCp_y | ) | const |
Fluent setter that matches v_LCp_y().
Returns a copy of this
with v_LCp_y set to a new value.
DRAKE_VECTOR_GEN_NODISCARD DynamicBicycleCarState<T> with_yaw_LC | ( | const T & | yaw_LC | ) | const |
Fluent setter that matches yaw_LC().
Returns a copy of this
with yaw_LC set to a new value.
DRAKE_VECTOR_GEN_NODISCARD DynamicBicycleCarState<T> with_yawDt_LC | ( | const T & | yawDt_LC | ) | const |
Fluent setter that matches yawDt_LC().
Returns a copy of this
with yawDt_LC set to a new value.
const T& yaw_LC | ( | ) | const |
Yaw angle from Lx to Cx with positive Lz sense.
yaw_LC
is expressed in units of rad. const T& yawDt_LC | ( | ) | const |
C's angular velocity in frame L.
yawDt_LC
is expressed in units of rad/s.