23 #ifdef FARSA_USE_YARP_AND_ICUB
25 #include "icubsimulatorviewer.h"
27 #include <QVBoxLayout>
31 using namespace qglviewer;
37 this->icubsimulator = icubsim;
44 actionsMenu->addAction(
"Start", icubsimulator, SLOT(start()) );
45 actionsMenu->addAction(
"Suspend", icubsimulator, SLOT(suspend()) );
46 actionsMenu->addAction(
"Step", icubsimulator, SLOT(step()) );
52 renderworld->setWindowFlags( flags );
54 wVector cameraDefaultPosition = icubTm.
transformVector( wVector( -0.8f, 0.0f, +0.6f ) );
55 renderworld->
camera()->setPosition(
Vec( cameraDefaultPosition[0], cameraDefaultPosition[1], cameraDefaultPosition[2] ) );
56 renderworld->
camera()->setUpVector(
Vec(0.0f, 0.0f, 1.0f) );
59 QList<ParameterSettableUIViewer> viewsList;
60 viewsList.append(
ParameterSettableUIViewer( renderworld,
"iCub Simulator", QString(),
"3D visualization of the world and the iCub robot" ) );
66 #endif // FARSA_USE_YARP_AND_ICUB