RcsPySim
A robot control and simulation library
Rcs::ECMiniGolf Class Reference
Inheritance diagram for Rcs::ECMiniGolf:
Collaboration diagram for Rcs::ECMiniGolf:

Private Member Functions

virtual ActionModelcreateActionModel ()
 
virtual ObservationModelcreateObservationModel ()
 
virtual void populatePhysicsParameters (PhysicsParameterManager *manager)
 
virtual InitStateSettercreateInitStateSetter ()
 
virtual void initViewer (Rcs::Viewer *viewer)
 
void getHUDText (std::vector< std::string > &linesOut, double currentTime, const MatNd *obs, const MatNd *currentAction, PhysicsBase *simulator, PhysicsParameterManager *physicsManager, ForceDisturber *forceDisturber) override
 

Additional Inherited Members

- Public Types inherited from Rcs::ExperimentConfig
typedef ExperimentConfig *(* ExperimentConfigCreateFunction) ()
 
- Public Member Functions inherited from Rcs::ExperimentConfig
 ExperimentConfig ()
 
virtual ~ExperimentConfig ()
 
virtual ForceDisturbercreateForceDisturber ()
 
PhysicsParameterManagercreatePhysicsParameterManager ()
 
std::string getHUDText (double currentTime, const MatNd *currentObservation, const MatNd *currentAction, PhysicsBase *simulator, PhysicsParameterManager *physicsManager, ForceDisturber *forceDisturber)
 
- Static Public Member Functions inherited from Rcs::ExperimentConfig
static void registerType (const char *name, ExperimentConfigCreateFunction creator)
 
static ExperimentConfigcreate (PropertySource *properties)
 
- Public Attributes inherited from Rcs::ExperimentConfig
PropertySourceproperties
 
RcsGraph * graph
 
ActionModelactionModel
 
ObservationModelobservationModel
 
RcsCollisionMdl * collisionMdl
 
double dt
 
bool checkJointLimits
 
- Protected Member Functions inherited from Rcs::ExperimentConfig
virtual void load (PropertySource *properties)
 

Detailed Description

Definition at line 74 of file ECMiniGolf.cpp.

Member Function Documentation

◆ createActionModel()

virtual ActionModel* Rcs::ECMiniGolf::createActionModel ( )
inlineprivatevirtual

Create the action model. Read any configuration from this->properties.

Returns
the new action model

Implements Rcs::ExperimentConfig.

Definition at line 77 of file ECMiniGolf.cpp.

◆ createInitStateSetter()

virtual InitStateSetter* Rcs::ECMiniGolf::createInitStateSetter ( )
inlineprivatevirtual

Create the init state setter. Read any configuration from this->properties. Since the init state setter is only needed for the simulation, it is not stored in the ExperimentConfig. Instead, the simulation calls this method and manages the object on it's own. The default implementation returns NULL to use the state from the graph file.

Returns
the new init state setter

Reimplemented from Rcs::ExperimentConfig.

Definition at line 236 of file ECMiniGolf.cpp.

◆ createObservationModel()

virtual ObservationModel* Rcs::ECMiniGolf::createObservationModel ( )
inlineprivatevirtual

Create the observation model. Read any configuration from this->properties.

Returns
the new observation model

Implements Rcs::ExperimentConfig.

Definition at line 157 of file ECMiniGolf.cpp.

◆ getHUDText()

void Rcs::ECMiniGolf::getHUDText ( std::vector< std::string > &  linesOut,
double  currentTime,
const MatNd *  currentObservation,
const MatNd *  currentAction,
PhysicsBase *  simulator,
PhysicsParameterManager physicsManager,
ForceDisturber forceDisturber 
)
inlineoverrideprivatevirtual

Called to update the HUD text for the viewer. The default implementation will show the physics engine name, the current time.

Parameters
[out]linesOutvector of HUD lines. initially empty.
[in]currentTimesimulation time
[in]currentObservationlatest observation
[in]currentActionlatest action
[in]simulatorphysics simulator or NULL if none
[in]physicsManagerphysics parameter manager or NULL if none
[in]forceDisturberdistruber which applies the forces to a given body
Returns
concatenated HUD lines

Reimplemented from Rcs::ExperimentConfig.

Definition at line 268 of file ECMiniGolf.cpp.

◆ initViewer()

virtual void Rcs::ECMiniGolf::initViewer ( Rcs::Viewer *  viewer)
inlineprivatevirtual

Perform additional initialization on the viewer. This could, for example, change the camera position or add additional visualization. The default implementation does nothing.

Reimplemented from Rcs::ExperimentConfig.

Definition at line 241 of file ECMiniGolf.cpp.

◆ populatePhysicsParameters()

virtual void Rcs::ECMiniGolf::populatePhysicsParameters ( PhysicsParameterManager manager)
inlineprivatevirtual

Add the physics parameter descriptors to the given physics parameter manager.

Parameters
managerparameter manager to populate.

Reimplemented from Rcs::ExperimentConfig.

Definition at line 223 of file ECMiniGolf.cpp.


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