gateway

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2022 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FrameSource

type FrameSource interface {
	SubscribeFrame() <-chan *events.FrameMessage
}

type Gateway

type Gateway struct {
	// contains filtered or unexported fields
}

Gateway is Simulator interface to events gateway frames into events topicFrame

func New

func New(addressSimulator string, car *simulator.CarConfigMsg, racer *simulator.RacerBioMsg, camera *simulator.CamConfigMsg) (*Gateway, error)

func (*Gateway) Close

func (g *Gateway) Close() error

func (*Gateway) Start

func (g *Gateway) Start() error

func (*Gateway) Stop

func (g *Gateway) Stop()

func (*Gateway) SubscribeFrame

func (g *Gateway) SubscribeFrame() <-chan *events.FrameMessage

func (*Gateway) SubscribeSteering

func (g *Gateway) SubscribeSteering() <-chan *events.SteeringMessage

func (*Gateway) SubscribeThrottle

func (g *Gateway) SubscribeThrottle() <-chan *events.ThrottleMessage

func (*Gateway) WriteSteering

func (g *Gateway) WriteSteering(message *events.SteeringMessage)

func (*Gateway) WriteThrottle

func (g *Gateway) WriteThrottle(message *events.ThrottleMessage)

type SimulatorSource

type SimulatorSource interface {
	FrameSource
	SteeringSource
	ThrottleSource
}

type SteeringSource

type SteeringSource interface {
	SubscribeSteering() <-chan *events.SteeringMessage
}

type ThrottleSource

type ThrottleSource interface {
	SubscribeThrottle() <-chan *events.ThrottleMessage
}

Jump to

Keyboard shortcuts

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