wheeled

package
v0.2.16 Latest Latest
Warning

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

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

Documentation

Overview

Package wheeled implements some bases, like a wheeled base.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateWheeledBase

func CreateWheeledBase(
	ctx context.Context,
	deps registry.Dependencies,
	config *Config,
	logger golog.Logger,
) (base.LocalBase, error)

CreateWheeledBase returns a new wheeled base defined by the given config.

Types

type Config

type Config struct {
	WidthMM              int      `json:"width_mm"`
	WheelCircumferenceMM int      `json:"wheel_circumference_mm"`
	SpinSlipFactor       float64  `json:"spin_slip_factor,omitempty"`
	Left                 []string `json:"left"`
	Right                []string `json:"right"`
}

Config is how you configure a wheeled base.

func (*Config) Validate

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

Validate ensures all parts of the config are valid.

Jump to

Keyboard shortcuts

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