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

#include <FakeSimulation.h>

+ Inheritance diagram for FakeSimulation:

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 bool getTrqData (yarp::os::Bottle data)
 
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...
 

Detailed Description

Definition at line 28 of file FakeSimulation.h.

Member Function Documentation

◆ checkSync()

virtual bool FakeSimulation::checkSync ( bool  reset)
inlinevirtual

Implements Simulation.

Definition at line 49 of file FakeSimulation.h.

◆ clearBuffer()

virtual void FakeSimulation::clearBuffer ( )
inlinevirtual

Signal that we're done with a view.

Implements Simulation.

Definition at line 44 of file FakeSimulation.h.

◆ drawView()

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

Render the requested view.


Implements Simulation.

Definition at line 38 of file FakeSimulation.h.

◆ getImage()

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

Implements Simulation.

Definition at line 43 of file FakeSimulation.cpp.

◆ getTrqData()

bool FakeSimulation::getTrqData ( yarp::os::Bottle  data)
virtual

Implements Simulation.

Definition at line 37 of file FakeSimulation.cpp.

◆ init()

virtual void FakeSimulation::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 33 of file FakeSimulation.h.

◆ simLoop()

void FakeSimulation::simLoop ( int  h,
int  w 
)
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.

Implements Simulation.

Definition at line 26 of file FakeSimulation.cpp.


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