baseremotecontrol

package
v0.50.0 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2024 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Overview

Package baseremotecontrol implements a remote control for a base. For more information, see the base remote control service docs.

Index

Constants

View Source
const SubtypeName = "base_remote_control"

SubtypeName is the name of the type of service.

Variables

View Source
var API = resource.APINamespaceRDK.WithServiceType(SubtypeName)

API is a variable that identifies the remote control resource API.

Functions

func Named added in v0.1.0

func Named(name string) resource.Name

Named is a helper for getting the named base remote control service's typed resource name.

Types

type Service added in v0.1.0

type Service interface {
	resource.Resource
	// Close out of all remote control related systems.
	Close(ctx context.Context) error
	// controllerInputs returns the list of inputs from the controller that are being monitored for that control mode.
	ControllerInputs() []input.Control
}

A Service is the basis for the base remote control. For more information, see the base remote control service docs.

Close example:

// Close out of all remote control-related systems.
err := baseRCService.Close(context.Background())

ControllerInputs example:

// Get the list of inputs from the controller that are being monitored for that control mode.
inputs := baseRCService.ControllerInputs()

func FromRobot added in v0.27.0

func FromRobot(r robot.Robot, name string) (Service, error)

FromRobot is a helper for getting the named base remote control service from the given Robot.

Directories

Path Synopsis
Package builtin implements a remote control for a base.
Package builtin implements a remote control for a base.
Package register registers all relevant baseremotecontrol models and also API specific functions
Package register registers all relevant baseremotecontrol models and also API specific functions

Jump to

Keyboard shortcuts

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