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

#include <ISSMPBlending.h>

Inheritance diagram for Rcs::ISSMPBlending:
Collaboration diagram for Rcs::ISSMPBlending:

Public Member Functions

 ISSMPBlending (RcsGraph *graph)
 
virtual ~ISSMPBlending ()
 
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

RcsBody * effector
 

Additional Inherited Members

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

Detailed Description

Initial state setter for the movement primitive blending sandbox environment. The initial state consists of the 2 Cartesian positions of the prismatic joints.

Definition at line 43 of file ISSMPBlending.h.

Constructor & Destructor Documentation

◆ ISSMPBlending()

Rcs::ISSMPBlending::ISSMPBlending ( RcsGraph *  graph)

Constructor. The passed graph must contain a body named 'Effector'.

Parameters
graphgraph to set the state on

Definition at line 39 of file ISSMPBlending.cpp.

◆ ~ISSMPBlending()

Rcs::ISSMPBlending::~ISSMPBlending ( )
virtual

Definition at line 46 of file ISSMPBlending.cpp.

Member Function Documentation

◆ applyInitialState()

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

Set initial state of the graph.

Implements Rcs::InitStateSetter.

Definition at line 70 of file ISSMPBlending.cpp.

◆ getDim()

unsigned int Rcs::ISSMPBlending::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 51 of file ISSMPBlending.cpp.

◆ getMinMax()

void Rcs::ISSMPBlending::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 56 of file ISSMPBlending.cpp.

◆ getNames()

std::vector< std::string > Rcs::ISSMPBlending::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 65 of file ISSMPBlending.cpp.

Member Data Documentation

◆ effector

RcsBody* Rcs::ISSMPBlending::effector
private

Definition at line 65 of file ISSMPBlending.h.


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