PlatformUnitExecutor.cpp
Go to the documentation of this file.
2
3#include <RobotAPI/interface/units/PlatformUnitInterface.h>
4
7
9{
10
11 PlatformUnitExecutor::PlatformUnitExecutor(PlatformUnitInterfacePrx platformUnit) :
12 platformUnit{platformUnit}
13 {
14 // pass
15 }
16
21
22 void
24 {
25 ARMARX_CHECK_NOT_NULL(platformUnit) << "PlatformUnit is not available";
26 platformUnit->move(twist.linear.x(), twist.linear.y(), twist.angular.z());
27 }
28
29} // namespace armarx::navigation::server
PlatformUnitExecutor(PlatformUnitInterfacePrx platformUnit)
void move(const core::Twist &twist) override
#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...
This file is part of ArmarX.