delphyne
|
Specializes BasicVector with specific getters and setters.
#include <src/gen/dynamic_bicycle_car_params.h>
Public Types | |
typedef DynamicBicycleCarParamsIndices | K |
An abbreviation for our row index constants. More... | |
Public Member Functions | |
DynamicBicycleCarParams () | |
Default constructor. More... | |
Implements CopyConstructible, CopyAssignable, MoveConstructible, | |
MoveAssignable | |
DynamicBicycleCarParams (const DynamicBicycleCarParams &other) | |
DynamicBicycleCarParams (DynamicBicycleCarParams &&other) noexcept | |
DynamicBicycleCarParams & | operator= (const DynamicBicycleCarParams &other) |
DynamicBicycleCarParams & | operator= (DynamicBicycleCarParams &&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... | |
DynamicBicycleCarParams< T > * | DoClone () const final |
Getters and Setters | |
const T & | mass () const |
Mass of X1 vehicle. More... | |
void | set_mass (const T &mass) |
Setter that matches mass(). More... | |
DRAKE_VECTOR_GEN_NODISCARD DynamicBicycleCarParams< T > | with_mass (const T &mass) const |
Fluent setter that matches mass(). More... | |
const T & | izz () const |
moment of inertia. More... | |
void | set_izz (const T &izz) |
Setter that matches izz(). More... | |
DRAKE_VECTOR_GEN_NODISCARD DynamicBicycleCarParams< T > | with_izz (const T &izz) const |
Fluent setter that matches izz(). More... | |
const T & | c_alpha_f () const |
Front cornering stiffness. More... | |
void | set_c_alpha_f (const T &c_alpha_f) |
Setter that matches c_alpha_f(). More... | |
DRAKE_VECTOR_GEN_NODISCARD DynamicBicycleCarParams< T > | with_c_alpha_f (const T &c_alpha_f) const |
Fluent setter that matches c_alpha_f(). More... | |
const T & | c_alpha_r () const |
Rear cornering stiffness. More... | |
void | set_c_alpha_r (const T &c_alpha_r) |
Setter that matches c_alpha_r(). More... | |
DRAKE_VECTOR_GEN_NODISCARD DynamicBicycleCarParams< T > | with_c_alpha_r (const T &c_alpha_r) const |
Fluent setter that matches c_alpha_r(). More... | |
const T & | mu () const |
Coefficient of friction between tire and road surface. More... | |
void | set_mu (const T &mu) |
Setter that matches mu(). More... | |
DRAKE_VECTOR_GEN_NODISCARD DynamicBicycleCarParams< T > | with_mu (const T &mu) const |
Fluent setter that matches mu(). More... | |
const T & | Lf () const |
Distance from control point to front axle (referred to as 'a' in Bobier). More... | |
void | set_Lf (const T &Lf) |
Setter that matches Lf(). More... | |
DRAKE_VECTOR_GEN_NODISCARD DynamicBicycleCarParams< T > | with_Lf (const T &Lf) const |
Fluent setter that matches Lf(). More... | |
const T & | Lb () const |
Distance from rear axle to control point (referred to as 'b' in Bobier). More... | |
void | set_Lb (const T &Lb) |
Setter that matches Lb(). More... | |
DRAKE_VECTOR_GEN_NODISCARD DynamicBicycleCarParams< T > | with_Lb (const T &Lb) const |
Fluent setter that matches Lb(). More... | |
const T & | p_LoCp_z () const |
Height of vehicle's control point Cp. More... | |
void | set_p_LoCp_z (const T &p_LoCp_z) |
Setter that matches p_LoCp_z(). More... | |
DRAKE_VECTOR_GEN_NODISCARD DynamicBicycleCarParams< T > | with_p_LoCp_z (const T &p_LoCp_z) const |
Fluent setter that matches p_LoCp_z(). More... | |
const T & | gravity () const |
An approximate value for gravitational acceleration. More... | |
void | set_gravity (const T &gravity) |
Setter that matches gravity(). More... | |
DRAKE_VECTOR_GEN_NODISCARD DynamicBicycleCarParams< T > | with_gravity (const T &gravity) const |
Fluent setter that matches gravity(). More... | |
drake::boolean< T > | IsValid () const |
Returns whether the current values of this vector are well-formed. More... | |
void | GetElementBounds (Eigen::VectorXd *lower, Eigen::VectorXd *upper) const final |
static const std::vector< std::string > & | GetCoordinateNames () |
See DynamicBicycleCarParamsIndices::GetCoordinateNames(). More... | |
typedef DynamicBicycleCarParamsIndices K |
An abbreviation for our row index constants.
Default constructor.
Sets all rows to their default value:
mass
defaults to 1823.0 kg. izz
defaults to 2000.0 kgm^2. c_alpha_f
defaults to 115000 N/rad. c_alpha_r
defaults to 155000 N/rad. mu
defaults to 0.55 dimensionless. Lf
defaults to 1.54 m. Lb
defaults to 1.21 m. p_LoCp_z
defaults to 0.508 m. gravity
defaults to 9.81 m/s^2. DynamicBicycleCarParams | ( | const DynamicBicycleCarParams< T > & | other | ) |
|
noexcept |
const T& c_alpha_f | ( | ) | const |
Front cornering stiffness.
c_alpha_f
is expressed in units of N/rad. c_alpha_f
has a limited domain of [0.0, +Inf]. const T& c_alpha_r | ( | ) | const |
Rear cornering stiffness.
c_alpha_r
is expressed in units of N/rad. c_alpha_r
has a limited domain of [0.0, +Inf].
|
final |
|
static |
|
final |
const T& gravity | ( | ) | const |
An approximate value for gravitational acceleration.
gravity
is expressed in units of m/s^2. gravity
has a limited domain of [0.0, +Inf]. drake::boolean<T> IsValid | ( | ) | const |
Returns whether the current values of this vector are well-formed.
const T& izz | ( | ) | const |
moment of inertia.
izz
is expressed in units of kgm^2. izz
has a limited domain of [0.0, +Inf]. const T& Lb | ( | ) | const |
Distance from rear axle to control point (referred to as 'b' in Bobier).
Lb
is expressed in units of m. Lb
has a limited domain of [0.0, +Inf]. const T& Lf | ( | ) | const |
Distance from control point to front axle (referred to as 'a' in Bobier).
Lf
is expressed in units of m. Lf
has a limited domain of [0.0, +Inf]. const T& mass | ( | ) | const |
Mass of X1 vehicle.
mass
is expressed in units of kg. mass
has a limited domain of [0.0, +Inf]. const T& mu | ( | ) | const |
Coefficient of friction between tire and road surface.
mu
is expressed in units of dimensionless. mu
has a limited domain of [0.0, +Inf]. DynamicBicycleCarParams& operator= | ( | const DynamicBicycleCarParams< T > & | other | ) |
|
noexcept |
const T& p_LoCp_z | ( | ) | const |
Height of vehicle's control point Cp.
p_LoCp_z
is expressed in units of m. p_LoCp_z
has a limited domain of [0.0, +Inf]. void set_c_alpha_f | ( | const T & | c_alpha_f | ) |
Setter that matches c_alpha_f().
void set_c_alpha_r | ( | const T & | c_alpha_r | ) |
Setter that matches c_alpha_r().
void set_gravity | ( | const T & | gravity | ) |
Setter that matches gravity().
void set_izz | ( | const T & | izz | ) |
Setter that matches izz().
void set_Lb | ( | const T & | Lb | ) |
Setter that matches Lb().
void set_Lf | ( | const T & | Lf | ) |
Setter that matches Lf().
void set_mass | ( | const T & | mass | ) |
Setter that matches mass().
void set_mu | ( | const T & | mu | ) |
Setter that matches mu().
void set_p_LoCp_z | ( | const T & | p_LoCp_z | ) |
Setter that matches p_LoCp_z().
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.
DRAKE_VECTOR_GEN_NODISCARD DynamicBicycleCarParams<T> with_c_alpha_f | ( | const T & | c_alpha_f | ) | const |
Fluent setter that matches c_alpha_f().
Returns a copy of this
with c_alpha_f set to a new value.
DRAKE_VECTOR_GEN_NODISCARD DynamicBicycleCarParams<T> with_c_alpha_r | ( | const T & | c_alpha_r | ) | const |
Fluent setter that matches c_alpha_r().
Returns a copy of this
with c_alpha_r set to a new value.
DRAKE_VECTOR_GEN_NODISCARD DynamicBicycleCarParams<T> with_gravity | ( | const T & | gravity | ) | const |
Fluent setter that matches gravity().
Returns a copy of this
with gravity set to a new value.
DRAKE_VECTOR_GEN_NODISCARD DynamicBicycleCarParams<T> with_izz | ( | const T & | izz | ) | const |
Fluent setter that matches izz().
Returns a copy of this
with izz set to a new value.
DRAKE_VECTOR_GEN_NODISCARD DynamicBicycleCarParams<T> with_Lb | ( | const T & | Lb | ) | const |
Fluent setter that matches Lb().
Returns a copy of this
with Lb set to a new value.
DRAKE_VECTOR_GEN_NODISCARD DynamicBicycleCarParams<T> with_Lf | ( | const T & | Lf | ) | const |
Fluent setter that matches Lf().
Returns a copy of this
with Lf set to a new value.
DRAKE_VECTOR_GEN_NODISCARD DynamicBicycleCarParams<T> with_mass | ( | const T & | mass | ) | const |
Fluent setter that matches mass().
Returns a copy of this
with mass set to a new value.
DRAKE_VECTOR_GEN_NODISCARD DynamicBicycleCarParams<T> with_mu | ( | const T & | mu | ) | const |
Fluent setter that matches mu().
Returns a copy of this
with mu set to a new value.
DRAKE_VECTOR_GEN_NODISCARD DynamicBicycleCarParams<T> with_p_LoCp_z | ( | const T & | p_LoCp_z | ) | const |
Fluent setter that matches p_LoCp_z().
Returns a copy of this
with p_LoCp_z set to a new value.