AuboStudio SDK  0.6.3
system_api.h
浏览该文件的文档.
1#ifndef AUBO_SCOPE_SYSTEM_API_H
2#define AUBO_SCOPE_SYSTEM_API_H
3
4#include <string>
5#include <vector>
6#include <unordered_map>
8
9namespace arcs {
10namespace aubo_scope {
11
12enum class UnitType
13{
14 METRIC, ///< 公制 mm Kg
15 IMPERIAL ///< 英制
16};
17
19{
20 std::string label;
21 int num;
22 std::vector<std::string> names;
23 std::vector<int> sequences;
24 std::vector<int> functions;
25 std::vector<int> safety_functions;
26 std::vector<int> safety_functions_fixed;
27 bool function_lock{ false };
28 std::vector<int> types;
29 std::vector<double> mins;
30 std::vector<double> maxs;
31};
32
35{
36public:
39 virtual ~SystemApi();
40
41 /**
42 *
43 * @return the major version of Software.
44 */
46
47 /**
48 *
49 * @return the minor version of Software.
50 */
52
53 /**
54 *
55 * @return the bug fix version of Software.
56 */
58
59 /**
60 *
61 * @return the build number of Software.
62 */
64
65 /**
66 * Returns the {@link Locale} for the system.
67 *
68 * @return Locale.
69 */
70 std::string getLocale();
71
72 /**
73 * Returns the {@link Locale} for the programming language used in the
74 * system.
75 *
76 * @return Locale.
77 */
79
80 /**
81 * Returns the UnitType of the system as an enum.
82 *
83 * @return UnitType.
84 */
86
87 /**
88 *
89 * @return the serial number of the robot
90 */
91 std::string getSerialNumber();
92
93 /**
94 * @return <code>true</code> if controlling the real, physical robot and
95 * <code>false</code> if in simulation mode.
96 */
98
99 /**
100 * @return Max Positions of robot joints in radian
101 */
102 std::vector<double> getJointMaxPositions();
103 std::vector<double> getJointMinPositions();
106 std::vector<double> getJointMaxVelocity();
107 std::vector<double> getJointMaxAcceleration();
108
114
117
118 std::vector<double> getHomeDefaultPosition();
119 std::vector<double> getHomePackagePosition();
120
121 std::unordered_map<std::string, std::vector<double>> getRobotDhParams(
122 bool is_real);
123
125
128
131
134
137
140
142
143private:
144 friend class DataSwitch;
146 void *d_{ nullptr };
147};
148
149} // namespace aubo_scope
150} // namespace arcs
151
152#endif // SYSTEMAPI_H
#define ARCS_ABI_EXPORT
#define ARCS_CLASS_FORWARD(C)
Macro that forward declares a class and defines the respective smartpointers through ARCS_DECLARE_PTR...
std::vector< double > getHomePackagePosition()
IoConfigure getToolAnalogOutputConfigure()
std::vector< double > getJointMaxAcceleration()
IoConfigure getStaticLinkInputConfigure()
std::vector< double > getJointMinPositions()
IoConfigure getToolDigitalIOConfigure()
std::vector< double > getJointMaxPositions()
UnitType getUnitType()
Returns the UnitType of the system as an enum.
IoConfigure getStaticLinkOutputConfigure()
std::vector< double > getJointMaxVelocity()
IoConfigure getConfigurableDigitalInputConfigure()
IoConfigure getToolAnalogInputConfigure()
IoConfigure getStandardAnalogInputConfigure()
std::unordered_map< std::string, std::vector< double > > getRobotDhParams(bool is_real)
std::string getLocale()
Returns the Locale for the system.
IoConfigure getConfigurableDigitalOutputConfigure()
IoConfigure getStandardDigitalInputConfigure()
IoConfigure getStandardDigitalOutputConfigure()
std::vector< double > getHomeDefaultPosition()
IoConfigure getStandardAnalogOutputConfigure()
std::string getLocaleForProgrammingLanguage()
Returns the Locale for the programming language used in the system.
std::vector< int > safety_functions_fixed
std::vector< int > safety_functions
std::vector< std::string > names