#include <OMBallPos.h>
Public Member Functions | |
OMBallPos (RcsGraph *graph) | |
virtual | ~OMBallPos () |
virtual void | computeObservation (double *state, double *velocity, const MatNd *currentAction, double dt) const |
virtual void | reset () |
![]() | |
OMBodyStateLinear (RcsGraph *graph, const char *effectorName, const char *refBodyName=NULL, const char *refFrameName=NULL) | |
![]() | |
OMTask (Task *task) | |
virtual | ~OMTask () |
OMTask (const OMTask &)=delete | |
OMTask & | operator= (const OMTask &)=delete |
OMTask (OMTask &&)=delete | |
OMTask & | operator= (OMTask &&)=delete |
virtual unsigned int | getStateDim () const |
virtual void | getLimits (double *minState, double *maxState, double *maxVelocity) const |
virtual std::vector< std::string > | getStateNames () const |
OMTask * | setMinState (double minState) |
OMTask * | setMinState (std::vector< double > minState) |
OMTask * | setMaxState (double maxState) |
OMTask * | setMaxState (std::vector< double > maxState) |
OMTask * | setMaxVelocity (double maxVelocity) |
OMTask * | setMaxVelocity (std::vector< double > maxVelocity) |
Task * | getTask () const |
![]() | |
virtual | ~ObservationModel () |
MatNd * | computeObservation (const MatNd *currentAction, double dt) const |
void | computeObservation (MatNd *observation, const MatNd *currentAction, double dt) const |
virtual unsigned int | getVelocityDim () const |
virtual std::vector< std::string > | getVelocityNames () const |
virtual void | getMinMax (double *min, double *max) const final |
virtual unsigned int | getDim () const final |
virtual std::vector< std::string > | getNames () const final |
template<typename OM > | |
OM * | findModel () |
template<typename OM > | |
Offsets | findOffsets () |
virtual std::vector< ObservationModel * > | getNested () const |
![]() | |
BoxSpaceProvider () | |
virtual | ~BoxSpaceProvider () |
BoxSpaceProvider (const BoxSpaceProvider &)=delete | |
BoxSpaceProvider & | operator= (const BoxSpaceProvider &)=delete |
BoxSpaceProvider (BoxSpaceProvider &&)=delete | |
BoxSpaceProvider & | operator= (BoxSpaceProvider &&)=delete |
const BoxSpace * | getSpace () const |
Private Attributes | |
double | ballRadius |
Additional Inherited Members | |
![]() | |
void | initTaskBodyNames (const char *effectorName, const char *refBodyName, const char *refFrameName) |
Observes the ball position relative to the plate.
This is a special case that removes the ball's radius from it's z position, making the observation invariant of a (changing) ball radius.
Definition at line 45 of file OMBallPos.h.
Rcs::OMBallPos::OMBallPos | ( | RcsGraph * | graph | ) |
Constructor.
The passed graph must contain two bodies named "Ball" and "Plate".
graph | graph to observe. |
Definition at line 39 of file OMBallPos.cpp.
|
virtual |
Definition at line 66 of file OMBallPos.cpp.
|
virtual |
Implement to fill the observation vector with the observed values.
[out] | state | state observation vector to fill, has getStateDim() elements. |
[out] | velocity | velocity observation vector to fill, has getVelocityDim() elements. |
[in] | currentAction | action in current step. May be NULL if not available. |
[in] | dt | time step since the last observation has been taken |
Reimplemented from Rcs::OMTask.
Definition at line 71 of file OMBallPos.cpp.
|
virtual |
Reset any internal state. This is called to begin a new episode. It should also reset values depending on modifiable physics parameters. This is an optional operation, so the default implementation does nothing.
Reimplemented from Rcs::ObservationModel.
Definition at line 78 of file OMBallPos.cpp.
|
private |
Definition at line 65 of file OMBallPos.h.