types.cpp
Go to the documentation of this file.
1
#include "
types.h
"
2
3
#include <
ArmarXCore/core/exceptions/local/ExpressionException.h
>
4
5
6
namespace
armarx::armem::robot
7
{
8
9
std::ostream&
operator<<
(std::ostream &os,
const
RobotDescription
&rhs)
10
{
11
os <<
"RobotDescription { name: '"
<< rhs.
name
<<
"', xml: '"
<< rhs.
xml
<<
"' }"
;
12
return
os;
13
}
14
15
16
std::string
Robot::name
()
const
17
{
18
ARMARX_CHECK_NOT_EMPTY
(
description
.
name
) <<
"The robot name must be set!"
;
19
ARMARX_CHECK_NOT_EMPTY
(
instance
) <<
"The robot instance name must be provided!"
;
20
21
return
description
.
name
+
"/"
+
instance
;
22
}
23
24
}
armarx::armem::robot
Definition:
aron_conversions.cpp:10
armarx::armem::robot::operator<<
std::ostream & operator<<(std::ostream &os, const RobotDescription &rhs)
Definition:
types.cpp:9
ARMARX_CHECK_NOT_EMPTY
#define ARMARX_CHECK_NOT_EMPTY(c)
Definition:
ExpressionException.h:224
armarx::armem::robot::Robot::name
std::string name() const
Definition:
types.cpp:16
armarx::armem::robot::RobotDescription
Definition:
types.h:17
armarx::armem::robot::Robot::description
RobotDescription description
Definition:
types.h:70
armarx::armem::robot::Robot::instance
std::string instance
Definition:
types.h:71
ExpressionException.h
armarx::armem::robot::RobotDescription::xml
PackagePath xml
Definition:
types.h:22
armarx::armem::robot::RobotDescription::name
std::string name
Definition:
types.h:21
types.h
RobotAPI
libraries
armem_robot
types.cpp
Generated on Tue Feb 13 2024 06:12:07 for armarx_documentation by
1.8.17