PlatformUnitExecutor.cpp
Go to the documentation of this file.
2 
4 
6 {
7 
8  PlatformUnitExecutor::PlatformUnitExecutor(PlatformUnitInterfacePrx platformUnit) :
9  platformUnit{platformUnit}
10  {
11  // pass
12  }
13 
15  {
16  // pass
17  }
18 
19  void
21  {
22  ARMARX_CHECK_NOT_NULL(platformUnit) << "PlatformUnit is not available";
23  platformUnit->move(twist.linear.x(), twist.linear.y(), twist.angular.z());
24  }
25 
26 } // namespace armarx::navigation::server
armarx::navigation::server::PlatformUnitExecutor::PlatformUnitExecutor
PlatformUnitExecutor(PlatformUnitInterfacePrx platformUnit)
Definition: PlatformUnitExecutor.cpp:8
ARMARX_CHECK_NOT_NULL
#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...
Definition: ExpressionException.h:206
armarx::navigation::server::PlatformUnitExecutor::~PlatformUnitExecutor
~PlatformUnitExecutor() override
Definition: PlatformUnitExecutor.cpp:14
PlatformUnitExecutor.h
armarx::navigation::core::Twist
Definition: basic_types.h:53
armarx::navigation::server
This file is part of ArmarX.
Definition: EventPublishingInterface.h:10
ExpressionException.h
armarx::navigation::core::Twist::linear
LinearVelocity linear
Definition: basic_types.h:55
armarx::navigation::core::Twist::angular
AngularVelocity angular
Definition: basic_types.h:56
armarx::navigation::server::PlatformUnitExecutor::move
void move(const core::Twist &twist) override
Definition: PlatformUnitExecutor.cpp:20