delphyne
|
SimplePowertrain models a powertrain with first-order lag.
It accepts throttle as the input and outputs the applied lumped force from the vehicle to the road.
Input:
Output:
T | The vector element type, which must be a valid Eigen scalar. |
Instantiated templates for the following kinds of T's are provided:
They are already available to link against in the containing library.
#include <src/systems/simple_powertrain.h>
Public Member Functions | |
DRAKE_NO_COPY_NO_MOVE_NO_ASSIGN (SimplePowertrain) | |
SimplePowertrain (double time_constant, double gain) | |
Constructs a simple powertrain model, specified via a fixed time-constant and scalar gain. More... | |
template<typename U > | |
SimplePowertrain (const SimplePowertrain< U > &other) | |
Scalar-converting copy constructor. More... | |
~SimplePowertrain () override=default | |
const drake::systems::InputPort< T > & | get_throttle_input_port () const |
const drake::systems::OutputPort< T > & | get_force_output_port () const |
double | get_time_constant () const |
Accessors for the system constants. More... | |
double | get_gain () const |
SimplePowertrain | ( | double | time_constant, |
double | gain | ||
) |
Constructs a simple powertrain model, specified via a fixed time-constant and scalar gain.
The inputs are as follows:
time_constant | is the rise time of the first-order lag [s]. |
gain | is the gain converting throttle input to force output [N]. |
|
explicit |
Scalar-converting copy constructor.
|
overridedefault |
DRAKE_NO_COPY_NO_MOVE_NO_ASSIGN | ( | SimplePowertrain< T > | ) |
const drake::systems::OutputPort<T>& get_force_output_port | ( | ) | const |
double get_gain | ( | ) | const |
const drake::systems::InputPort<T>& get_throttle_input_port | ( | ) | const |
double get_time_constant | ( | ) | const |
Accessors for the system constants.