replay

package
v0.25.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: AGPL-3.0 Imports: 22 Imported by: 3

Documentation

Overview

Package replay implements a replay movement sensor that can return motion data.

Index

Constants

This section is empty.

Variables

View Source
var (

	// ErrEndOfDataset represents that the replay sensor has reached the end of the dataset.
	ErrEndOfDataset = errors.New("reached end of dataset")
)

Functions

This section is empty.

Types

type Config

type Config struct {
	Source         string       `json:"source,omitempty"`
	RobotID        string       `json:"robot_id,omitempty"`
	LocationID     string       `json:"location_id,omitempty"`
	OrganizationID string       `json:"organization_id,omitempty"`
	Interval       TimeInterval `json:"time_interval,omitempty"`
	BatchSize      *uint64      `json:"batch_size,omitempty"`
	APIKey         string       `json:"api_key,omitempty"`
	APIKeyID       string       `json:"api_key_id,omitempty"`
}

Config describes how to configure the replay movement sensor.

func (*Config) Validate

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

Validate checks that the config attributes are valid for a replay movement sensor.

type TimeInterval

type TimeInterval struct {
	Start string `json:"start,omitempty"`
	End   string `json:"end,omitempty"`
}

TimeInterval holds the start and end time used to filter data.

Jump to

Keyboard shortcuts

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