RcsPySim
A robot control and simulation library
Rcs::InitStateSetter Class Referenceabstract

#include <InitStateSetter.h>

Inheritance diagram for Rcs::InitStateSetter:
Collaboration diagram for Rcs::InitStateSetter:

Public Member Functions

 InitStateSetter (RcsGraph *graph)
 
virtual ~InitStateSetter ()
 
virtual void getMinMax (double *min, double *max) const
 
virtual void applyInitialState (const MatNd *initialState)=0
 
- Public Member Functions inherited from Rcs::BoxSpaceProvider
 BoxSpaceProvider ()
 
virtual ~BoxSpaceProvider ()
 
 BoxSpaceProvider (const BoxSpaceProvider &)=delete
 
BoxSpaceProvideroperator= (const BoxSpaceProvider &)=delete
 
 BoxSpaceProvider (BoxSpaceProvider &&)=delete
 
BoxSpaceProvideroperator= (BoxSpaceProvider &&)=delete
 
const BoxSpacegetSpace () const
 
virtual unsigned int getDim () const =0
 
virtual std::vector< std::string > getNames () const
 

Protected Attributes

RcsGraph * graph
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ InitStateSetter()

Rcs::InitStateSetter::InitStateSetter ( RcsGraph *  graph)
explicit

Constructor

Parameters
graphgraph to set the state on

Definition at line 40 of file InitStateSetter.cpp.

◆ ~InitStateSetter()

Rcs::InitStateSetter::~InitStateSetter ( )
virtual

Definition at line 52 of file InitStateSetter.cpp.

Member Function Documentation

◆ applyInitialState()

virtual void Rcs::InitStateSetter::applyInitialState ( const MatNd *  initialState)
pure virtual

◆ getMinMax()

void Rcs::InitStateSetter::getMinMax ( double *  min,
double *  max 
) const
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.

Member Data Documentation

◆ graph

RcsGraph* Rcs::InitStateSetter::graph
protected

Definition at line 69 of file InitStateSetter.h.


The documentation for this class was generated from the following files: