Documentation ¶
Index ¶
- type FrameSource
- type Gateway
- func (g *Gateway) Close() error
- func (g *Gateway) Start() error
- func (g *Gateway) Stop()
- func (g *Gateway) SubscribeFrame() <-chan *events.FrameMessage
- func (g *Gateway) SubscribeSteering() <-chan *events.SteeringMessage
- func (g *Gateway) SubscribeThrottle() <-chan *events.ThrottleMessage
- func (g *Gateway) WriteSteering(message *events.SteeringMessage)
- func (g *Gateway) WriteThrottle(message *events.ThrottleMessage)
- type SimulatorSource
- type SteeringSource
- type ThrottleSource
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) 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
}
Click to show internal directories.
Click to hide internal directories.