builtin

package
v0.2.14 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2023 License: AGPL-3.0 Imports: 17 Imported by: 0

Documentation

Overview

Package builtin implements a remote control for a base.

Index

Constants

This section is empty.

Variables

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