XsensIMU.h
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::XsensIMU
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 
25 #pragma once
26 
27 
31 
32 
34 
35 #include "IMU/IMU.h"
36 
37 namespace armarx
38 {
39  /**
40  * @class XsensIMUPropertyDefinitions
41  * @brief
42  */
45  {
46  public:
49  {
50  defineOptionalProperty<std::string>("deviceConnection", "/dev/ttyUSB0", "");
51 
52  defineOptionalProperty<std::string>("frequency", "", "");
53  defineOptionalProperty<std::string>("maxPendingEvents", "", "");
54  defineOptionalProperty<bool>("EnableSimpleCalibration", false, "");
55  }
56  };
57 
58  /**
59  * @class XsensIMU
60  * @brief A brief description
61  *
62  * Detailed Description
63  */
64  class XsensIMU :
65  virtual public InertialMeasurementUnit,
66  virtual public IMU::CIMUDeducedReckoning
67  {
68  public:
69 
70 
72  {
73 
74  }
75 
76  /**
77  * @see armarx::ManagedIceObject::getDefaultName()
78  */
79  std::string getDefaultName() const override
80  {
81  return "XsensIMU";
82  }
83 
84  protected:
85 
86  /**
87  * @see PropertyUser::createPropertyDefinitions()
88  */
90 
92 
93  // InertialMeasurementUnit interface
94 
95  void onInitIMU() override;
96  void onStartIMU() override;
97  void onExitIMU() override;
98 
99 
100  private:
101 
103  IMU::CIMUDevice IMUDevice;
104  };
105 }
106 
IMU::CIMUDeducedReckoning
Definition: IMUDeducedReckoning.h:17
armarx::XsensIMU::onInitIMU
void onInitIMU() override
Definition: XsensIMU.cpp:141
armarx::XsensIMU::XsensIMU
XsensIMU()
Definition: XsensIMU.h:71
armarx::PropertyDefinitionContainer::prefix
std::string prefix
Prefix of the properties such as namespace, domain, component name, etc.
Definition: PropertyDefinitionContainer.h:333
armarx::XsensIMU::onExitIMU
void onExitIMU() override
Definition: XsensIMU.cpp:160
RunningTask.h
armarx::XsensIMU::frameAcquisitionTaskLoop
void frameAcquisitionTaskLoop()
Definition: XsensIMU.cpp:37
armarx::XsensIMU::onStartIMU
void onStartIMU() override
Definition: XsensIMU.cpp:154
InertialMeasurementUnit.h
IMU::CIMUDevice
This class contains the the devices module and the thread for read the measurements.
Definition: IMUDevice.h:41
TimestampVariant.h
armarx::XsensIMU::getDefaultName
std::string getDefaultName() const override
Definition: XsensIMU.h:79
armarx::XsensIMU::createPropertyDefinitions
PropertyDefinitionsPtr createPropertyDefinitions() override
Definition: XsensIMU.cpp:32
Component.h
IceUtil::Handle
Definition: forward_declarations.h:29
armarx::InertialMeasurementUnit
Base unit for IMU sensors.
Definition: InertialMeasurementUnit.h:55
IMU.h
armarx::XsensIMU
A brief description.
Definition: XsensIMU.h:64
armarx::XsensIMUPropertyDefinitions
Definition: XsensIMU.h:43
armarx::InertialMeasurementUnitPropertyDefinitions
Definition: InertialMeasurementUnit.h:39
armarx
This file offers overloads of toIce() and fromIce() functions for STL container types.
Definition: ArmarXTimeserver.cpp:28
armarx::XsensIMUPropertyDefinitions::XsensIMUPropertyDefinitions
XsensIMUPropertyDefinitions(std::string prefix)
Definition: XsensIMU.h:47