builtin

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2022 License: AGPL-3.0 Imports: 16 Imported by: 0

Documentation

Overview

Package builtin implements a remote control for a base.

Index

Constants

View Source
const (
	SubtypeName = resource.SubtypeName("base_remote_control")
)

Constants for the system including the max speed and angle (TBD: allow to be set as config vars) as well as the various control modes including oneJoystick (control via a joystick), triggerSpeed (triggers control speed and joystick angle), button (four buttons X, Y, A, B to control speed and angle) and arrow (arrows buttons used to control speed and angle).

Variables

This section is empty.

Functions

func NewBuiltIn

func NewBuiltIn(
	ctx context.Context,
	deps registry.Dependencies,
	config config.Service,
	logger golog.Logger,
) (baseremotecontrol.Service, error)

NewDefault returns a new remote control service for the given robot.

Types

type Config

type Config struct {
	BaseName            string  `json:"base"`
	InputControllerName string  `json:"input_controller"`
	ControlModeName     string  `json:"control_mode,omitempty"`
	MaxAngularVelocity  float64 `json:"max_angular_deg_per_sec,omitempty"`
	MaxLinearVelocity   float64 `json:"max_linear_mm_per_sec,omitempty"`
}

Config describes how to configure the service.

func (*Config) Validate added in v0.2.0

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

Validate creates the list of implicit dependencies.

Jump to

Keyboard shortcuts

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