#include <ISSMiniGolf.h>
Public Member Functions | |
ISSMiniGolf (RcsGraph *graph, bool fixedInitState) | |
virtual | ~ISSMiniGolf () |
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 | |
bool | fixedInitState |
RcsBody * | ball |
Additional Inherited Members | |
![]() | |
RcsGraph * | graph |
Initial state setter for the mini golf task. The initial state consists of the the x and y position of the ball.
Definition at line 43 of file ISSMiniGolf.h.
Rcs::ISSMiniGolf::ISSMiniGolf | ( | RcsGraph * | graph, |
bool | fixedInitState | ||
) |
Constructor. The passed graph must contain the ball body.
graph | graph to set the state on |
Definition at line 39 of file ISSMiniGolf.cpp.
|
virtual |
Definition at line 46 of file ISSMiniGolf.cpp.
|
overridevirtual |
Set initial state of the graph.
Implements Rcs::InitStateSetter.
Definition at line 87 of file ISSMiniGolf.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 51 of file ISSMiniGolf.cpp.
|
overridevirtual |
Provides the minimum and maximum state values. The default implementation uses -inf and inf.
Reimplemented from Rcs::InitStateSetter.
Definition at line 56 of file ISSMiniGolf.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 82 of file ISSMiniGolf.cpp.
|
private |
Definition at line 65 of file ISSMiniGolf.h.
|
private |
Definition at line 64 of file ISSMiniGolf.h.