#include <InitStateSetter.h>
Public Member Functions | |
InitStateSetter (RcsGraph *graph) | |
virtual | ~InitStateSetter () |
virtual void | getMinMax (double *min, double *max) const |
virtual void | applyInitialState (const MatNd *initialState)=0 |
![]() | |
BoxSpaceProvider () | |
virtual | ~BoxSpaceProvider () |
BoxSpaceProvider (const BoxSpaceProvider &)=delete | |
BoxSpaceProvider & | operator= (const BoxSpaceProvider &)=delete |
BoxSpaceProvider (BoxSpaceProvider &&)=delete | |
BoxSpaceProvider & | operator= (BoxSpaceProvider &&)=delete |
const BoxSpace * | getSpace () const |
virtual unsigned int | getDim () const =0 |
virtual std::vector< std::string > | getNames () const |
Protected Attributes | |
RcsGraph * | graph |
The InitStateSetter defines the changeable initial state of the simulation. It is invoked during the reset() method to adapt the initial state as desired for the rollout.
Definition at line 45 of file InitStateSetter.h.
|
explicit |
Constructor
graph | graph to set the state on |
Definition at line 40 of file InitStateSetter.cpp.
|
virtual |
Definition at line 52 of file InitStateSetter.cpp.
|
pure virtual |
Set initial state of the graph.
Implemented in Rcs::ISSBoxLifting, Rcs::ISSBoxShelving, Rcs::ISSBallInTube, Rcs::ISSBallOnPlate, Rcs::ISSMiniGolf, Rcs::ISSMPBlending, Rcs::ISSPlanar3Link, Rcs::ISSPlanarInsert, and Rcs::ISSQuanserQube.
|
virtual |
Provides the minimum and maximum state values. The default implementation uses -inf and inf.
Implements Rcs::BoxSpaceProvider.
Reimplemented in Rcs::ISSBoxLifting, Rcs::ISSBoxShelving, Rcs::ISSBallInTube, Rcs::ISSBallOnPlate, Rcs::ISSMiniGolf, Rcs::ISSMPBlending, Rcs::ISSPlanar3Link, Rcs::ISSPlanarInsert, and Rcs::ISSQuanserQube.
Definition at line 46 of file InitStateSetter.cpp.
|
protected |
Definition at line 69 of file InitStateSetter.h.