GAMS  1.4.0
VREPAnt.h
Go to the documentation of this file.
1 
54 #ifndef _GAMS_PLATFORM_VREP_ANT_H_
55 #define _GAMS_PLATFORM_VREP_ANT_H_
56 
59 
60 #include "gams/variables/Self.h"
61 #include "gams/variables/Sensor.h"
63 #include "madara/knowledge/KnowledgeBase.h"
64 
65 extern "C" {
66 #include "extApi.h"
67 }
68 
69 #ifdef _GAMS_VREP_
70 
71 namespace gams
72 {
73  namespace platforms
74  {
78  class GAMS_EXPORT VREPAnt : public VREPBase
79  {
80  public:
84  const static std::string DEFAULT_ANT_MODEL;
85 
95  VREPAnt(
96  std::string model_file,
97  simxUChar is_client_side,
98  madara::knowledge::KnowledgeBase * knowledge,
99  variables::Sensors * sensors,
100  variables::Platforms * platforms,
101  variables::Self * self);
102 
108  virtual std::string get_id() const;
109 
113  virtual std::string get_name() const;
114 
115  protected:
119  virtual void add_model_to_environment(const std::string& file,
120  const simxUChar client_side);
121 
125  virtual void get_target_handle();
126 
130  virtual double get_initial_z() const;
131  }; // class VREPAnt
132 
136  class GAMS_EXPORT VREPAntFactory : public PlatformFactory
137  {
138  public:
139 
152  virtual BasePlatform * create(
153  const madara::knowledge::KnowledgeMap & args,
154  madara::knowledge::KnowledgeBase * knowledge,
155  variables::Sensors * sensors,
156  variables::Platforms * platforms,
157  variables::Self * self);
158  };
159  } // namespace platform
160 } // namespace gams
161 
162 #endif // _GAMS_VREP_
163 
164 #endif // _GAMS_PLATFORM_VREP_ANT_H_
#define GAMS_EXPORT
Definition: GamsExport.h:20
Copyright(c) 2014 Carnegie Mellon University.
Copyright(c) 2014 Carnegie Mellon University.
Copyright(c) 2014 Carnegie Mellon University.
Copyright(c) 2014 Carnegie Mellon University.
Copyright(c) 2014 Carnegie Mellon University.
std::map< std::string, PlatformStatus > Platforms
a map of sensor names to the sensor information
std::map< std::string, Sensor * > Sensors
a map of sensor names to the sensor information
Definition: Sensor.h:238
Contains all GAMS-related tools, classes and code.