ARGoS  3
A parallel, multi-engine simulator for swarm robotics
qtopengl_footbot.h
Go to the documentation of this file.
1 
7 #ifndef QTOPENGL_FOOTBOT_H
8 #define QTOPENGL_FOOTBOT_H
9 
10 namespace argos {
11  class CQTOpenGLFootBot;
12  class CFootBotEntity;
13 }
14 
15 #ifdef __APPLE__
16 #include <gl.h>
17 #else
18 #include <GL/gl.h>
19 #endif
20 
21 namespace argos {
22 
24 
25  public:
26 
28 
29  virtual ~CQTOpenGLFootBot();
30 
31  virtual void Draw(CFootBotEntity& c_entity);
32 
33  protected:
34 
39  void MakeWheel();
40 
44  void SetBlackTireMaterial();
48  void SetLEDMaterial(GLfloat f_red, GLfloat f_green, GLfloat f_blue);
49 
51  void RenderWheel();
53  void RenderTrack();
55  void RenderBase();
57  void RenderGrippableSlice();
61  void RenderGripperClaw();
63  void RenderRAB();
67  void RenderDistanceScanner();
69  void RenderIMX();
71  void RenderBeacon();
73  void RenderCamera();
74 
75  private:
76 
78  GLuint m_unLists;
79 
81  GLuint m_unBasicWheelList;
82 
84  GLuint m_unWheelList;
86  GLuint m_unTrackList;
88  GLuint m_unBaseList;
90  GLuint m_unGrippableSliceList;
92  GLuint m_unGripperMechanicsList;
94  GLuint m_unGripperClawList;
96  GLuint m_unRABList;
98  GLuint m_unDistanceScannerSensorList;
100  GLuint m_unDistanceScannerList;
102  GLuint m_unIMXList;
104  GLuint m_unBeaconList;
106  GLuint m_unCameraList;
107 
110  GLuint m_unVertices;
111 
112  /* Angle gap between two leds */
113  GLfloat m_fLEDAngleSlice;
114 
115  };
116 
117 }
118 
119 #endif
argos
The namespace containing all the ARGoS related code.
Definition: ci_actuator.h:12
argos::CQTOpenGLFootBot::Draw
virtual void Draw(CFootBotEntity &c_entity)
Definition: qtopengl_footbot.cpp:191
argos::CQTOpenGLFootBot::RenderTrack
void RenderTrack()
Renders the tracks.
Definition: qtopengl_footbot.cpp:425
argos::CQTOpenGLFootBot::MakeWheel
void MakeWheel()
Renders a materialless wheel.
Definition: qtopengl_footbot.cpp:275
argos::CQTOpenGLFootBot
Definition: qtopengl_footbot.h:23
argos::CQTOpenGLFootBot::CQTOpenGLFootBot
CQTOpenGLFootBot()
Definition: qtopengl_footbot.cpp:94
argos::CFootBotEntity
Definition: footbot_entity.h:32
argos::CQTOpenGLFootBot::SetLEDMaterial
void SetLEDMaterial(GLfloat f_red, GLfloat f_green, GLfloat f_blue)
Sets a colored LED material.
Definition: qtopengl_footbot.cpp:362
argos::CQTOpenGLFootBot::SetBlackTireMaterial
void SetBlackTireMaterial()
Sets a black tire material.
Definition: qtopengl_footbot.cpp:334
argos::CQTOpenGLFootBot::RenderCamera
void RenderCamera()
Renders the camera.
Definition: qtopengl_footbot.cpp:930
argos::CQTOpenGLFootBot::SetWhitePlasticMaterial
void SetWhitePlasticMaterial()
Sets a white plastic material.
Definition: qtopengl_footbot.cpp:320
argos::CQTOpenGLFootBot::RenderDistanceScanner
void RenderDistanceScanner()
Renders the distance scanner.
Definition: qtopengl_footbot.cpp:829
argos::CQTOpenGLFootBot::~CQTOpenGLFootBot
virtual ~CQTOpenGLFootBot()
Definition: qtopengl_footbot.cpp:184
argos::CQTOpenGLFootBot::RenderBeacon
void RenderBeacon()
Renders the beacon.
Definition: qtopengl_footbot.cpp:892
argos::CQTOpenGLFootBot::RenderGrippableSlice
void RenderGrippableSlice()
Renders a slice of the gripper module (LEDs)
Definition: qtopengl_footbot.cpp:567
argos::CQTOpenGLFootBot::RenderGripperClaw
void RenderGripperClaw()
Renders the gripper.
Definition: qtopengl_footbot.cpp:706
argos::CQTOpenGLFootBot::RenderWheel
void RenderWheel()
Renders the wheels.
Definition: qtopengl_footbot.cpp:377
argos::CQTOpenGLFootBot::RenderDistanceScannerSensor
void RenderDistanceScannerSensor()
Renders a single sensor of the distance scanner.
Definition: qtopengl_footbot.cpp:776
argos::CQTOpenGLFootBot::RenderGripperMechanics
void RenderGripperMechanics()
Renders the gripper.
Definition: qtopengl_footbot.cpp:654
argos::CQTOpenGLFootBot::RenderIMX
void RenderIMX()
Renders the iMX module.
Definition: qtopengl_footbot.cpp:850
argos::CQTOpenGLFootBot::RenderBase
void RenderBase()
Renders the base (apart from the wheels)
Definition: qtopengl_footbot.cpp:486
argos::CQTOpenGLFootBot::SetCircuitBoardMaterial
void SetCircuitBoardMaterial()
Sets a circuit board material.
Definition: qtopengl_footbot.cpp:348
argos::CQTOpenGLFootBot::RenderRAB
void RenderRAB()
Renders the RAB module.
Definition: qtopengl_footbot.cpp:731