xarm

package
v0.47.1 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2024 License: AGPL-3.0 Imports: 21 Imported by: 0

Documentation

Overview

Package xarm implements some UFactory arms (xArm 6, xArm 7, and Lite 6).

Index

Constants

View Source
const (
	ModelName6DOF = "xArm6" // ModelName6DOF is the name of a UFactory xArm 6
	ModelName7DOF = "xArm7" // ModelName7DOF is the name of a UFactory xArm 7
	ModelNameLite = "lite6" // ModelNameLite is the name of a UFactory Lite 6
)

Variables

This section is empty.

Functions

func MakeModelFrame added in v0.2.36

func MakeModelFrame(name, modelName string) (referenceframe.Model, error)

MakeModelFrame returns the kinematics model of the xarm arm, which has all Frame information.

func NewxArm

func NewxArm(ctx context.Context, conf resource.Config, logger logging.Logger, modelName string) (arm.Arm, error)

NewxArm returns a new xArm of the specified modelName.

Types

type Config added in v0.2.36

type Config struct {
	Host         string  `json:"host"`
	Port         int     `json:"port,omitempty"`
	Speed        float32 `json:"speed_degs_per_sec,omitempty"`
	Acceleration float32 `json:"acceleration_degs_per_sec_per_sec,omitempty"`
}

Config is used for converting config attributes.

func (*Config) Validate added in v0.2.36

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

Validate validates the config.

Jump to

Keyboard shortcuts

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