iCub-main
Public Member Functions | List of all members
Simulation Class Referenceabstract

#include <Simulation.h>

+ Inheritance diagram for Simulation:

Public Member Functions

virtual void init (RobotStreamer *streamer, RobotConfig *config)=0
 Initialization. More...
 
virtual ~Simulation ()
 Destructor. More...
 
virtual void drawView (bool left, bool right, bool wide)=0
 Render the requested view. More...
 
virtual bool getImage (yarp::sig::ImageOf< yarp::sig::PixelRgb > &img)=0
 
virtual void clearBuffer ()=0
 Signal that we're done with a view. More...
 
virtual void simLoop (int h, int w)=0
 Run the simulation. More...
 
virtual bool checkSync (bool reset=false)=0
 
virtual bool getTrqData (yarp::os::Bottle data)=0
 

Detailed Description

Definition at line 28 of file Simulation.h.

Constructor & Destructor Documentation

◆ ~Simulation()

virtual Simulation::~Simulation ( )
inlinevirtual

Destructor.

Definition at line 44 of file Simulation.h.

Member Function Documentation

◆ checkSync()

virtual bool Simulation::checkSync ( bool  reset = false)
pure virtual

◆ clearBuffer()

virtual void Simulation::clearBuffer ( )
pure virtual

Signal that we're done with a view.

Implemented in OdeSdlSimulation, FakeSimulation, and BlenderSimulation.

◆ drawView()

virtual void Simulation::drawView ( bool  left,
bool  right,
bool  wide 
)
pure virtual

Render the requested view.


Implemented in OdeSdlSimulation, FakeSimulation, and BlenderSimulation.

◆ getImage()

virtual bool Simulation::getImage ( yarp::sig::ImageOf< yarp::sig::PixelRgb > &  img)
pure virtual

◆ getTrqData()

virtual bool Simulation::getTrqData ( yarp::os::Bottle  data)
pure virtual

Implemented in FakeSimulation.

◆ init()

virtual void Simulation::init ( RobotStreamer streamer,
RobotConfig config 
)
pure virtual

Initialization.

Passed a streamer object, which during simulation will be called back to transport vision, touch, and inertial information.

Implemented in OdeSdlSimulation, FakeSimulation, and BlenderSimulation.

◆ simLoop()

virtual void Simulation::simLoop ( int  h,
int  w 
)
pure virtual

Run the simulation.

This will not return until the simulation is terminated. This method creates a window for the simulation, and will process keyboard and mouse events related to that window.

Implemented in OdeSdlSimulation, FakeSimulation, and BlenderSimulation.


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