#include <ISSBallOnPlate.h>
Public Member Functions | |
ISSBallOnPlate (RcsGraph *graph) | |
virtual | ~ISSBallOnPlate () |
unsigned int | getDim () const override |
void | getMinMax (double *min, double *max) const override |
virtual std::vector< std::string > | getNames () const |
void | applyInitialState (const MatNd *initialState) override |
![]() | |
InitStateSetter (RcsGraph *graph) | |
virtual | ~InitStateSetter () |
![]() | |
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 | |
RcsBody * | ball |
RcsBody * | plate |
double | plateWidth |
double | plateHeight |
Additional Inherited Members | |
![]() | |
RcsGraph * | graph |
Initial state setter for the ball-on-plate environment. The initial state consists of the x and y position of the ball relative to the plate center.
Definition at line 43 of file ISSBallOnPlate.h.
Rcs::ISSBallOnPlate::ISSBallOnPlate | ( | RcsGraph * | graph | ) |
Constructor. The passed graph must contain two bodies named "Ball" and "Plate".
graph | graph to set the state on |
Definition at line 42 of file ISSBallOnPlate.cpp.
|
virtual |
Definition at line 69 of file ISSBallOnPlate.cpp.
|
overridevirtual |
Set initial state of the graph.
Implements Rcs::InitStateSetter.
Definition at line 99 of file ISSBallOnPlate.cpp.
|
overridevirtual |
Provides the number of elements in the space. Since the BoxSpace object will be cached, this must not change.
Implements Rcs::BoxSpaceProvider.
Definition at line 74 of file ISSBallOnPlate.cpp.
|
overridevirtual |
Provides the minimum and maximum state values. The default implementation uses -inf and inf.
Reimplemented from Rcs::InitStateSetter.
Definition at line 79 of file ISSBallOnPlate.cpp.
|
virtual |
Provides names for each entry of the space.
These are intended for use in python, i.e., for pandas dataframe column names.
Reimplemented from Rcs::BoxSpaceProvider.
Definition at line 94 of file ISSBallOnPlate.cpp.
|
private |
Definition at line 64 of file ISSBallOnPlate.h.
|
private |
Definition at line 65 of file ISSBallOnPlate.h.
|
private |
Definition at line 67 of file ISSBallOnPlate.h.
|
private |
Definition at line 66 of file ISSBallOnPlate.h.