RobotUnitModuleBase.cpp File Reference
#include "RobotUnitModuleBase.h"
#include <sstream>
#include <VirtualRobot/Robot.h>
#include <ArmarXCore/core/exceptions/local/ExpressionException.h>
#include <ArmarXCore/core/util/Preprocessor.h>
#include <ArmarXCore/util/CPPUtility/trace.h>
#include "RobotUnitModules.h"
+ Include dependency graph for RobotUnitModuleBase.cpp:

Go to the source code of this file.

Namespaces

namespace  armarx
 This file offers overloads of toIce() and fromIce() functions for STL container types.
 
namespace  armarx::RobotUnitModule
 

Macros

#define call_module_hook(Type)
 
#define call_module_hook(Type)
 
#define call_module_hook(Type)
 
#define call_module_hook(Type)
 
#define call_module_hook(Type)
 
#define call_module_hook(Type)
 
#define call_module_hook(Type)
 
#define call_module_hook(Type)
 
#define call_module_hook(Type)
 
#define call_module_hook(Type)
 
#define call_module_hook(Type)
 
#define call_module_hook(Type)
 
#define call_module_hook(Type)
 
#define call_module_hook(Type)
 
#define call_module_hook(Type)
 
#define call_module_hook(Type)
 
#define call_module_hook(Type)
 
#define call_module_hook(Type)
 
#define call_module_hook(Type)
 
#define call_module_hook(Type)
 
#define cast_to_and_call(Type, fn, rethrow)
 
#define check_base(Type)
 
#define check_deriving(Type)
 
#define for_each_module(macro)
 
#define for_each_module_apply(r, data, elem)
 

Functions

 for_each_module (check_base) void ModuleBase
 
std::string to_string (RobotUnitState s)
 

Macro Definition Documentation

◆ call_module_hook [1/20]

#define call_module_hook ( Type)
Value:
cast_to_and_call(::armarx::RobotUnitModule::Type, _preOnInitRobotUnit(), true)
#define cast_to_and_call(Type, fn, rethrow)

◆ call_module_hook [2/20]

#define call_module_hook ( Type)
Value:
cast_to_and_call(::armarx::RobotUnitModule::Type, _postOnInitRobotUnit(), true)

◆ call_module_hook [3/20]

#define call_module_hook ( Type)
Value:
cast_to_and_call(::armarx::RobotUnitModule::Type, _preOnConnectRobotUnit(), true)

◆ call_module_hook [4/20]

#define call_module_hook ( Type)
Value:
cast_to_and_call(::armarx::RobotUnitModule::Type, _postOnConnectRobotUnit(), true)

◆ call_module_hook [5/20]

#define call_module_hook ( Type)
Value:
cast_to_and_call(::armarx::RobotUnitModule::Type, _preOnDisconnectRobotUnit(), true)

◆ call_module_hook [6/20]

#define call_module_hook ( Type)
Value:
cast_to_and_call(::armarx::RobotUnitModule::Type, _postOnDisconnectRobotUnit(), true)

◆ call_module_hook [7/20]

#define call_module_hook ( Type)
Value:
cast_to_and_call(::armarx::RobotUnitModule::Type, _preOnExitRobotUnit(), false)

◆ call_module_hook [8/20]

#define call_module_hook ( Type)
Value:
cast_to_and_call(::armarx::RobotUnitModule::Type, _postOnExitRobotUnit(), false)

◆ call_module_hook [9/20]

#define call_module_hook ( Type)
Value:
::armarx::RobotUnitModule::Type, _componentPropertiesUpdated(changedProperties), true)

◆ call_module_hook [10/20]

#define call_module_hook ( Type)
Value:
cast_to_and_call(::armarx::RobotUnitModule::Type, _icePropertiesInitialized(), true)

◆ call_module_hook [11/20]

#define call_module_hook ( Type)
Value:
cast_to_and_call(::armarx::RobotUnitModule::Type, _preFinishComponentInitialization(), true)

◆ call_module_hook [12/20]

#define call_module_hook ( Type)
Value:
cast_to_and_call(::armarx::RobotUnitModule::Type, _postFinishComponentInitialization(), true)

◆ call_module_hook [13/20]

#define call_module_hook ( Type)
Value:
cast_to_and_call(::armarx::RobotUnitModule::Type, _preFinishDeviceInitialization(), true)

◆ call_module_hook [14/20]

#define call_module_hook ( Type)
Value:
cast_to_and_call(::armarx::RobotUnitModule::Type, _postFinishDeviceInitialization(), true)

◆ call_module_hook [15/20]

#define call_module_hook ( Type)
Value:
cast_to_and_call(::armarx::RobotUnitModule::Type, _preFinishUnitInitialization(), true)

◆ call_module_hook [16/20]

#define call_module_hook ( Type)
Value:
cast_to_and_call(::armarx::RobotUnitModule::Type, _postFinishUnitInitialization(), true)

◆ call_module_hook [17/20]

#define call_module_hook ( Type)
Value:
cast_to_and_call(::armarx::RobotUnitModule::Type, _preFinishControlThreadInitialization(), true)

◆ call_module_hook [18/20]

#define call_module_hook ( Type)
Value:
::armarx::RobotUnitModule::Type, _postFinishControlThreadInitialization(), true)

◆ call_module_hook [19/20]

#define call_module_hook ( Type)
Value:
cast_to_and_call(::armarx::RobotUnitModule::Type, _preFinishRunning(), false)

◆ call_module_hook [20/20]

#define call_module_hook ( Type)
Value:
cast_to_and_call(::armarx::RobotUnitModule::Type, _postFinishRunning(), false)

◆ cast_to_and_call

#define cast_to_and_call ( Type,
fn,
rethrow )

Definition at line 65 of file RobotUnitModuleBase.cpp.

◆ check_base

#define check_base ( Type)
Value:
static_assert(std::is_base_of<ModuleBase, Type>::value, \
"The RobotUnitModule '" #Type "' has to derived ModuleBase");

Definition at line 102 of file RobotUnitModuleBase.cpp.

◆ check_deriving

#define check_deriving ( Type)
Value:
ARMARX_CHECK_NOT_NULL(dynamic_cast<const Type*>(this)) \
<< "This class does not derive from " << GetTypeString<Type>();
#define ARMARX_CHECK_NOT_NULL(ptr)
This macro evaluates whether ptr is not null and if it turns out to be false it will throw an Express...

◆ for_each_module

#define for_each_module ( macro)
Value:
BOOST_PP_SEQ_FOR_EACH(for_each_module_apply, macro, BOOST_PP_VARIADIC_TO_SEQ(RobotUnitModules))
#define for_each_module_apply(r, data, elem)

Definition at line 99 of file RobotUnitModuleBase.cpp.

◆ for_each_module_apply

#define for_each_module_apply ( r,
data,
elem )
Value:
data(elem)
uint8_t data[1]

Definition at line 98 of file RobotUnitModuleBase.cpp.