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
34
35/**
36 * @defgroup SystemApi SystemApi(系统信息)
37 * @ingroup SystemApi
38 * SystemApi
39 */
40
42{
43public:
46 virtual ~SystemApi();
47
48 /**
49 * @ingroup SystemApi
50 * @return the major version of Software.
51 */
53
54 /**
55 * @ingroup SystemApi
56 * @return the minor version of Software.
57 */
59
60 /**
61 * @ingroup SystemApi
62 * @return the bug fix version of Software.
63 */
65
66 /**
67 * @ingroup SystemApi
68 * @return the build number of Software.
69 */
71
72 /**
73 * @ingroup SystemApi
74 * Returns the {@link Locale} for the system.
75 *
76 * @return Locale.
77 */
78 std::string getLocale();
79
80 /**
81 * @ingroup SystemApi
82 * Returns the {@link Locale} for the programming language used in the
83 * system.
84 *
85 * @return Locale.
86 */
88
89 /**
90 * @ingroup SystemApi
91 * Returns the UnitType of the system as an enum.
92 *
93 * @return UnitType.
94 */
96
97 /**
98 * @ingroup SystemApi
99 *
100 * @return the serial number of the robot
101 */
102 std::string getSerialNumber();
103
104 /**
105 * @ingroup SystemApi
106 * @return <code>true</code> if controlling the real, physical robot and
107 * <code>false</code> if in simulation mode.
108 */
110
111 /**
112 * @ingroup SystemApi
113 * @return Max Positions of robot joints in radian
114 */
115 std::vector<double> getJointMaxPositions();
116
117 /**
118 * @ingroup SystemApi
119 * @brief getJointMinPositions
120 * @return
121 */
122 std::vector<double> getJointMinPositions();
123
124 /**
125 * @ingroup SystemApi
126 * @brief getJointDefaultVelocity
127 * @return
128 */
130
131 /**
132 * @ingroup SystemApi
133 * @brief getJointDefaultAcceleration
134 * @return
135 */
137
138 /**
139 * @ingroup SystemApi
140 * @brief getJointMaxVelocity
141 * @return
142 */
143 std::vector<double> getJointMaxVelocity();
144
145 /**
146 * @ingroup SystemApi
147 * @brief getJointMaxAcceleration
148 * @return
149 */
150 std::vector<double> getJointMaxAcceleration();
151
152 /**
153 * @ingroup SystemApi
154 * @brief getTcpDefaultVelocity
155 * @return
156 */
158
159 /**
160 * @ingroup SystemApi
161 * @brief getTcpDefaultAcceleration
162 * @return
163 */
165
166 /**
167 * @ingroup SystemApi
168 * @brief getTcpMaxVelocity
169 * @return
170 */
172
173 /**
174 * @ingroup SystemApi
175 * @brief getTcpMaxAcceleration
176 * @return
177 */
179
180 /**
181 * @ingroup SystemApi
182 * @brief getTcpMaxDistance
183 * @return
184 */
186
187 /**
188 * @ingroup SystemApi
189 * @brief getMaxPayloadMass
190 * @return
191 */
193
194 /**
195 * @ingroup SystemApi
196 * @brief getMaxPayloadDistance
197 * @return
198 */
200
201 /**
202 * @ingroup SystemApi
203 * @brief getHomeDefaultPosition
204 * @return
205 */
206 std::vector<double> getHomeDefaultPosition();
207
208 /**
209 * @ingroup SystemApi
210 * @brief getHomePackagePosition
211 * @return
212 */
213 std::vector<double> getHomePackagePosition();
214
215 /**
216 * @ingroup SystemApi
217 * @brief getRobotDhParams
218 * @param is_real
219 * @return
220 */
221 std::unordered_map<std::string, std::vector<double>> getRobotDhParams(
222 bool is_real);
223
224 /**
225 * @ingroup SystemApi
226 * @brief getToolDigitalIOConfigure
227 * @return
228 */
230
231 /**
232 * @ingroup SystemApi
233 * @brief getStandardDigitalInputConfigure
234 * @return
235 */
237
238 /**
239 * @ingroup SystemApi
240 * @brief getConfigurableDigitalInputConfigure
241 * @return
242 */
244
245 /**
246 * @ingroup SystemApi
247 * @brief getStandardDigitalOutputConfigure
248 * @return
249 */
251
252 /**
253 * @ingroup SystemApi
254 * @brief getConfigurableDigitalOutputConfigure
255 * @return
256 */
258
259 /**
260 * @ingroup SystemApi
261 * @brief getStandardAnalogInputConfigure
262 * @return
263 */
265
266 /**
267 * @ingroup SystemApi
268 * @brief getToolAnalogInputConfigure
269 * @return
270 */
272
273 /**
274 * @ingroup SystemApi
275 * @brief getStandardAnalogOutputConfigure
276 * @return
277 */
279
280 /**
281 * @ingroup SystemApi
282 * @brief getToolAnalogOutputConfigure
283 * @return
284 */
286
287 /**
288 * @ingroup SystemApi
289 * @brief getStaticLinkInputConfigure
290 * @return
291 */
293
294 /**
295 * @ingroup SystemApi
296 * @brief getStaticLinkOutputConfigure
297 * @return
298 */
300
301 /**
302 * @ingroup SystemApi
303 * @brief getENCConfigure
304 * @return
305 */
307
308private:
309 friend class DataSwitch;
311 void *d_{ nullptr };
312};
313
314} // namespace aubo_scope
315} // namespace arcs
316
317#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()
getHomePackagePosition
IoConfigure getToolAnalogOutputConfigure()
getToolAnalogOutputConfigure
std::vector< double > getJointMaxAcceleration()
getJointMaxAcceleration
IoConfigure getStaticLinkInputConfigure()
getStaticLinkInputConfigure
std::vector< double > getJointMinPositions()
getJointMinPositions
IoConfigure getToolDigitalIOConfigure()
getToolDigitalIOConfigure
std::vector< double > getJointMaxPositions()
IoConfigure getENCConfigure()
getENCConfigure
UnitType getUnitType()
Returns the UnitType of the system as an enum.
IoConfigure getStaticLinkOutputConfigure()
getStaticLinkOutputConfigure
std::vector< double > getJointMaxVelocity()
getJointMaxVelocity
double getMaxPayloadDistance()
getMaxPayloadDistance
double getMaxPayloadMass()
getMaxPayloadMass
IoConfigure getConfigurableDigitalInputConfigure()
getConfigurableDigitalInputConfigure
double getTcpDefaultAcceleration()
getTcpDefaultAcceleration
IoConfigure getToolAnalogInputConfigure()
getToolAnalogInputConfigure
double getTcpMaxAcceleration()
getTcpMaxAcceleration
double getJointDefaultVelocity()
getJointDefaultVelocity
IoConfigure getStandardAnalogInputConfigure()
getStandardAnalogInputConfigure
std::unordered_map< std::string, std::vector< double > > getRobotDhParams(bool is_real)
getRobotDhParams
std::string getLocale()
Returns the Locale for the system.
IoConfigure getConfigurableDigitalOutputConfigure()
getConfigurableDigitalOutputConfigure
IoConfigure getStandardDigitalInputConfigure()
getStandardDigitalInputConfigure
IoConfigure getStandardDigitalOutputConfigure()
getStandardDigitalOutputConfigure
double getJointDefaultAcceleration()
getJointDefaultAcceleration
std::vector< double > getHomeDefaultPosition()
getHomeDefaultPosition
IoConfigure getStandardAnalogOutputConfigure()
getStandardAnalogOutputConfigure
double getTcpDefaultVelocity()
getTcpDefaultVelocity
double getTcpMaxVelocity()
getTcpMaxVelocity
double getTcpMaxDistance()
getTcpMaxDistance
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