![]() |
- 3.0.2 core module.
|
Observer for Integrator. More...
#include <Observer.h>
Public Types | |
| typedef std::vector< std::shared_ptr< EventHandler< STATE_DIM, SCALAR > >, Eigen::aligned_allocator< std::shared_ptr< EventHandler< STATE_DIM, SCALAR > > > > | EventHandlerPtrVector |
Public Member Functions | |
| Observer (const EventHandlerPtrVector &eventHandlers) | |
| default constructor More... | |
| void | reset () |
| reset the observer More... | |
| void | observe (const StateVector< STATE_DIM, SCALAR > &x, const SCALAR &t) |
| void | log (const StateVector< STATE_DIM, SCALAR > &x, const SCALAR &t) |
| void | observeInternal (const StateVector< STATE_DIM, SCALAR > &x, const SCALAR &t) |
Friends | |
| class | Integrator< STATE_DIM, SCALAR > |
Observer for Integrator.
Implements a general observer as required by boost::odeint. This wraps all event handlers and calls them. Furthermore, this class records state and time trajectories during integration.
| STATE_DIM | The size of the state vector |
| typedef std::vector<std::shared_ptr<EventHandler<STATE_DIM, SCALAR> >, Eigen::aligned_allocator<std::shared_ptr<EventHandler<STATE_DIM, SCALAR> > > > ct::core::Observer< STATE_DIM, SCALAR >::EventHandlerPtrVector |
| ct::core::Observer< STATE_DIM, SCALAR >::Observer | ( | const EventHandlerPtrVector & | eventHandlers | ) |
default constructor
| eventHandlers | vector of event handlers |
| void ct::core::Observer< STATE_DIM, SCALAR >::reset | ( | ) |
reset the observer
Referenced by ct::core::IntegratorSymplectic< POS_DIM, VEL_DIM, CONTROL_DIM, Stepper, SCALAR >::reset().
| void ct::core::Observer< STATE_DIM, SCALAR >::observe | ( | const StateVector< STATE_DIM, SCALAR > & | x, |
| const SCALAR & | t | ||
| ) |
| void ct::core::Observer< STATE_DIM, SCALAR >::log | ( | const StateVector< STATE_DIM, SCALAR > & | x, |
| const SCALAR & | t | ||
| ) |
| void ct::core::Observer< STATE_DIM, SCALAR >::observeInternal | ( | const StateVector< STATE_DIM, SCALAR > & | x, |
| const SCALAR & | t | ||
| ) |
|
friend |