apriltagarm

package module
v0.0.0-...-b693cb9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 16, 2026 License: Apache-2.0 Imports: 17 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

apriltag-arm

A Viam generic service module that allows a robot arm to move to pre-taught positions defined relative to AprilTag fiducial markers.

Models

  • viam-labs:service:apriltag-arm — teach and replay arm poses keyed to AprilTag IDs

DoCommand API

Command Required fields Description
save_pose name, tag_id Save current arm EEF pose relative to visible tag
delete_pose name or tag_id Remove a saved pose
move_to_pose name Move arm to saved pose using live tag detection

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

View Source
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.

func (*Config) Validate

func (c *Config) Validate(path string) ([]string, []string, error)

Validate checks required fields and returns resource dependency names.

type PixelPoint

type PixelPoint struct {
	X float64 `json:"x"`
	Y float64 `json:"y"`
}

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).

Directories

Path Synopsis
cmd
cli command
module command

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址