lidar

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package lidar provides methods to invoke procedures in the LiDAR service.

From service docs: laserDist service.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Laser

type Laser struct {
	service.BaseClass
}

Laser - a LaserDist laser.

func NewLaser

func NewLaser(id uint64, client *krpcgo.KRPCClient) *Laser

NewLaser creates a new Laser.

func (*Laser) Cloud

func (s *Laser) Cloud() ([]float64, error)

Cloud - get the point cloud from the LiDAR. Returns an empty list on failure.

Allowed game scenes: any.

func (*Laser) CloudStream

func (s *Laser) CloudStream() (*krpcgo.Stream[[]float64], error)

CloudStream - get the point cloud from the LiDAR. Returns an empty list on failure.

Allowed game scenes: any.

func (*Laser) Part

func (s *Laser) Part() (*spacecenter.Part, error)

Part - get the part containing this LiDAR.

Allowed game scenes: any.

type LiDAR

type LiDAR struct {
	Client *krpcgo.KRPCClient
}

LiDAR - laserDist service.

func New

func New(client *krpcgo.KRPCClient) *LiDAR

New creates a new LiDAR.

func (*LiDAR) Available

func (s *LiDAR) Available() (bool, error)

Available - check if the LaserDist API is available.

Allowed game scenes: any.

func (*LiDAR) AvailableStream

func (s *LiDAR) AvailableStream() (*krpcgo.Stream[bool], error)

AvailableStream - check if the LaserDist API is available.

Allowed game scenes: any.

func (*LiDAR) Laser

func (s *LiDAR) Laser(part *spacecenter.Part) (*Laser, error)

Laser - get a LaserDist part.

Allowed game scenes: any.

Jump to

Keyboard shortcuts

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