20 #ifdef FARSA_USE_YARP_AND_ICUB
25 #include "worldsimconfig.h"
28 #include "wquaternion.h"
30 #include "yarpobject.h"
31 #include "renderworld.h"
58 void moveRotatePointOfView(
const wMatrix& tm );
66 virtual bool open( yarp::os::Searchable &config );
68 virtual bool close( );
70 virtual bool configure( yarp::os::Searchable &config );
74 virtual bool getImage( yarp::sig::ImageOf<yarp::sig::PixelRgb>& image );
75 virtual int height()
const;
76 virtual int width()
const;
79 void slotRemoveObject(
WObject* w );
80 void slotAddObject(
WObject* w );
92 QGLPixelBuffer* pbuffer;
94 unsigned char* frameBuffer;
96 yarp::sig::ImageOf<yarp::sig::PixelRgb> frameImage;
120 WCamera(
World* world, QString name,
WObject* attachTo,
unsigned int width=200,
unsigned int height=200 );
133 virtual void preUpdate();
139 virtual void postUpdate();
154 yarp::os::BufferedPort<yarp::sig::ImageOf<yarp::sig::PixelRgb> > porty;
161 #endif // FARSA_USE_YARP_AND_ICUB