PlatformUnitExecutor.cpp
Go to the documentation of this file.
1
#include <
ArmarXCore/core/exceptions/local/ExpressionException.h
>
2
3
#include <
armarx/navigation/server/execution/PlatformUnitExecutor.h
>
4
5
namespace
armarx::navigation::server
6
{
7
8
PlatformUnitExecutor::PlatformUnitExecutor
(PlatformUnitInterfacePrx platformUnit) :
9
platformUnit{platformUnit}
10
{
11
// pass
12
}
13
14
PlatformUnitExecutor::~PlatformUnitExecutor
()
15
{
16
// pass
17
}
18
19
void
20
PlatformUnitExecutor::move
(
const
core::Twist
& twist)
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
armarx
navigation
server
execution
PlatformUnitExecutor.cpp
Generated on Sat Oct 12 2024 09:14:15 for armarx_documentation by
1.8.17