ARGoS
3
A parallel, multi-engine simulator for swarm robotics
|
Go to the documentation of this file.
7 #ifndef RAB_EQUIPPED_ENTITY_H
8 #define RAB_EQUIPPED_ENTITY_H
11 class CRABEquippedEntity;
12 class CEmbodiedEntity;
16 #include <argos3/core/utility/datatypes/byte_array.h>
17 #include <argos3/core/utility/datatypes/set.h>
18 #include <argos3/core/simulator/entity/positional_entity.h>
19 #include <argos3/core/utility/math/vector3.h>
20 #include <argos3/core/simulator/space/positional_indices/space_hash.h>
21 #include <argos3/core/simulator/space/positional_indices/grid.h>
31 typedef std::vector<CRABEquippedEntity*>
TVector;
39 const std::string& str_id,
114 SInt32 m_nCenterI, m_nCenterJ, m_nCenterK;
The abstract definition of a space hash.
void SetEntity(CRABEquippedEntity &c_entity)
virtual bool operator()(SInt32 n_i, SInt32 n_j, SInt32 n_k, CGrid< CRABEquippedEntity >::SCell &s_cell)
virtual void operator()(CAbstractSpaceHash< CRABEquippedEntity > &c_space_hash, CRABEquippedEntity &c_element)
Updates the necessary cells of a space hash.
The namespace containing all the ARGoS related code.
CSet< CRABEquippedEntity * > TSet
Basic class for an entity that contains other entities.
void SetRange(Real f_range)
This entity is a link to a body in the physics engine.
ticpp::Element TConfigurationNode
The ARGoS configuration XML node.
Defines the basic cell updater of the space hash.
void SetData(const CByteArray &c_data)
CRABEquippedEntityGridEntityUpdater(CGrid< CRABEquippedEntity > &c_grid)
virtual ~CRABEquippedEntity()
Byte array utility class.
CEmbodiedEntity & GetEntityBody()
virtual std::string GetTypeDescription() const
Returns a string label for this class.
virtual void Init(TConfigurationNode &t_tree)
Initializes the state of the entity from the XML configuration tree.
size_t GetMsgSize() const
An anchor related to the body of an entity.
virtual void Update()
Updates the state of this entity.
signed int SInt32
32-bit signed integer.
virtual bool operator()(CRABEquippedEntity &c_entity)
CRABEquippedEntity(CComposableEntity *pc_parent)
const SAnchor & GetAnchor() const
virtual void Reset()
Resets the state of the entity to whatever it was after Init() or the standalone constructor was call...
std::vector< CRABEquippedEntity * > TVector
float Real
Collects all ARGoS code.
CRABEquippedEntityGridCellUpdater(CGrid< CRABEquippedEntity > &c_grid)
CEmbodiedEntity * m_pcEntityBody
Defines a very simple double-linked list that stores unique elements.
size_t Size() const
Returns the current size of the byte array.