File tree 8 files changed +48
-2
lines changed
8 files changed +48
-2
lines changed Original file line number Diff line number Diff line change 1
1
//go:build !no_cgo
2
2
3
3
// Package arm defines the arm that a robot uses to manipulate objects.
4
+ // For more information, see the [arm component docs].
5
+ //
6
+ // [arm component docs]: https://docs.viam.com/components/arm/
4
7
package arm
5
8
6
9
import (
@@ -48,6 +51,7 @@ func Named(name string) resource.Name {
48
51
}
49
52
50
53
// An Arm represents a physical robotic arm that exists in three-dimensional space.
54
+ // For more information, see the [arm component docs].
51
55
//
52
56
// EndPosition example:
53
57
//
@@ -87,6 +91,8 @@ func Named(name string) resource.Name {
87
91
//
88
92
// // Get the current position of each joint on the arm as JointPositions.
89
93
// pos, err := myArm.JointPositions(context.Background(), nil)
94
+ //
95
+ // [arm component docs]: https://docs.viam.com/components/arm/
90
96
type Arm interface {
91
97
resource.Resource
92
98
referenceframe.ModelFramer
Original file line number Diff line number Diff line change 1
1
// Package base defines the base that a robot uses to move around.
2
+ // For more information, see the [base component docs].
3
+ //
4
+ // [base component docs]: https://docs.viam.com/components/base/
2
5
package base
3
6
4
7
import (
@@ -34,6 +37,7 @@ func Named(name string) resource.Name {
34
37
}
35
38
36
39
// A Base represents a physical base of a robot.
40
+ // For more information, see the [base component docs].
37
41
//
38
42
// MoveStraight example:
39
43
//
@@ -93,6 +97,8 @@ func Named(name string) resource.Name {
93
97
//
94
98
// // Get the wheel circumference
95
99
// myBaseWheelCircumference := properties.WheelCircumferenceMeters
100
+ //
101
+ // [base component docs]: https://docs.viam.com/components/base/
96
102
type Base interface {
97
103
resource.Resource
98
104
resource.Actuator
Original file line number Diff line number Diff line change 2
2
// such as a Raspberry Pi.
3
3
//
4
4
// Besides the board itself, some other interfaces it defines are analog pins and digital interrupts.
5
+ // For more information, see the [board component docs].
6
+ //
7
+ // [board component docs]: https://docs.viam.com/components/board/
5
8
package board
6
9
7
10
import (
@@ -46,6 +49,7 @@ func Named(name string) resource.Name {
46
49
47
50
// A Board represents a physical general purpose board that contains various
48
51
// components such as analogs, and digital interrupts.
52
+ // For more information, see the [board component docs].
49
53
//
50
54
// AnalogByName example:
51
55
//
@@ -93,6 +97,8 @@ func Named(name string) resource.Name {
93
97
// }
94
98
//
95
99
// err = myBoard.StreamTicks(context.Background(), interrupts, ticksChan, nil)
100
+ //
101
+ // [board component docs]: https://docs.viam.com/components/board/
96
102
type Board interface {
97
103
resource.Resource
98
104
Original file line number Diff line number Diff line change 1
1
// Package camera defines an image capturing device.
2
+ // For more information, see the [camera component docs].
3
+ //
4
+ // [camera component docs]: https://docs.viam.com/components/camera/
2
5
package camera
3
6
4
7
import (
@@ -75,6 +78,7 @@ type Camera interface {
75
78
}
76
79
77
80
// A VideoSource represents anything that can capture frames.
81
+ // For more information, see the [camera component docs].
78
82
//
79
83
// Images example:
80
84
//
@@ -105,6 +109,8 @@ type Camera interface {
105
109
// myCamera, err := camera.FromRobot(machine, "my_camera")
106
110
//
107
111
// err = myCamera.Close(ctx)
112
+ //
113
+ // [camera component docs]: https://docs.viam.com/components/camera/
108
114
type VideoSource interface {
109
115
// Images is used for getting simultaneous images from different imagers,
110
116
// along with associated metadata (just timestamp for now). It's not for getting a time series of images from the same imager.
Original file line number Diff line number Diff line change 1
- // Package encoder implements the encoder component
1
+ // Package encoder implements the encoder component.
2
+ // For more information, see the [encoder component docs].
3
+ //
4
+ // [encoder component docs]: https://docs.viam.com/components/encoder/
2
5
package encoder
3
6
4
7
import (
@@ -58,6 +61,7 @@ func (t PositionType) String() string {
58
61
}
59
62
60
63
// A Encoder turns a position into a signal.
64
+ // For more information, see the [encoder component docs].
61
65
//
62
66
// Position example:
63
67
//
@@ -84,6 +88,8 @@ func (t PositionType) String() string {
84
88
//
85
89
// // Get whether the encoder returns position in ticks or degrees.
86
90
// properties, err := myEncoder.Properties(context.Background(), nil)
91
+ //
92
+ // [encoder component docs]: https://docs.viam.com/components/encoder/
87
93
type Encoder interface {
88
94
resource.Resource
89
95
Original file line number Diff line number Diff line change
1
+ // Package gantry defines a robotic gantry with one or multiple axes.
2
+ // For more information, see the [gantry component docs].
3
+ //
4
+ // [gantry component docs]: https://docs.viam.com/components/gantry/
1
5
package gantry
2
6
3
7
import (
@@ -41,6 +45,7 @@ func Named(name string) resource.Name {
41
45
}
42
46
43
47
// Gantry is used for controlling gantries of N axis.
48
+ // For more information, see the [gantry component docs].
44
49
//
45
50
// Position example:
46
51
//
@@ -74,6 +79,8 @@ func Named(name string) resource.Name {
74
79
// myGantry, err := gantry.FromRobot(machine, "my_gantry")
75
80
//
76
81
// myGantry.Home(context.Background(), nil)
82
+ //
83
+ // [gantry component docs]: https://docs.viam.com/components/gantry/
77
84
type Gantry interface {
78
85
resource.Resource
79
86
resource.Actuator
Original file line number Diff line number Diff line change 1
- // Package generic defines an abstract generic device and DoCommand() method
1
+ // Package generic defines an abstract generic device and DoCommand() method.
2
+ // For more information, see the [generic component docs].
3
+ //
4
+ // [generic component docs]: https://docs.viam.com/components/generic/
2
5
package generic
3
6
4
7
import (
Original file line number Diff line number Diff line change 1
1
// Package gripper defines a robotic gripper.
2
+ // For more information, see the [gripper component docs].
3
+ //
4
+ // [gripper component docs]: https://docs.viam.com/components/gripper/
2
5
package gripper
3
6
4
7
import (
@@ -34,6 +37,7 @@ func Named(name string) resource.Name {
34
37
}
35
38
36
39
// A Gripper represents a physical robotic gripper.
40
+ // For more information, see the [gripper component docs].
37
41
//
38
42
// Open example:
39
43
//
@@ -44,6 +48,8 @@ func Named(name string) resource.Name {
44
48
//
45
49
// // Grab with the gripper.
46
50
// grabbed, err := myGripper.Grab(context.Background(), nil)
51
+ //
52
+ // [gripper component docs]: https://docs.viam.com/components/gripper/
47
53
type Gripper interface {
48
54
resource.Resource
49
55
resource.Shaped
You can’t perform that action at this time.
0 commit comments