KrisLibrary
1.0.0
|
A 1D ControlSpace that simulates time. More...
#include <TimeCSpace.h>
Public Member Functions | |
TimeControlSpace (Real dtmax=1.0) | |
void | SetMaxTimeStep (Real dtmax) |
virtual InterpolatorPtr | Simulate (const State &x0, const ControlInput &u) |
virtual void | SimulateEndpoint (const State &x0, const ControlInput &u, State &x1) |
Public Member Functions inherited from ControlSpace | |
virtual std::string | VariableName (int i) |
Returns an identifier for the i'th control variable. | |
virtual std::shared_ptr< CSet > | GetControlSet (const State &x) |
virtual std::shared_ptr< SteeringFunction > | GetSteeringFunction () |
Returns this space's steering function, if available. | |
virtual void | Successor (const State &x0, const ControlInput &u, State &x1) |
virtual Math::VectorFieldFunction * | SuccessorNumeric () |
virtual void | SampleControl (const State &x, ControlInput &u) |
virtual bool | IsValidControl (const State &x, const ControlInput &u) |
Additional Inherited Members | |
Public Attributes inherited from ControlSpace | |
std::shared_ptr< CSet > | myControlSet |
Dynamically overridable default control set (Note: state independent) | |
std::shared_ptr< SteeringFunction > | mySteeringFunction |
Dynamically overridable default steering function. | |
A 1D ControlSpace that simulates time.
|
virtual |
Executes the simulation function f(x0,u) and records its trace in p. The trace is an interpolator between x0 and the successor state
Implements ControlSpace.
References Math::IsNaN(), and Math::Rand().