16 template <
size_t STATE_DIM,
typename SCALAR>
26 template <
size_t STATE_DIM,
typename SCALAR =
double>
30 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
34 typedef std::vector<std::shared_ptr<EventHandler<STATE_DIM, SCALAR>>,
35 Eigen::aligned_allocator<std::shared_ptr<EventHandler<STATE_DIM, SCALAR>>>>
55 std::function<void(const StateVector<STATE_DIM, SCALAR>&
x,
const SCALAR&
t)> observeWrap;
56 std::function<void(const StateVector<STATE_DIM, SCALAR>& x,
const SCALAR&
t)> observeWrapWithLogging;
void observeInternal(const StateVector< STATE_DIM, SCALAR > &x, const SCALAR &t)
Definition: Observer-impl.h:51
void observe(const StateVector< STATE_DIM, SCALAR > &x, const SCALAR &t)
Definition: Observer-impl.h:34
An discrete array (vector) of a particular data type.
Definition: DiscreteArray.h:22
Observer(const EventHandlerPtrVector &eventHandlers)
default constructor
Definition: Observer-impl.h:12
Observer for Integrator.
Definition: Observer.h:27
clear all close all load ct GNMSLog0 mat reformat t
CppAD::AD< CppAD::cg::CG< double > > SCALAR
Definition: StateVector.h:12
Standard Integrator.
Definition: Integrator.h:62
ct::core::StateVector< state_dim > x
An array in time.
Definition: TimeArray.h:22
void log(const StateVector< STATE_DIM, SCALAR > &x, const SCALAR &t)
Definition: Observer-impl.h:44
std::vector< std::shared_ptr< EventHandler< STATE_DIM, SCALAR > >, Eigen::aligned_allocator< std::shared_ptr< EventHandler< STATE_DIM, SCALAR > > > > EventHandlerPtrVector
Definition: Observer.h:36
void reset()
reset the observer
Definition: Observer-impl.h:24