RobotPoseUnit.cpp
Go to the documentation of this file.
1/*
2 * This file is part of ArmarX.
3 *
4 * Copyright (C) 2012-2016, High Performance Humanoid Technologies (H2T), Karlsruhe Institute of Technology (KIT), all rights reserved.
5 *
6 * ArmarX is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation.
9 *
10 * ArmarX is distributed in the hope that it will be useful, but
11 * WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 *
18 * @package ArmarXCore::units
19 * @author Nikolaus Vahrenkamp (vahrenkamp at kit dot edu)
20 * @date 2016
21 * @copyright http://www.gnu.org/licenses/gpl-2.0.txt
22 * GNU General Public License
23 */
24
25
26#include "RobotPoseUnit.h"
27
28namespace armarx
29{
30 void
32 {
33 std::string RobotPoseName = getProperty<std::string>("RobotName").getValue();
34
35 // component dependencies
36 listenerChannelName = RobotPoseName + "6DPoseState";
38
39 this->onInitRobotPoseUnit();
40 }
41
42 void
50
51 void
58
59 void
64
65 void
66 RobotPoseUnit::moveTo(PoseBasePtr targetPose,
67 Ice::Float positionalAccuracy,
68 Ice::Float orientationalAccuracy,
69 const Ice::Current& c)
70 {
71 }
72
78} // namespace armarx
constexpr T c
std::string getConfigIdentifier()
Retrieve config identifier for this component as set in constructor.
Definition Component.cpp:90
Property< PropertyType > getProperty(const std::string &name)
void offeringTopic(const std::string &name)
Registers a topic for retrival after initialization.
TopicProxyType getTopic(const std::string &name)
Returns a proxy of the specified topic.
Defines all necessary properties for armarx::RobotPoseUnit.
void onInitComponent() override
Retrieve proxy for publishing State information and call armarx::RobotPoseUnit::onInitRobotPoseUnit()...
virtual void moveTo(PoseBasePtr targetPose, Ice::Float positionalAccuracy, Ice::Float orientationalAccuracy, const Ice::Current &c=Ice::emptyCurrent)
moveTo moves the robot to a global pose specified by:
virtual void onInitRobotPoseUnit()=0
void onDisconnectComponent() override
Hook for subclass.
virtual void onStopRobotPoseUnit()
RobotPoseUnitListenerPrx listenerPrx
RobotPoseUnitListener proxy for publishing state updates.
virtual void onStartRobotPoseUnit()=0
void onConnectComponent() override
Calls armarx::RobotPoseUnit::onStartRobotPoseUnit().
PropertyDefinitionsPtr createPropertyDefinitions() override
std::string listenerChannelName
Ice Topic name on which armarx::RobotPoseUnit::listenerPrx publishes information.
virtual void onExitRobotPoseUnit()=0
void onExitComponent() override
Calls armarx::RobotPoseUnit::onExitRobotPoseUnit().
#define ARMARX_INFO
The normal logging level.
Definition Logging.h:181
This file offers overloads of toIce() and fromIce() functions for STL container types.
IceUtil::Handle< class PropertyDefinitionContainer > PropertyDefinitionsPtr
PropertyDefinitions smart pointer type.
const LogSender::manipulator flush
Definition LogSender.h:251