ARGoS
3
A parallel, multi-engine simulator for swarm robotics
medium.cpp
Go to the documentation of this file.
1
7
#include "
medium.h
"
8
#include <argos3/core/simulator/space/space.h>
9
10
namespace
argos
{
11
12
/****************************************/
13
/****************************************/
14
15
void
CMedium::Init
(
TConfigurationNode
& t_tree) {
16
try
{
17
/* Get id from the XML */
18
GetNodeAttribute
(t_tree,
"id"
, m_strId);
19
}
20
catch
(
CARGoSException
& ex) {
21
THROW_ARGOSEXCEPTION_NESTED
(
"Error initializing a medium entity"
, ex);
22
}
23
}
24
25
/****************************************/
26
/****************************************/
27
28
}
argos
The namespace containing all the ARGoS related code.
Definition:
ci_actuator.h:12
argos::CARGoSException
The exception that wraps all errors in ARGoS.
Definition:
argos_exception.h:61
argos::TConfigurationNode
ticpp::Element TConfigurationNode
The ARGoS configuration XML node.
Definition:
argos_configuration.h:27
THROW_ARGOSEXCEPTION_NESTED
#define THROW_ARGOSEXCEPTION_NESTED(message, nested)
This macro throws an ARGoS exception with the passed message and nesting the passed exception.
Definition:
argos_exception.h:115
argos::CMedium::Init
virtual void Init(TConfigurationNode &t_tree)
Initialized the medium.
Definition:
medium.cpp:15
argos::GetNodeAttribute
void GetNodeAttribute(TConfigurationNode &t_node, const std::string &str_attribute, T &t_buffer)
Returns the value of a node's attribute.
Definition:
argos_configuration.h:208
medium.h
core
simulator
medium
medium.cpp
Generated on Wed Aug 4 2021 00:15:55 for ARGoS by
1.8.17