LaserScannerTimestampTest.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 RobotComponents::ArmarXObjects::laser_scanner_timestamp_test
17
* @author Corvin-N ( corvin at navarro dot de )
18
* @date 2023
19
* @copyright http://www.gnu.org/licenses/gpl-2.0.txt
20
* GNU General Public License
21
*/
22
23
24
#pragma once
25
26
#include <
ArmarXCore/core/Component.h
>
27
#include <
ArmarXCore/core/services/tasks/RunningTask.h
>
28
#include <RobotAPI/interface/units/LaserScannerUnit.h>
29
30
31
namespace
RobotComponents
32
{
33
34
class
Component
:
35
virtual
public
armarx::Component
36
{
37
public
:
38
39
/// @see armarx::ManagedIceObject::getDefaultName()
40
std::string
getDefaultName
()
const override
;
41
42
/// Get the component's default name.
43
static
std::string
GetDefaultName
();
44
45
46
protected
:
47
48
/// @see PropertyUser::createPropertyDefinitions()
49
armarx::PropertyDefinitionsPtr
createPropertyDefinitions
()
override
;
50
51
/// @see armarx::ManagedIceObject::onInitComponent()
52
void
onInitComponent
()
override
;
53
54
/// @see armarx::ManagedIceObject::onConnectComponent()
55
void
onConnectComponent
()
override
;
56
57
/// @see armarx::ManagedIceObject::onDisconnectComponent()
58
void
onDisconnectComponent
()
override
;
59
60
/// @see armarx::ManagedIceObject::onExitComponent()
61
void
onExitComponent
()
override
;
62
63
private
:
64
void
run();
65
66
int
randInRange(
int
min
,
int
max
);
67
68
69
private
:
70
71
static
const
std::string defaultName;
72
73
struct
Properties
74
{
75
std::string topicName;
76
bool
useTopic;
77
78
std::string frame;
79
80
int
freq;
81
82
int
min
;
83
int
max
;
84
85
int
correctBatchSize;
86
int
wrongBatchSize;
87
};
88
Properties properties;
89
90
armarx::LaserScannerUnitListenerPrx laserScanUnitListenerTopic;
91
armarx::LaserScannerUnitListenerPrx laserScanUnitListenerPrx;
92
armarx::RunningTask<Component>::pointer_type
runTask;
93
};
94
95
}
// namespace RobotComponents::components::laser_scanner_timestamp_test
RobotComponents::Component::getDefaultName
std::string getDefaultName() const override
Definition:
LaserScannerTimestampTest.cpp:181
RunningTask.h
RobotComponents::Component::onInitComponent
void onInitComponent() override
Definition:
LaserScannerTimestampTest.cpp:68
RobotComponents::Component::onConnectComponent
void onConnectComponent() override
Definition:
LaserScannerTimestampTest.cpp:93
RobotComponents::Component::createPropertyDefinitions
armarx::PropertyDefinitionsPtr createPropertyDefinitions() override
Definition:
LaserScannerTimestampTest.cpp:41
RobotComponents::Component
Definition:
LaserScannerTimestampTest.h:34
RobotComponents::Component::onDisconnectComponent
void onDisconnectComponent() override
Definition:
LaserScannerTimestampTest.cpp:168
max
T max(T t1, T t2)
Definition:
gdiam.h:48
Component.h
armarx::Component
Baseclass for all ArmarX ManagedIceObjects requiring properties.
Definition:
Component.h:95
RobotComponents::Component::onExitComponent
void onExitComponent() override
Definition:
LaserScannerTimestampTest.cpp:175
IceUtil::Handle< class PropertyDefinitionContainer >
min
T min(T t1, T t2)
Definition:
gdiam.h:42
RobotComponents::Component::GetDefaultName
static std::string GetDefaultName()
Get the component's default name.
Definition:
LaserScannerTimestampTest.cpp:188
RobotComponents
This file is part of ArmarX.
RobotComponents
components
laser_scanner_timestamp_test
LaserScannerTimestampTest.h
Generated on Sat Oct 12 2024 09:14:12 for armarx_documentation by
1.8.17