AuboStudio SDK  0.6.3
set_payload_node.h
浏览该文件的文档.
1#ifndef AUBO_SCOPE_SET_PAYLOAD_NODE_H
2#define AUBO_SCOPE_SET_PAYLOAD_NODE_H
3
4#include <vector>
6
7namespace arcs {
8namespace aubo_scope {
10
12{
13public:
14 /**
15 * This base interface represents a configuration of the Set Payload program
16 * node (i.e. a {@link SetPayloadNode}
17 * instance).
18 */
20 {
21 /**
22 * <p>
23 * A payload (from the installation) is selected.
24 * </p>
25 *
26 * The config instance can be cast to {@link
27 * SelectionPayloadNodeConfig}.
28 */
30
31 /**
32 * <p>
33 * Custom payload parameters are specified.
34 * </p>
35 *
36 * The config instance can be cast to {@link
37 * CustomParametersPayloadNodeConfig}.
38 */
40 };
41
44 virtual ~SetPayloadNode();
45
46 /**
47 * \chinese
48 * 返回配置类型。适当转换此实例以访问特定的 getter。
49 * @return 此配置的类型
50 * \endchinese
51 * \english
52 * This method returns the type of configuration. Cast this instance
53 * appropriately to have access to specific getters.
54 * @return The type of this config.
55 * \endenglish
56 */
59
60 /**
61 * \chinese
62 * @return 负载的总质量
63 * \endchinese
64 * \english
65 * @return The total mass of the payload
66 * \endenglish
67 */
68 double getMass();
69 void setMass(double mass);
70
71 /**
72 * \chinese
73 * 获取负载的重心(CoG)。它定义为工具输出法兰中心与附着负载重心之间的偏移量。
74 * @return 相对于工具输出法兰中心的负载重心(CoG)
75 * \endchinese
76 * \english
77 * Gets the payload's center of gravity (CoG), also referred to as center of
78 * mass. It is defined as the offset between the center of the tool output
79 * flange and the center of gravity of the attached payload.
80 * @return The center of gravity (CoG) of the payload relative to the center
81 * of the tool output flange
82 * \endenglish
83 */
84 std::vector<double> getCenterOfGravity();
85 void setCenterOfGravity(const std::vector<double> &cog);
86
87private:
88 friend class DataSwitch;
90 void *d_{ nullptr };
91};
92
93} // namespace aubo_scope
94} // namespace arcs
95#endif // AUBO_SCOPE_SET_PAYLOAD_NODE_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...
ConfigType getConfigType()
\chinese 返回配置类型。适当转换此实例以访问特定的 getter。
void setConfigType(ConfigType type)
ConfigType
This base interface represents a configuration of the Set Payload program node (i....
SetPayloadNode(SetPayloadNode &f)
SetPayloadNode(SetPayloadNode &&f)
void setCenterOfGravity(const std::vector< double > &cog)
std::vector< double > getCenterOfGravity()
\chinese 获取负载的重心(CoG)。它定义为工具输出法兰中心与附着负载重心之间的偏移量。