YARP
Yet Another Robot Platform
Types.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_EXPERIMENTAL_TYPES_H
7 #define YARP_ROBOTINTERFACE_EXPERIMENTAL_TYPES_H
8 
9 #include <yarp/conf/system.h>
10 #if !defined(YARP_INCLUDING_DEPRECATED_HEADER_YARP_ROBOTINTERFACE_EXPERIMENTAL_TYPES_H_ON_PURPOSE)
11 YARP_COMPILER_WARNING("<yarp/dev/experimental/Types.h> file is deprecated in favour of <yarp/dev/Types.h>")
12 #endif
13 
14 #ifndef YARP_NO_DEPRECATED // Since YARP 3.5.0
15 
17 
18 namespace yarp {
19 namespace robotinterface {
20 namespace experimental {
21 
22 YARP_DEPRECATED_TYPEDEF_MSG("Use yarp::robotinterface::ParamList") yarp::robotinterface::ParamList ParamList;
23 YARP_DEPRECATED_TYPEDEF_MSG("Use yarp::robotinterface::ActionList") yarp::robotinterface::ActionList ActionList;
24 YARP_DEPRECATED_TYPEDEF_MSG("Use yarp::robotinterface::DeviceList") yarp::robotinterface::DeviceList DeviceList;
25 YARP_DEPRECATED_TYPEDEF_MSG("Use yarp::robotinterface::ThreadList") yarp::robotinterface::ThreadList ThreadList;
26 
27 // YARP_DEPRECATED_MSG("Use yarp::robotinterface::hasParam")
28 using robotinterface::hasParam;
29 // YARP_DEPRECATED_MSG("Use yarp::robotinterface::findParam")
30 using robotinterface::findParam;
31 // YARP_DEPRECATED_MSG("Use yarp::robotinterface::hasGroup")
32 using robotinterface::hasGroup;
33 // YARP_DEPRECATED_MSG("Use yarp::robotinterface::findGroup")
34 using robotinterface::findGroup;
35 // YARP_DEPRECATED_MSG("Use yarp::robotinterface::mergeDuplicateGroups")
36 using robotinterface::mergeDuplicateGroups;
37 
38 // YARP_DEPRECATED_MSG("Use yarp::robotinterface::ActionPhase")
39 YARP_DEPRECATED_TYPEDEF_MSG("Use yarp::robotinterface::ActionPhase") yarp::robotinterface::ActionPhase ActionPhase;
40 using robotinterface::ActionPhaseUnknown;
41 using robotinterface::ActionPhaseStartup;
42 using robotinterface::ActionPhaseRun;
43 using robotinterface::ActionPhaseInterrupt1;
44 using robotinterface::ActionPhaseInterrupt2;
45 using robotinterface::ActionPhaseInterrupt3;
46 using robotinterface::ActionPhaseShutdown;
47 using robotinterface::ActionPhaseReserved;
48 
49 // YARP_DEPRECATED_MSG("Use yarp::robotinterface::StringToActionPhase")
50 using robotinterface::StringToActionPhase;
51 // YARP_DEPRECATED_MSG("Use yarp::robotinterface::ActionPhaseToString")
52 using robotinterface::ActionPhaseToString;
53 
54 
55 YARP_DEPRECATED_TYPEDEF_MSG("Use yarp::robotinterface::ActionType") yarp::robotinterface::ActionType ActionType;
56 using robotinterface::ActionTypeUnknown;
57 using robotinterface::ActionTypeConfigure;
58 using robotinterface::ActionTypeCalibrate;
59 using robotinterface::ActionTypeAttach;
60 using robotinterface::ActionTypeAbort;
61 using robotinterface::ActionTypeDetach;
62 using robotinterface::ActionTypePark;
63 using robotinterface::ActionTypeCustom;
64 
65 // YARP_DEPRECATED_MSG("Use yarp::robotinterface::StringToActionType")
66 using robotinterface::StringToActionType;
67 // YARP_DEPRECATED_MSG("Use yarp::robotinterface::ActionTypeToString")
68 using robotinterface::ActionTypeToString;
69 
70 } // namespace experimental
71 } // namespace robotinterface
72 } // namespace yarp
73 
74 #endif // YARP_NO_DEPRECATED
75 
76 #endif // YARP_ROBOTINTERFACE_EXPERIMENTAL_TYPES_H
yarp::robotinterface::ActionList ActionList
Definition: Types.h:23
yarp::robotinterface::ParamList ParamList
Definition: Types.h:22
yarp::robotinterface::ThreadList ThreadList
Definition: Types.h:25
yarp::robotinterface::DeviceList DeviceList
Definition: Types.h:24
robotinterface::ParamList mergeDuplicateGroups(const robotinterface::ParamList &list)
Definition: Types.cpp:58
std::string ActionTypeToString(robotinterface::ActionType actiontype)
Definition: Types.cpp:147
bool hasParam(const robotinterface::ParamList &list, const std::string &name)
Definition: Types.cpp:16
std::string findGroup(const robotinterface::ParamList &list, const std::string &name)
Definition: Types.cpp:47
robotinterface::ActionPhase StringToActionPhase(const std::string &phase)
Definition: Types.cpp:81
robotinterface::ActionType StringToActionType(const std::string &type)
Definition: Types.cpp:126
bool hasGroup(const robotinterface::ParamList &list, const std::string &name)
Definition: Types.cpp:37
std::string findParam(const robotinterface::ParamList &list, const std::string &name)
Definition: Types.cpp:26
std::string ActionPhaseToString(robotinterface::ActionPhase actionphase)
Definition: Types.cpp:99
The main, catch-all namespace for YARP.
Definition: dirs.h:16
#define YARP_COMPILER_WARNING(x)
Generate a warning at build time on supported compilers.
Definition: system.h:111
#define YARP_DEPRECATED_TYPEDEF_MSG(x)
Definition: api.h:99