AuboStudio SDK  0.6.3
waypoint.h
浏览该文件的文档.
1#ifndef AUBO_SCOPE_WAYPOINT_H
2#define AUBO_SCOPE_WAYPOINT_H
3
4#include <vector>
5#include <string>
7
8namespace arcs {
9namespace aubo_scope {
11
12/**
13 * @ingroup ProgramApi
14 * \chinese
15 * 路点接口
16 * 此接口组合了定义机器人位置的参数。
17 * \endchinese
18 * \english
19 * Waypoint
20 * This interface composes parameters that define a position of the robot.
21 * \endenglish
22 */
24{
25public:
29
30 /**
31 * @ingroup Waypoint
32 * \chinese
33 * 获取路点显示名称
34 * @return 显示名称。
35 * \endchinese
36 * \english
37 * Returns the display name of the Waypoint.
38 * @return Display name.
39 * \endenglish
40 */
41 std::string getDisplayName();
42
43 /**
44 * @ingroup Waypoint
45 * \chinese
46 * 获取机器人位置的位姿(包含TCP偏移)
47 * @return 位姿。
48 * \endchinese
49 * \english
50 * Returns the pose for the position of the robot (including the TCP offset).
51 * @return the pose for the position of the robot.
52 * \endenglish
53 */
54 std::vector<double> getPose();
55
56 /**
57 * @ingroup Waypoint
58 * \chinese
59 * 获取与机器人位姿对应的关节位置(考虑TCP偏移)
60 * @return 关节位置。
61 * \endchinese
62 * \english
63 * Returns the joint positions corresponding to the pose of the robot (when
64 * taking the TCP offset into account).
65 * @return the joint positions.
66 * \endenglish
67 */
68 std::vector<double> getJointPositions();
69
70 /**
71 * @ingroup Waypoint
72 * \chinese
73 * 获取TCP偏移位姿(用于定义机器人位置)
74 * @return TCP偏移。
75 * \endchinese
76 * \english
77 * Returns the pose for the TCP offset (used when defining the robot
78 * position).
79 * @return the TCP offset.
80 * \endenglish
81 */
82 std::vector<double> getTcpOffset();
83
84 /**
85 * @ingroup Waypoint
86 * \chinese
87 * 检查路点是否已定义
88 * @return 是否已定义。
89 * \endchinese
90 * \english
91 * Returns whether the Waypoint is defined.
92 * @return <code>true</code> if defined.
93 * \endenglish
94 */
95 bool isDefined();
96
97 /**
98 * @ingroup Waypoint
99 * \chinese
100 * 获取哈希码
101 * @return 哈希码。
102 * \endchinese
103 * \english
104 * Returns the hash code of the Waypoint.
105 * @return the hash code.
106 * \endenglish
107 */
108 size_t hashCode();
109
110private:
111 friend class DataSwitch;
113 void *d_{ nullptr };
114};
115
116} // namespace aubo_scope
117} // namespace arcs
118
119#endif // AUBO_SCOPE_WAYPOINT_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...
\chinese 路点接口 此接口组合了定义机器人位置的参数。 \endchinese \english Waypoint This interface composes parameters that...
std::string getDisplayName()
\chinese 获取路点显示名称
size_t hashCode()
\chinese 获取哈希码
std::vector< double > getPose()
\chinese 获取机器人位置的位姿(包含TCP偏移)
std::vector< double > getJointPositions()
\chinese 获取与机器人位姿对应的关节位置(考虑TCP偏移)
std::vector< double > getTcpOffset()
\chinese 获取TCP偏移位姿(用于定义机器人位置)
bool isDefined()
\chinese 检查路点是否已定义