IMUSimulationSensorDevice.h
Go to the documentation of this file.
1
/*
2
* This file is part of ArmarX.
3
*
4
* ArmarX is free software; you can redistribute it and/or modify
5
* it under the terms of the GNU General Public License version 2 as
6
* published by the Free Software Foundation.
7
*
8
* ArmarX is distributed in the hope that it will be useful, but
9
* WITHOUT ANY WARRANTY; without even the implied warranty of
10
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
* GNU General Public License for more details.
12
*
13
* You should have received a copy of the GNU General Public License
14
* along with this program. If not, see <http://www.gnu.org/licenses/>.
15
*
16
* @package ArmarXSimulation::ArmarXObjects::RobotUnitSimulation
17
* @author Raphael Grimm ( raphael dot grimm at kit dot edu )
18
* @date 2017
19
* @copyright http://www.gnu.org/licenses/gpl-2.0.txt
20
* GNU General Public License
21
*/
22
23
#pragma once
24
25
#include <
RobotAPI/components/units/RobotUnit/Devices/SensorDevice.h
>
26
#include <
RobotAPI/components/units/RobotUnit/SensorValues/SensorValueIMU.h
>
27
28
namespace
armarx
29
{
30
TYPEDEF_PTRS_SHARED
(IMUSimulationSensorDevice);
31
class
IMUSimulationSensorDevice
:
virtual
public
SensorDevice
32
{
33
public
:
34
IMUSimulationSensorDevice
(
const
std::string& name):
DeviceBase
(name),
SensorDevice
(name) {}
35
const
SensorValueBase
*
getSensorValue
()
const override
36
{
37
return
&
sensor
;
38
}
39
40
SensorValueIMU
sensor
;
41
};
42
}
43
SensorDevice.h
armarx::SensorValueBase
The SensorValueBase class.
Definition:
SensorValueBase.h:40
SensorValueIMU.h
armarx::IMUSimulationSensorDevice::IMUSimulationSensorDevice
IMUSimulationSensorDevice(const std::string &name)
Definition:
IMUSimulationSensorDevice.h:34
armarx::DeviceBase
Definition:
DeviceBase.h:29
armarx::IMUSimulationSensorDevice::sensor
SensorValueIMU sensor
Definition:
IMUSimulationSensorDevice.h:40
armarx::TYPEDEF_PTRS_SHARED
TYPEDEF_PTRS_SHARED(ControlDevice)
armarx::SensorDevice
This class represents some part of the robot providing sensor values.
Definition:
SensorDevice.h:59
armarx::IMUSimulationSensorDevice
Definition:
IMUSimulationSensorDevice.h:31
armarx::IMUSimulationSensorDevice::getSensorValue
const SensorValueBase * getSensorValue() const override
Definition:
IMUSimulationSensorDevice.h:35
armarx
This file offers overloads of toIce() and fromIce() functions for STL container types.
Definition:
ArmarXTimeserver.cpp:28
armarx::SensorValueIMU
Definition:
SensorValueIMU.h:35
ArmarXSimulation
components
RobotUnitSimulation
Devices
IMUSimulationSensorDevice.h
Generated on Sat Oct 12 2024 09:14:04 for armarx_documentation by
1.8.17