delphyne
|
SimpleCar models an idealized response to driving commands, neglecting all physics.
Note that SimpleCar can move forward, stop, turn left, and turn right but cannot travel in reverse.
parameters:
state vector (planar for now):
input vector:
output port 0: same as state vector. output port 1: A PoseVector containing X_WC, where C is the car frame. output port 2: A FrameVelocity containing Xdot_WC, where C is the car frame.
T | must support certain arithmetic operations; for details, see drake::symbolic::Expression. |
Instantiated templates for the following ScalarTypes are provided:
They are already available to link against in the containing library.
#include <src/systems/simple_car.h>
Public Member Functions | |
SimpleCar2 (const SimpleCarState< T > &initial_context_state=SimpleCarState< T >(), const SimpleCarParams< T > &initial_context_parameters=SimpleCarParams< T >()) | |
Initialise the background context on construction. More... | |
template<typename U > | |
SimpleCar2 (const SimpleCar2< U > &) | |
Scalar-converting copy constructor. More... | |
void | DoCalcTimeDerivatives (const drake::systems::Context< T > &context, drake::systems::ContinuousState< T > *derivatives) const override |
const drake::systems::OutputPort< T > & | state_output () const |
const drake::systems::OutputPort< T > & | pose_output () const |
const drake::systems::OutputPort< T > & | velocity_output () const |
SimpleCar2 | ( | const SimpleCarState< T > & | initial_context_state = SimpleCarState<T>() , |
const SimpleCarParams< T > & | initial_context_parameters = SimpleCarParams<T>() |
||
) |
Initialise the background context on construction.
The alternative is to back-fill these context values after the system has been added to a diagram and the subsystem context retrieved, but before execution.
[in] | initial_context_state | The continuous state. |
[in] | initial_context_parameters | The numeric parameterization. |
|
explicit |
Scalar-converting copy constructor.
|
override |
const drake::systems::OutputPort< T > & pose_output |
const drake::systems::OutputPort< T > & state_output |
const drake::systems::OutputPort< T > & velocity_output |