ARGoS
3
A parallel, multi-engine simulator for swarm robotics
|
00001 00007 #include "loop_functions.h" 00008 #include <argos3/core/utility/plugins/factory.h> 00009 00010 namespace argos { 00011 00012 /****************************************/ 00013 /****************************************/ 00014 00015 bool CLoopFunctions::MoveEntity(CPositionalEntity& c_entity, 00016 const CVector3& c_position, 00017 const CQuaternion& c_orientation, 00018 bool b_check_only) { 00019 return c_entity.MoveTo(c_position, c_orientation, b_check_only); 00020 } 00021 00022 /****************************************/ 00023 /****************************************/ 00024 00025 void CLoopFunctions::AddEntity(CEntity& c_entity) { 00026 CallEntityOperation<CSpaceOperationAddEntity, CSpace, void>(m_cSpace, c_entity); 00027 } 00028 00029 /****************************************/ 00030 /****************************************/ 00031 00032 void CLoopFunctions::RemoveEntity(const std::string& str_entity_id) { 00033 CEntity& entity = m_cSpace.GetEntity(str_entity_id); 00034 RemoveEntity(entity); 00035 } 00036 00037 /****************************************/ 00038 /****************************************/ 00039 00040 void CLoopFunctions::RemoveEntity(CEntity& c_entity) { 00041 CallEntityOperation<CSpaceOperationRemoveEntity, CSpace, void>(m_cSpace, c_entity); 00042 } 00043 00044 /****************************************/ 00045 /****************************************/ 00046 00047 }