YARP
Yet Another Robot Platform
Loading...
Searching...
No Matches
CalibratorThread.h
Go to the documentation of this file.
1
/*
2
* SPDX-FileCopyrightText: 2006-2021 Istituto Italiano di Tecnologia (IIT)
3
* SPDX-License-Identifier: BSD-3-Clause
4
*/
5
6
#ifndef YARP_ROBOTINTERFACE_CALIBRATORTHREAD_H
7
#define YARP_ROBOTINTERFACE_CALIBRATORTHREAD_H
8
9
#include <
yarp/robotinterface/api.h
>
10
11
#include <
yarp/os/Thread.h
>
12
13
#include <
yarp/robotinterface/Types.h
>
14
15
16
namespace
yarp
{
17
18
namespace
os {
19
class
Semaphore;
20
}
// namespace os
21
22
namespace
dev {
23
class
ICalibrator;
24
class
DeviceDriver;
25
}
// namespace dev
26
27
namespace
robotinterface::impl {
28
29
class
CalibratorThread
:
public
yarp::os::Thread
30
{
31
public
:
32
enum
Action
33
{
34
ActionCalibrate
,
35
ActionPark
36
};
37
38
CalibratorThread
(
yarp::dev::ICalibrator
* calibrator,
39
const
std::string& calibratorName,
40
yarp::dev::DeviceDriver
* target,
41
const
std::string& targetName,
42
yarp::robotinterface::impl::CalibratorThread::Action
action);
43
~CalibratorThread
()
override
;
44
45
void
run
()
override
;
46
void
onStop
()
override
;
47
48
private
:
49
class
Private;
50
Private*
const
mPriv;
51
};
52
53
}
// namespace robotinterface::impl
54
}
// namespace yarp
55
56
#endif
// YARP_ROBOTINTERFACE_CALIBRATORTHREAD_H
Thread.h
Types.h
yarp::dev::DeviceDriver
Interface implemented by all device drivers.
Definition
DeviceDriver.h:29
yarp::dev::ICalibrator
Interface for a calibrator device.
Definition
ICalibrator.h:21
yarp::os::Thread
An abstraction for a thread of execution.
Definition
Thread.h:21
yarp::robotinterface::impl::CalibratorThread
Definition
CalibratorThread.h:30
yarp::robotinterface::impl::CalibratorThread::run
void run() override
Main body of the new thread.
Definition
CalibratorThread.cpp:88
yarp::robotinterface::impl::CalibratorThread::onStop
void onStop() override
Call-back, called while halting the thread (before join).
Definition
CalibratorThread.cpp:93
yarp::robotinterface::impl::CalibratorThread::Action
Action
Definition
CalibratorThread.h:33
yarp::robotinterface::impl::CalibratorThread::ActionPark
@ ActionPark
Definition
CalibratorThread.h:35
yarp::robotinterface::impl::CalibratorThread::ActionCalibrate
@ ActionCalibrate
Definition
CalibratorThread.h:34
yarp::robotinterface::impl::CalibratorThread::~CalibratorThread
~CalibratorThread() override
Definition
CalibratorThread.cpp:83
yarp
The main, catch-all namespace for YARP.
Definition
dirs.h:16
api.h
YARP
3.9.0+221-20240917.5+git468e6091f
src
libYARP_robotinterface
src
yarp
robotinterface
impl
CalibratorThread.h
Generated on Thu Oct 10 2024 02:32:35 for YARP by
1.9.8