InertialMeasurementUnit.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 RobotAPI::ArmarXObjects::InertialMeasurementUnit
19  * @author Markus Grotz ( markus-grotz at web dot de )
20  * @date 2015
21  * @copyright http://www.gnu.org/licenses/gpl-2.0.txt
22  * GNU General Public License
23  */
24 
26 
27 
28 namespace armarx
29 {
31  {
32  offeringTopic(getProperty<std::string>("IMUTopicName").getValue());
33  onInitIMU();
34  }
35 
36 
38  {
39  IMUTopicPrx = getTopic<InertialMeasurementUnitListenerPrx>(getProperty<std::string>("IMUTopicName").getValue());
40  onStartIMU();
41  }
42 
43 
45  {
46  }
47 
48 
50  {
51  onExitIMU();
52  }
53 
55  {
58  }
59 }
armarx::InertialMeasurementUnit::onExitIMU
virtual void onExitIMU()=0
armarx::InertialMeasurementUnit::IMUTopicPrx
InertialMeasurementUnitListenerPrx IMUTopicPrx
Definition: InertialMeasurementUnit.h:101
armarx::InertialMeasurementUnit::onInitIMU
virtual void onInitIMU()=0
armarx::InertialMeasurementUnit::createPropertyDefinitions
PropertyDefinitionsPtr createPropertyDefinitions() override
Definition: InertialMeasurementUnit.cpp:54
InertialMeasurementUnit.h
armarx::InertialMeasurementUnit::onConnectComponent
void onConnectComponent() override
Definition: InertialMeasurementUnit.cpp:37
armarx::InertialMeasurementUnit::onDisconnectComponent
void onDisconnectComponent() override
Definition: InertialMeasurementUnit.cpp:44
armarx::InertialMeasurementUnit::onInitComponent
void onInitComponent() override
Definition: InertialMeasurementUnit.cpp:30
armarx::Component::getConfigIdentifier
std::string getConfigIdentifier()
Retrieve config identifier for this component as set in constructor.
Definition: Component.cpp:74
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::InertialMeasurementUnit::onExitComponent
void onExitComponent() override
Definition: InertialMeasurementUnit.cpp:49
armarx::InertialMeasurementUnit::onStartIMU
virtual void onStartIMU()=0
armarx::PropertyDefinitionsPtr
IceUtil::Handle< class PropertyDefinitionContainer > PropertyDefinitionsPtr
PropertyDefinitions smart pointer type.
Definition: forward_declarations.h:34
armarx::InertialMeasurementUnitPropertyDefinitions
Definition: InertialMeasurementUnit.h:39
armarx
This file offers overloads of toIce() and fromIce() functions for STL container types.
Definition: ArmarXTimeserver.cpp:28