Documentation
¶
Overview ¶
Package apriltagarm implements a Viam generic service module that allows a robot arm to move to pre-taught positions defined relative to AprilTag fiducial markers. See cmd/module/main.go for the binary entry point.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var Model = resource.NewModel("viam-labs", "service", "apriltag-arm")
Model is the Viam model triple for this service.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
PoseTrackerName string `json:"pose_tracker_name"`
ArmName string `json:"arm_name"`
MotionServiceName string `json:"motion_service_name"`
CameraName string `json:"camera_name,omitempty"`
SavedPoses map[string]SavedPose `json:"saved_poses"`
}
Config holds the module configuration as stored in the Viam machine config.
type PixelPoint ¶
PixelPoint is a 2-D image coordinate in pixels.
type SavedPose ¶
type SavedPose struct {
TagID int `json:"tag_id"`
Point r3.Vector `json:"point"`
Orientation spatialmath.OrientationVectorDegrees `json:"orientation"`
TagPixelCenter *PixelPoint `json:"tag_pixel_center,omitempty"`
}
SavedPose stores an arm end-effector pose as an offset relative to an AprilTag. Point and Orientation together describe the transform from the tag's world-frame pose to the desired arm EEF world-frame pose. TagPixelCenter is the projected image coordinate of the tag centre at save time (populated only when camera_name is configured).