types.cpp
Go to the documentation of this file.
1 #include "types.h"
2 
4 
6 {
7 
8  std::ostream&
9  operator<<(std::ostream& os, const RobotDescription& rhs)
10  {
11  os << "RobotDescription { name: '" << rhs.name << "', xml: '" << rhs.xml << "' }";
12  return os;
13  }
14 } // namespace armarx::armem::robot_state::description
15 
17 {
18 
19  std::string
20  Robot::name() const
21  {
22  ARMARX_CHECK_NOT_EMPTY(description.name) << "The robot name must be set!";
23  ARMARX_CHECK_NOT_EMPTY(instance) << "The robot instance name must be provided!";
24 
25  return description.name + "/" + instance;
26  }
27 
28 } // namespace armarx::armem::robot_state
armarx::armem::robot_state::description::RobotDescription
Definition: types.h:44
armarx::armem::robot_state::description::operator<<
std::ostream & operator<<(std::ostream &os, const RobotDescription &rhs)
Definition: types.cpp:9
armarx::armem::robot_state
Definition: RobotStatePredictionClient.cpp:42
armarx::armem::robot_state::description::RobotDescription::xml
PackagePath xml
Definition: types.h:49
ARMARX_CHECK_NOT_EMPTY
#define ARMARX_CHECK_NOT_EMPTY(c)
Definition: ExpressionException.h:224
armarx::armem::robot_state::Robot::name
std::string name() const
Definition: types.cpp:20
armarx::armem::robot_state::description
Definition: aron_conversions.cpp:6
types.h
armarx::armem::robot_state::Robot::instance
std::string instance
Definition: types.h:129
ExpressionException.h
armarx::armem::robot_state::description::RobotDescription::name
std::string name
Definition: types.h:48
armarx::armem::robot_state::Robot::description
description::RobotDescription description
Definition: types.h:128