delphyne
|
UnicylceCar is a parameter-free model of a car governed by the second-order equations.
\begin{eqnarray*} \dot{x} &=& v \cos(\theta) \\ % \dot{y} &=& v \sin(\theta) \\ % \dot{\theta} &=& u_{\omega} \\ % \dot{v} &=& u_{a} \end{eqnarray*}
state vector (planar Cartesian):
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/unicycle_car.h>
Public Member Functions | |
UnicycleCar (const SimpleCarState< T > &initial_context_state=SimpleCarState< T >()) | |
Initialise the background context on construction. 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 |
UnicycleCar | ( | const SimpleCarState< T > & | initial_context_state = SimpleCarState<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. |
|
override |
const drake::systems::OutputPort< T > & pose_output |
const drake::systems::OutputPort< T > & state_output |
const drake::systems::OutputPort< T > & velocity_output |