YARP
Yet Another Robot Platform
PidEnums.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2006-2020 Istituto Italiano di Tecnologia (IIT)
3
* All rights reserved.
4
*
5
* This software may be modified and distributed under the terms of the
6
* BSD-3-Clause license. See the accompanying LICENSE file for details.
7
*/
8
9
#ifndef YARP_DEV_PIDENUMS_H
10
#define YARP_DEV_PIDENUMS_H
11
12
#include <
yarp/os/Vocab.h
>
13
#include <
yarp/conf/system.h
>
14
#include <
yarp/dev/api.h
>
15
16
namespace
yarp
17
{
18
namespace
dev
19
{
20
enum
YARP_dev_API
PidControlTypeEnum
21
{
22
VOCAB_PIDTYPE_POSITION
=
yarp::os::createVocab
(
'p'
,
'o'
,
's'
),
23
VOCAB_PIDTYPE_VELOCITY
=
yarp::os::createVocab
(
'v'
,
'e'
,
'l'
),
24
VOCAB_PIDTYPE_TORQUE
=
yarp::os::createVocab
(
't'
,
'r'
,
'q'
),
25
VOCAB_PIDTYPE_CURRENT
=
yarp::os::createVocab
(
'c'
,
'u'
,
'r'
)
26
};
27
28
YARP_WARNING_PUSH
29
YARP_DISABLE_CLASS_ENUM_API_WARNING
30
enum class
YARP_dev_API
PidFeedbackUnitsEnum
31
{
32
RAW_MACHINE_UNITS = 0,
33
METRIC
= 1,
34
};
35
36
enum class
YARP_dev_API
PidOutputUnitsEnum
37
{
38
RAW_MACHINE_UNITS = 0,
39
DUTYCYCLE_PWM_PERCENT = 1,
40
POSITION_METRIC = 2,
41
VELOCITY_METRIC = 3,
42
TORQUE_METRIC = 4,
43
CURRENT_METRIC
= 5
44
};
45
YARP_WARNING_POP
46
}
47
}
48
49
#endif // YARP_DEV_PIDENUMS_H
YARP_WARNING_PUSH
#define YARP_WARNING_PUSH
Starts a temporary alteration of the enabled warnings.
Definition:
system.h:334
yarp::os::createVocab
constexpr yarp::conf::vocab32_t createVocab(char a, char b=0, char c=0, char d=0)
Definition:
Vocab.h:22
YARP_DISABLE_CLASS_ENUM_API_WARNING
#define YARP_DISABLE_CLASS_ENUM_API_WARNING
Definition:
system.h:349
yarp::dev::VOCAB_PIDTYPE_CURRENT
@ VOCAB_PIDTYPE_CURRENT
Definition:
PidEnums.h:25
yarp::dev::PidOutputUnitsEnum::RAW_MACHINE_UNITS
@ RAW_MACHINE_UNITS
yarp::dev::VOCAB_PIDTYPE_POSITION
@ VOCAB_PIDTYPE_POSITION
Definition:
PidEnums.h:22
yarp::dev::PidOutputUnitsEnum
PidOutputUnitsEnum
Definition:
PidEnums.h:37
yarp::dev::VOCAB_PIDTYPE_TORQUE
@ VOCAB_PIDTYPE_TORQUE
Definition:
PidEnums.h:24
yarp::dev::PidControlTypeEnum
PidControlTypeEnum
Definition:
PidEnums.h:21
yarp::dev::VOCAB_PIDTYPE_VELOCITY
@ VOCAB_PIDTYPE_VELOCITY
Definition:
PidEnums.h:23
YARP_dev_API
#define YARP_dev_API
Definition:
api.h:19
system.h
YARP_WARNING_POP
#define YARP_WARNING_POP
Ends a temporary alteration of the enabled warnings.
Definition:
system.h:335
yarp::dev::PidFeedbackUnitsEnum
PidFeedbackUnitsEnum
Definition:
PidEnums.h:31
yarp::dev::PidFeedbackUnitsEnum::RAW_MACHINE_UNITS
@ RAW_MACHINE_UNITS
yarp
The main, catch-all namespace for YARP.
Definition:
environment.h:18
Vocab.h
api.h
YARP
3.4.100+20201223.2+gitb8ea4d712
src
libYARP_dev
src
yarp
dev
PidEnums.h
Generated on Sun Jan 3 2021 02:46:24 for YARP by
1.8.20