config

package
v0.3.45 Latest Latest
Warning

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

Go to latest
Published: May 28, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package config implements functions to assist with attribute evaluation in the SLAM service.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Camera         map[string]string `json:"camera"`
	MovementSensor map[string]string `json:"movement_sensor"`
	ConfigParams   map[string]string `json:"config_params"`

	ExistingMap   string `json:"existing_map"`
	EnableMapping *bool  `json:"enable_mapping"`
	UseCloudSlam  *bool  `json:"use_cloud_slam"`
}

Config describes how to configure the SLAM service.

func (*Config) Validate

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

Validate creates the list of implicit dependencies.

type OptionalConfigParams added in v0.3.25

type OptionalConfigParams struct {
	LidarDataFrequencyHz          int
	MovementSensorName            string
	MovementSensorDataFrequencyHz int
	EnableMapping                 bool
	ExistingMap                   string
}

OptionalConfigParams holds the optional config parameters of SLAM.

func GetOptionalParameters

func GetOptionalParameters(config *Config, defaultLidarDataFrequencyHz, defaultMovementSensorDataFrequencyHz int, logger logging.Logger,
) (OptionalConfigParams, error)

GetOptionalParameters sets any unset optional config parameters to the values passed to this function, and returns them.

Jump to

Keyboard shortcuts

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