AuboStudio SDK  0.6.3
device.h
浏览该文件的文档.
2
3namespace arcs {
4namespace aubo_scope {
6
7/**
8 * This base interface represents a device supported by AuboScope, e.g. a
9 * gripping device.
10 */
12{
13public:
14 virtual ~Device() = 0;
15 /**
16 * Get information about the AuboCap that added/contributed this gripper
17 * device to AuboScope.
18 *
19 * @return AuboCap information for this gripper device
20 */
21 virtual AuboCapInfoPtr getContributorInfo() = 0;
22
23 /**
24 * <p>
25 * Get the unique identifier (id) for this gripper. This can be used to
26 * identify this specific gripper among the set of individual grippers
27 * available in a specific multi-gripper device.
28 * </p>
29 *
30 * Note that this id is not "globally" unique, but only unique for the
31 * individual grippers belonging to a specific multi-gripper device.
32 *
33 * @return The unique identifier of this gripper
34 */
35 virtual std::string getId() = 0;
36
37 /**
38 * <p>
39 * The name of the gripper displayed in the AuboScope UI, e.g. in the
40 * Gripper toolbar and program node.
41 * </p>
42 *
43 * <b>Note:</b> This name must not be used to uniquely identify a specific
44 * individual gripper, since the name might be translated (depending on the
45 * selected language in AuboScope) or be changed between versions of the
46 * AuboCap that added the gripper.
47 *
48 * @return The name of this gripper displayed in AuboScope
49 */
50 virtual std::string getDisplayName() = 0;
51
52 /**
53 * A device cannot be guaranteed to be present in AuboScope. A device will
54 * not be present if the AuboCap that added the device is not installed.
55 * This method can be used to determine, if the device is present.
56 *
57 * @return <code>true</code> if this gripper device is present in AuboScope,
58 * otherwise <code>false</code>.
59 */
60 virtual bool isResolvable() = 0;
61};
62} // namespace aubo_scope
63} // namespace arcs
#define ARCS_ABI_EXPORT
#define ARCS_CLASS_FORWARD(C)
Macro that forward declares a class and defines the respective smartpointers through ARCS_DECLARE_PTR...
This base interface represents a device supported by AuboScope, e.g.
virtual std::string getId()=0
virtual AuboCapInfoPtr getContributorInfo()=0
Get information about the AuboCap that added/contributed this gripper device to AuboScope.
virtual bool isResolvable()=0
A device cannot be guaranteed to be present in AuboScope.
virtual std::string getDisplayName()=0