ForceTorqueUnit.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 Peter Kaiser <peter dot kaiser at kit dot edu>
20  * @date 2011
21  * @copyright http://www.gnu.org/licenses/gpl-2.0.txt
22  * GNU General Public License
23  */
24 
25 #include "ForceTorqueUnit.h"
26 
27 namespace armarx
28 {
30  {
31  listenerName = getProperty<std::string>("ForceTorqueTopicName").getValue();
34  }
35 
37  {
38  ARMARX_INFO << "setting report topic to " << listenerName << flush;
39  listenerPrx = getTopic<ForceTorqueUnitListenerPrx>(listenerName);
41  }
42 
44  {
46  }
47 
49  {
51  }
52 }
armarx::ForceTorqueUnit::createPropertyDefinitions
PropertyDefinitionsPtr createPropertyDefinitions() override
Definition: ForceTorqueUnit.cpp:48
armarx::ForceTorqueUnitPropertyDefinitions
Definition: ForceTorqueUnit.h:43
armarx::ForceTorqueUnit::onConnectComponent
void onConnectComponent() override
Pure virtual hook for the subclass.
Definition: ForceTorqueUnit.cpp:36
armarx::ForceTorqueUnit::onExitForceTorqueUnit
virtual void onExitForceTorqueUnit()=0
ForceTorqueUnit.h
armarx::flush
const LogSender::manipulator flush
Definition: LogSender.h:251
armarx::ForceTorqueUnit::onStartForceTorqueUnit
virtual void onStartForceTorqueUnit()=0
armarx::ForceTorqueUnit::onInitComponent
void onInitComponent() override
Pure virtual hook for the subclass.
Definition: ForceTorqueUnit.cpp:29
armarx::Component::getConfigIdentifier
std::string getConfigIdentifier()
Retrieve config identifier for this component as set in constructor.
Definition: Component.cpp:74
armarx::ForceTorqueUnit::listenerPrx
ForceTorqueUnitListenerPrx listenerPrx
Definition: ForceTorqueUnit.h:93
armarx::ForceTorqueUnit::listenerName
std::string listenerName
Definition: ForceTorqueUnit.h:94
armarx::ForceTorqueUnit::onInitForceTorqueUnit
virtual void onInitForceTorqueUnit()=0
ARMARX_INFO
#define ARMARX_INFO
Definition: Logging.h:174
armarx::ManagedIceObject::offeringTopic
void offeringTopic(const std::string &name)
Registers a topic for retrival after initialization.
Definition: ManagedIceObject.cpp:290
IceUtil::Handle< class PropertyDefinitionContainer >
armarx::PropertyDefinitionsPtr
IceUtil::Handle< class PropertyDefinitionContainer > PropertyDefinitionsPtr
PropertyDefinitions smart pointer type.
Definition: forward_declarations.h:34
armarx
This file offers overloads of toIce() and fromIce() functions for STL container types.
Definition: ArmarXTimeserver.cpp:28
armarx::ForceTorqueUnit::onExitComponent
void onExitComponent() override
Hook for subclass.
Definition: ForceTorqueUnit.cpp:43