1 #ifdef _GAMS_SCRIMMAGE_
8 #include "madara/knowledge/KnowledgeBase.h"
13 #include "madara/threads/Threader.h"
14 #include "madara/threads/BaseThread.h"
15 #include "madara/LockType.h"
16 #include "madara/knowledge/containers/Integer.h"
17 #include "madara/knowledge/containers/NativeDoubleVector.h"
21 #include <scrimmage/simcontrol/SimControl.h>
27 class SCRIMMAGEBasePlatform :
public BasePlatform
30 SCRIMMAGEBasePlatform(
31 madara::knowledge::KnowledgeBase * kb_,
36 virtual ~SCRIMMAGEBasePlatform();
38 void operator=(
const SCRIMMAGEBasePlatform & rhs);
47 virtual int sense(
void)
override;
48 virtual int analyze(
void)
override;
49 virtual std::string get_name()
const override;
54 virtual std::string get_id()
const override;
63 void spawn_entity(
void);
68 virtual double get_accuracy()
const override;
84 static scrimmage::SimControl * get_simcontrol_instance()
92 static bool simcontrol_threaded()
94 return running_threaded;
100 madara::knowledge::KnowledgeRecord self_id;
105 int scrimmage_access_id;
107 madara::threads::Threader threader_;
112 static scrimmage::SimControl * simcontrol;
117 static bool running_threaded;
122 static std::string world_file;
130 class GAMS_EXPORT SCRIMMAGEBasePlatformFactory :
public PlatformFactory
134 SCRIMMAGEBasePlatformFactory();
136 virtual ~SCRIMMAGEBasePlatformFactory();
152 virtual BasePlatform * create(
153 const madara::knowledge::KnowledgeMap & args,
154 madara::knowledge::KnowledgeBase * knowledge,
157 variables::Self *
self);
Copyright(c) 2014 Carnegie Mellon University.
Copyright(c) 2014 Carnegie Mellon University.
Interface for defining a bounds checker for Orientations.
Interface for defining a bounds checker for Positions.
Provides Reference Frame (i.e., coordinate systemm) transforms.
A container for self referencing information.
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
Contains all GAMS-related tools, classes and code.
Copyright (c) 2015 Carnegie Mellon University.
Copyright (c) 2015 Carnegie Mellon University.
Copyright (c) 2015 Carnegie Mellon University.
Copyright (c) 2015-2018 Carnegie Mellon University.