ARGoS
3
A parallel, multi-engine simulator for swarm robotics
|
Go to the documentation of this file.
14 #include <argos3/core/simulator/entity/entity.h>
15 #include <argos3/core/utility/math/vector2.h>
16 #include <argos3/core/utility/math/vector3.h>
17 #include <argos3/core/utility/datatypes/color.h>
36 #ifdef ARGOS_WITH_FREEIMAGE
37 virtual void SaveAsImage(
const std::string& str_path) = 0;
66 #ifdef ARGOS_WITH_FREEIMAGE
68 const std::string& str_file_name);
76 UInt32 un_pixels_per_meter);
102 "The floor entity \"" <<
104 "\" has no associated color source.");
114 return m_bHasChanged;
122 m_bHasChanged =
true;
130 m_bHasChanged =
false;
139 #ifdef ARGOS_WITH_FREEIMAGE
140 void SaveAsImage(
const std::string& str_path);
157 CFloorColorSource* m_pcColorSource;
const std::string & GetId() const
Returns the id of this entity.
virtual void Init(TConfigurationNode &t_tree)
Initializes the entity from an XML tree.
The namespace containing all the ARGoS related code.
bool HasChanged() const
Returns true if the floor color has changed.
virtual std::string GetTypeDescription() const
Saves the current floor color to the given file.
CColor GetColorAtPoint(Real f_x, Real f_y)
Returns the color at the given point.
ticpp::Element TConfigurationNode
The ARGoS configuration XML node.
virtual void Reset()
Restores the initial state of the floor.
virtual CColor GetColorAtPoint(Real f_x, Real f_y)=0
virtual ~CFloorEntity()
Class destructor.
void ClearChanged()
Marks the floor color as not changed.
#define ARGOS_ASSERT(condition, message)
When code is compiled in debug, this macro throws an ARGoS exception with the passed message if the s...
CFloorEntity()
Class constructor.
unsigned int UInt32
32-bit unsigned integer.
virtual ~CFloorColorSource()
float Real
Collects all ARGoS code.
void SetChanged()
Marks the floor color as changed.