RcsPySim
A robot control and simulation library
Rcs::ISSBoxShelving Class Reference

#include <ISSBoxShelving.h>

Inheritance diagram for Rcs::ISSBoxShelving:
Collaboration diagram for Rcs::ISSBoxShelving:

Public Member Functions

 ISSBoxShelving (RcsGraph *graph, bool fixedInitState)
 
virtual ~ISSBoxShelving ()
 
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
 
- Public Member Functions inherited from Rcs::InitStateSetter
 InitStateSetter (RcsGraph *graph)
 
virtual ~InitStateSetter ()
 
- 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
 

Private Attributes

bool fixedInitState
 
RcsBody * platform
 
RcsBody * rail
 
RcsBody * link2L
 
RcsBody * link4L
 

Additional Inherited Members

- Protected Attributes inherited from Rcs::InitStateSetter
RcsGraph * graph
 

Detailed Description

Initial state setter for the box shelving task. The initial state consists of the the x and y position of the base, the z position of the rail and two joint angles of the left LBR arm.

Definition at line 44 of file ISSBoxShelving.h.

Constructor & Destructor Documentation

◆ ISSBoxShelving()

Rcs::ISSBoxShelving::ISSBoxShelving ( RcsGraph *  graph,
bool  fixedInitState 
)

Constructor. The passed graph must contain the bodies ImetronPlatform, RailBot, lbr_link_2_L, lbr_link_4_L.

Parameters
graphgraph to set the state on

Definition at line 39 of file ISSBoxShelving.cpp.

◆ ~ISSBoxShelving()

Rcs::ISSBoxShelving::~ISSBoxShelving ( )
virtual

Definition at line 53 of file ISSBoxShelving.cpp.

Member Function Documentation

◆ applyInitialState()

void Rcs::ISSBoxShelving::applyInitialState ( const MatNd *  initialState)
overridevirtual

Set initial state of the graph.

Implements Rcs::InitStateSetter.

Definition at line 84 of file ISSBoxShelving.cpp.

◆ getDim()

unsigned int Rcs::ISSBoxShelving::getDim ( ) const
overridevirtual

Provides the number of elements in the space. Since the BoxSpace object will be cached, this must not change.

Returns
number of elements for the space.

Implements Rcs::BoxSpaceProvider.

Definition at line 58 of file ISSBoxShelving.cpp.

◆ getMinMax()

void Rcs::ISSBoxShelving::getMinMax ( double *  min,
double *  max 
) const
overridevirtual

Provides the minimum and maximum state values. The default implementation uses -inf and inf.

Reimplemented from Rcs::InitStateSetter.

Definition at line 63 of file ISSBoxShelving.cpp.

◆ getNames()

std::vector< std::string > Rcs::ISSBoxShelving::getNames ( ) const
virtual

Provides names for each entry of the space.

These are intended for use in python, i.e., for pandas dataframe column names.

Returns
a vector of name strings. Must be of length getDim() or empty.

Reimplemented from Rcs::BoxSpaceProvider.

Definition at line 79 of file ISSBoxShelving.cpp.

Member Data Documentation

◆ fixedInitState

bool Rcs::ISSBoxShelving::fixedInitState
private

Definition at line 65 of file ISSBoxShelving.h.

◆ link2L

RcsBody* Rcs::ISSBoxShelving::link2L
private

Definition at line 68 of file ISSBoxShelving.h.

◆ link4L

RcsBody* Rcs::ISSBoxShelving::link4L
private

Definition at line 69 of file ISSBoxShelving.h.

◆ platform

RcsBody* Rcs::ISSBoxShelving::platform
private

Definition at line 66 of file ISSBoxShelving.h.

◆ rail

RcsBody* Rcs::ISSBoxShelving::rail
private

Definition at line 67 of file ISSBoxShelving.h.


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