delphyne
|
Specializes BasicVector with specific getters and setters.
#include <src/gen/bicycle_car_parameters.h>
Public Types | |
typedef BicycleCarParametersIndices | K |
An abbreviation for our row index constants. More... | |
Public Member Functions | |
BicycleCarParameters () | |
Default constructor. More... | |
Implements CopyConstructible, CopyAssignable, MoveConstructible, | |
MoveAssignable | |
BicycleCarParameters (const BicycleCarParameters &other) | |
BicycleCarParameters (BicycleCarParameters &&other) noexcept | |
BicycleCarParameters & | operator= (const BicycleCarParameters &other) |
BicycleCarParameters & | operator= (BicycleCarParameters &&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... | |
BicycleCarParameters< T > * | DoClone () const final |
Getters and Setters | |
const T & | mass () const |
mass More... | |
void | set_mass (const T &mass) |
Setter that matches mass(). More... | |
DRAKE_VECTOR_GEN_NODISCARD BicycleCarParameters< T > | with_mass (const T &mass) const |
Fluent setter that matches mass(). More... | |
const T & | lf () const |
distance from the center of mass to the front axle More... | |
void | set_lf (const T &lf) |
Setter that matches lf(). More... | |
DRAKE_VECTOR_GEN_NODISCARD BicycleCarParameters< T > | with_lf (const T &lf) const |
Fluent setter that matches lf(). More... | |
const T & | lr () const |
distance from the center of mass to the rear axle More... | |
void | set_lr (const T &lr) |
Setter that matches lr(). More... | |
DRAKE_VECTOR_GEN_NODISCARD BicycleCarParameters< T > | with_lr (const T &lr) const |
Fluent setter that matches lr(). More... | |
const T & | Iz () const |
moment of inertia about the yaw-axis More... | |
void | set_Iz (const T &Iz) |
Setter that matches Iz(). More... | |
DRAKE_VECTOR_GEN_NODISCARD BicycleCarParameters< T > | with_Iz (const T &Iz) const |
Fluent setter that matches Iz(). More... | |
const T & | Cf () const |
cornering stiffness (front) More... | |
void | set_Cf (const T &Cf) |
Setter that matches Cf(). More... | |
DRAKE_VECTOR_GEN_NODISCARD BicycleCarParameters< T > | with_Cf (const T &Cf) const |
Fluent setter that matches Cf(). More... | |
const T & | Cr () const |
cornering stiffness (rear) More... | |
void | set_Cr (const T &Cr) |
Setter that matches Cr(). More... | |
DRAKE_VECTOR_GEN_NODISCARD BicycleCarParameters< T > | with_Cr (const T &Cr) const |
Fluent setter that matches Cr(). 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 BicycleCarParametersIndices::GetCoordinateNames(). More... | |
typedef BicycleCarParametersIndices K |
An abbreviation for our row index constants.
Default constructor.
Sets all rows to their default value:
mass
defaults to 2278.0 kg. lf
defaults to 1.292 m. lr
defaults to 1.515 m. Iz
defaults to 3210.0 kg m^2. Cf
defaults to 10.8e4 N / rad. Cr
defaults to 10.8e4 N / rad. BicycleCarParameters | ( | const BicycleCarParameters< T > & | other | ) |
|
noexcept |
const T& Cf | ( | ) | const |
cornering stiffness (front)
Cf
is expressed in units of N / rad. Cf
has a limited domain of [0.0, +Inf]. const T& Cr | ( | ) | const |
cornering stiffness (rear)
Cr
is expressed in units of N / rad. Cr
has a limited domain of [0.0, +Inf].
|
final |
|
static |
|
final |
drake::boolean<T> IsValid | ( | ) | const |
Returns whether the current values of this vector are well-formed.
const T& Iz | ( | ) | const |
moment of inertia about the yaw-axis
Iz
is expressed in units of kg m^2. Iz
has a limited domain of [0.0, +Inf]. const T& lf | ( | ) | const |
distance from the center of mass to the front axle
lf
is expressed in units of m. lf
has a limited domain of [0.0, +Inf]. const T& lr | ( | ) | const |
distance from the center of mass to the rear axle
lr
is expressed in units of m. lr
has a limited domain of [0.0, +Inf]. const T& mass | ( | ) | const |
mass
mass
is expressed in units of kg. mass
has a limited domain of [0.0, +Inf].
|
noexcept |
BicycleCarParameters& operator= | ( | const BicycleCarParameters< T > & | other | ) |
void set_Cf | ( | const T & | Cf | ) |
Setter that matches Cf().
void set_Cr | ( | const T & | Cr | ) |
Setter that matches Cr().
void set_Iz | ( | const T & | Iz | ) |
Setter that matches Iz().
void set_lf | ( | const T & | lf | ) |
Setter that matches lf().
void set_lr | ( | const T & | lr | ) |
Setter that matches lr().
void set_mass | ( | const T & | mass | ) |
Setter that matches mass().
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 BicycleCarParameters<T> with_Cf | ( | const T & | Cf | ) | const |
Fluent setter that matches Cf().
Returns a copy of this
with Cf set to a new value.
DRAKE_VECTOR_GEN_NODISCARD BicycleCarParameters<T> with_Cr | ( | const T & | Cr | ) | const |
Fluent setter that matches Cr().
Returns a copy of this
with Cr set to a new value.
DRAKE_VECTOR_GEN_NODISCARD BicycleCarParameters<T> with_Iz | ( | const T & | Iz | ) | const |
Fluent setter that matches Iz().
Returns a copy of this
with Iz set to a new value.
DRAKE_VECTOR_GEN_NODISCARD BicycleCarParameters<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 BicycleCarParameters<T> with_lr | ( | const T & | lr | ) | const |
Fluent setter that matches lr().
Returns a copy of this
with lr set to a new value.
DRAKE_VECTOR_GEN_NODISCARD BicycleCarParameters<T> with_mass | ( | const T & | mass | ) | const |
Fluent setter that matches mass().
Returns a copy of this
with mass set to a new value.