iCub-main
Public Member Functions | List of all members
BlenderSimulation Class Reference

#include <BlenderSimulation.h>

+ Inheritance diagram for BlenderSimulation:

Public Member Functions

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

Detailed Description

Definition at line 15 of file BlenderSimulation.h.

Member Function Documentation

◆ checkSync()

virtual bool BlenderSimulation::checkSync ( bool  reset)
inlinevirtual

Implements Simulation.

Definition at line 38 of file BlenderSimulation.h.

◆ clearBuffer()

virtual void BlenderSimulation::clearBuffer ( )
inlinevirtual

Signal that we're done with a view.

Implements Simulation.

Definition at line 27 of file BlenderSimulation.h.

◆ drawView()

virtual void BlenderSimulation::drawView ( bool  left,
bool  right,
bool  wide 
)
inlinevirtual

Render the requested view.


Implements Simulation.

Definition at line 19 of file BlenderSimulation.h.

◆ getImage()

virtual bool BlenderSimulation::getImage ( yarp::sig::ImageOf< yarp::sig::PixelRgb > &  img)
inlinevirtual

Implements Simulation.

Definition at line 21 of file BlenderSimulation.h.

◆ init()

virtual void BlenderSimulation::init ( RobotStreamer streamer,
RobotConfig config 
)
inlinevirtual

Initialization.

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

Implements Simulation.

Definition at line 17 of file BlenderSimulation.h.

◆ simLoop()

virtual void BlenderSimulation::simLoop ( int  h,
int  w 
)
inlinevirtual

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.

Implements Simulation.

Definition at line 30 of file BlenderSimulation.h.


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