GAMS  1.4.0
VREPBoat.h
Go to the documentation of this file.
1 
54 #ifndef _GAMS_PLATFORM_VREP_BOAT_H_
55 #define _GAMS_PLATFORM_VREP_BOAT_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 
70 #ifdef _GAMS_VREP_
71 
72 namespace gams
73 {
74  namespace platforms
75  {
79  class GAMS_EXPORT VREPBoat : public VREPBase
80  {
81  public:
85  const static std::string DEFAULT_BOAT_MODEL;
86 
96  VREPBoat(
97  const std::string& file,
98  const simxUChar client_side,
99  madara::knowledge::KnowledgeBase * knowledge,
100  variables::Sensors * sensors,
101  variables::Platforms * platforms,
102  variables::Self * self);
103 
109  virtual std::string get_id() const;
110 
114  virtual std::string get_name() const;
115 
120  virtual double get_accuracy() const;
121 
122  protected:
126  virtual void add_model_to_environment(const std::string& file,
127  const simxUChar client_side);
128 
132  virtual void get_target_handle();
133 
137  virtual double get_initial_z() const;
138  }; // class VREPBoat
139 
143  class GAMS_EXPORT VREPBoatFactory : public PlatformFactory
144  {
145  public:
146 
159  virtual BasePlatform * create(
160  const madara::knowledge::KnowledgeMap & args,
161  madara::knowledge::KnowledgeBase * knowledge,
162  variables::Sensors * sensors,
163  variables::Platforms * platforms,
164  variables::Self * self);
165  };
166  } // namespace platform
167 } // namespace gams
168 
169 #endif // _GAMS_VREP_
170 
171 #endif // _GAMS_PLATFORM_VREP_BOAT_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.