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 
28 namespace 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
44  {
45  ARMARX_INFO << "setting report topic to " << listenerChannelName << flush;
46  listenerPrx = getTopic<RobotPoseUnitListenerPrx>(listenerChannelName);
47 
48  this->onStartRobotPoseUnit();
49  }
50 
51  void
53  {
54  listenerPrx = NULL;
55 
56  this->onStopRobotPoseUnit();
57  }
58 
59  void
61  {
62  this->onExitRobotPoseUnit();
63  }
64 
65  void
66  RobotPoseUnit::moveTo(PoseBasePtr targetPose,
67  Ice::Float positionalAccuracy,
68  Ice::Float orientationalAccuracy,
69  const Ice::Current& c)
70  {
71  }
72 
75  {
77  }
78 } // namespace armarx
armarx::VariantType::Float
const VariantTypeId Float
Definition: Variant.h:919
armarx::RobotPoseUnit::onExitRobotPoseUnit
virtual void onExitRobotPoseUnit()=0
armarx::RobotPoseUnit::listenerChannelName
std::string listenerChannelName
Ice Topic name on which armarx::RobotPoseUnit::listenerPrx publishes information.
Definition: RobotPoseUnit.h:136
c
constexpr T c
Definition: UnscentedKalmanFilterTest.cpp:46
RobotPoseUnit.h
armarx::RobotPoseUnit::listenerPrx
RobotPoseUnitListenerPrx listenerPrx
RobotPoseUnitListener proxy for publishing state updates.
Definition: RobotPoseUnit.h:132
armarx::flush
const LogSender::manipulator flush
Definition: LogSender.h:251
armarx::RobotPoseUnit::moveTo
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:
Definition: RobotPoseUnit.cpp:66
armarx::RobotPoseUnit::onExitComponent
void onExitComponent() override
Calls armarx::RobotPoseUnit::onExitRobotPoseUnit().
Definition: RobotPoseUnit.cpp:60
armarx::RobotPoseUnit::onStartRobotPoseUnit
virtual void onStartRobotPoseUnit()=0
armarx::RobotPoseUnit::onInitRobotPoseUnit
virtual void onInitRobotPoseUnit()=0
armarx::Component::getConfigIdentifier
std::string getConfigIdentifier()
Retrieve config identifier for this component as set in constructor.
Definition: Component.cpp:79
ARMARX_INFO
#define ARMARX_INFO
Definition: Logging.h:181
armarx::RobotPoseUnitPropertyDefinitions
Defines all necessary properties for armarx::RobotPoseUnit.
Definition: RobotPoseUnit.h:41
armarx::ManagedIceObject::offeringTopic
void offeringTopic(const std::string &name)
Registers a topic for retrival after initialization.
Definition: ManagedIceObject.cpp:300
IceUtil::Handle
Definition: forward_declarations.h:30
armarx::RobotPoseUnit::onStopRobotPoseUnit
virtual void onStopRobotPoseUnit()
Definition: RobotPoseUnit.h:101
armarx::RobotPoseUnit::onConnectComponent
void onConnectComponent() override
Calls armarx::RobotPoseUnit::onStartRobotPoseUnit().
Definition: RobotPoseUnit.cpp:43
armarx::PropertyDefinitionsPtr
IceUtil::Handle< class PropertyDefinitionContainer > PropertyDefinitionsPtr
PropertyDefinitions smart pointer type.
Definition: forward_declarations.h:35
armarx::RobotPoseUnit::createPropertyDefinitions
PropertyDefinitionsPtr createPropertyDefinitions() override
Definition: RobotPoseUnit.cpp:74
armarx::RobotPoseUnit::onInitComponent
void onInitComponent() override
Retrieve proxy for publishing State information and call armarx::RobotPoseUnit::onInitRobotPoseUnit()...
Definition: RobotPoseUnit.cpp:31
armarx::RobotPoseUnit::onDisconnectComponent
void onDisconnectComponent() override
Hook for subclass.
Definition: RobotPoseUnit.cpp:52
armarx
This file offers overloads of toIce() and fromIce() functions for STL container types.
Definition: ArmarXTimeserver.cpp:27