pb_module_outputs

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_outputs_camera_proto protoreflect.FileDescriptor
View Source
var File_outputs_controller_proto protoreflect.FileDescriptor
View Source
var File_outputs_distance_proto protoreflect.FileDescriptor
View Source
var File_outputs_speed_proto protoreflect.FileDescriptor
View Source
var File_outputs_wrapper_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type CameraSensorOutput

type CameraSensorOutput struct {

	// dimensions of the image
	Width  uint32 `protobuf:"varint,1,opt,name=width,proto3" json:"width,omitempty"`
	Height uint32 `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"`
	// the image data, an array of byte arrays
	// e.g. if you have an RGB image, you will receive [ [redByte1, redByte2, ...], [greenByte1, greenByte2, ...], [blueByte1, blueByte2, ...] ]
	Channels [][]byte `protobuf:"bytes,3,rep,name=channels,proto3" json:"channels,omitempty"`
	Canvas   *Canvas  `protobuf:"bytes,4,opt,name=canvas,proto3" json:"canvas,omitempty"` // used for debugging
	// contains filtered or unexported fields
}

The following sensor outputs are specific to the sensor type, bring your own sensor and add your own output here!

func (*CameraSensorOutput) Descriptor deprecated

func (*CameraSensorOutput) Descriptor() ([]byte, []int)

Deprecated: Use CameraSensorOutput.ProtoReflect.Descriptor instead.

func (*CameraSensorOutput) GetCanvas

func (x *CameraSensorOutput) GetCanvas() *Canvas

func (*CameraSensorOutput) GetChannels

func (x *CameraSensorOutput) GetChannels() [][]byte

func (*CameraSensorOutput) GetHeight

func (x *CameraSensorOutput) GetHeight() uint32

func (*CameraSensorOutput) GetWidth

func (x *CameraSensorOutput) GetWidth() uint32

func (*CameraSensorOutput) ProtoMessage

func (*CameraSensorOutput) ProtoMessage()

func (*CameraSensorOutput) ProtoReflect

func (x *CameraSensorOutput) ProtoReflect() protoreflect.Message

func (*CameraSensorOutput) Reset

func (x *CameraSensorOutput) Reset()

func (*CameraSensorOutput) String

func (x *CameraSensorOutput) String() string

type Canvas

type Canvas struct {
	Width   uint32          `protobuf:"varint,1,opt,name=width,proto3" json:"width,omitempty"`
	Height  uint32          `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"`
	Objects []*CanvasObject `protobuf:"bytes,3,rep,name=objects,proto3" json:"objects,omitempty"`
	// contains filtered or unexported fields
}

func (*Canvas) Descriptor deprecated

func (*Canvas) Descriptor() ([]byte, []int)

Deprecated: Use Canvas.ProtoReflect.Descriptor instead.

func (*Canvas) GetHeight

func (x *Canvas) GetHeight() uint32

func (*Canvas) GetObjects

func (x *Canvas) GetObjects() []*CanvasObject

func (*Canvas) GetWidth

func (x *Canvas) GetWidth() uint32

func (*Canvas) ProtoMessage

func (*Canvas) ProtoMessage()

func (*Canvas) ProtoReflect

func (x *Canvas) ProtoReflect() protoreflect.Message

func (*Canvas) Reset

func (x *Canvas) Reset()

func (*Canvas) String

func (x *Canvas) String() string

type CanvasObject

type CanvasObject struct {

	// Types that are assignable to Object:
	//
	//	*CanvasObject_Line_
	//	*CanvasObject_Rectangle_
	//	*CanvasObject_Circle_
	Object isCanvasObject_Object `protobuf_oneof:"object"`
	// contains filtered or unexported fields
}

func (*CanvasObject) Descriptor deprecated

func (*CanvasObject) Descriptor() ([]byte, []int)

Deprecated: Use CanvasObject.ProtoReflect.Descriptor instead.

func (*CanvasObject) GetCircle

func (x *CanvasObject) GetCircle() *CanvasObject_Circle

func (*CanvasObject) GetLine

func (x *CanvasObject) GetLine() *CanvasObject_Line

func (*CanvasObject) GetObject

func (m *CanvasObject) GetObject() isCanvasObject_Object

func (*CanvasObject) GetRectangle

func (x *CanvasObject) GetRectangle() *CanvasObject_Rectangle

func (*CanvasObject) ProtoMessage

func (*CanvasObject) ProtoMessage()

func (*CanvasObject) ProtoReflect

func (x *CanvasObject) ProtoReflect() protoreflect.Message

func (*CanvasObject) Reset

func (x *CanvasObject) Reset()

func (*CanvasObject) String

func (x *CanvasObject) String() string

type CanvasObject_Circle

type CanvasObject_Circle struct {
	Center *CanvasObject_Point `protobuf:"bytes,1,opt,name=center,proto3" json:"center,omitempty"`
	Radius uint32              `protobuf:"varint,2,opt,name=radius,proto3" json:"radius,omitempty"`
	Width  uint32              `protobuf:"varint,3,opt,name=width,proto3" json:"width,omitempty"`
	Color  *CanvasObject_Color `protobuf:"bytes,4,opt,name=color,proto3" json:"color,omitempty"`
	// contains filtered or unexported fields
}

func (*CanvasObject_Circle) Descriptor deprecated

func (*CanvasObject_Circle) Descriptor() ([]byte, []int)

Deprecated: Use CanvasObject_Circle.ProtoReflect.Descriptor instead.

func (*CanvasObject_Circle) GetCenter

func (x *CanvasObject_Circle) GetCenter() *CanvasObject_Point

func (*CanvasObject_Circle) GetColor

func (x *CanvasObject_Circle) GetColor() *CanvasObject_Color

func (*CanvasObject_Circle) GetRadius

func (x *CanvasObject_Circle) GetRadius() uint32

func (*CanvasObject_Circle) GetWidth

func (x *CanvasObject_Circle) GetWidth() uint32

func (*CanvasObject_Circle) ProtoMessage

func (*CanvasObject_Circle) ProtoMessage()

func (*CanvasObject_Circle) ProtoReflect

func (x *CanvasObject_Circle) ProtoReflect() protoreflect.Message

func (*CanvasObject_Circle) Reset

func (x *CanvasObject_Circle) Reset()

func (*CanvasObject_Circle) String

func (x *CanvasObject_Circle) String() string

type CanvasObject_Circle_

type CanvasObject_Circle_ struct {
	Circle *CanvasObject_Circle `protobuf:"bytes,3,opt,name=circle,proto3,oneof"`
}

type CanvasObject_Color

type CanvasObject_Color struct {
	R uint32 `protobuf:"varint,1,opt,name=r,proto3" json:"r,omitempty"`
	G uint32 `protobuf:"varint,2,opt,name=g,proto3" json:"g,omitempty"`
	B uint32 `protobuf:"varint,3,opt,name=b,proto3" json:"b,omitempty"`
	A uint32 `protobuf:"varint,4,opt,name=a,proto3" json:"a,omitempty"`
	// contains filtered or unexported fields
}

func (*CanvasObject_Color) Descriptor deprecated

func (*CanvasObject_Color) Descriptor() ([]byte, []int)

Deprecated: Use CanvasObject_Color.ProtoReflect.Descriptor instead.

func (*CanvasObject_Color) GetA

func (x *CanvasObject_Color) GetA() uint32

func (*CanvasObject_Color) GetB

func (x *CanvasObject_Color) GetB() uint32

func (*CanvasObject_Color) GetG

func (x *CanvasObject_Color) GetG() uint32

func (*CanvasObject_Color) GetR

func (x *CanvasObject_Color) GetR() uint32

func (*CanvasObject_Color) ProtoMessage

func (*CanvasObject_Color) ProtoMessage()

func (*CanvasObject_Color) ProtoReflect

func (x *CanvasObject_Color) ProtoReflect() protoreflect.Message

func (*CanvasObject_Color) Reset

func (x *CanvasObject_Color) Reset()

func (*CanvasObject_Color) String

func (x *CanvasObject_Color) String() string

type CanvasObject_Line

type CanvasObject_Line struct {
	Start *CanvasObject_Point `protobuf:"bytes,1,opt,name=start,proto3" json:"start,omitempty"`
	End   *CanvasObject_Point `protobuf:"bytes,2,opt,name=end,proto3" json:"end,omitempty"`
	Width uint32              `protobuf:"varint,3,opt,name=width,proto3" json:"width,omitempty"`
	Color *CanvasObject_Color `protobuf:"bytes,4,opt,name=color,proto3" json:"color,omitempty"`
	// contains filtered or unexported fields
}

func (*CanvasObject_Line) Descriptor deprecated

func (*CanvasObject_Line) Descriptor() ([]byte, []int)

Deprecated: Use CanvasObject_Line.ProtoReflect.Descriptor instead.

func (*CanvasObject_Line) GetColor

func (x *CanvasObject_Line) GetColor() *CanvasObject_Color

func (*CanvasObject_Line) GetEnd

func (*CanvasObject_Line) GetStart

func (x *CanvasObject_Line) GetStart() *CanvasObject_Point

func (*CanvasObject_Line) GetWidth

func (x *CanvasObject_Line) GetWidth() uint32

func (*CanvasObject_Line) ProtoMessage

func (*CanvasObject_Line) ProtoMessage()

func (*CanvasObject_Line) ProtoReflect

func (x *CanvasObject_Line) ProtoReflect() protoreflect.Message

func (*CanvasObject_Line) Reset

func (x *CanvasObject_Line) Reset()

func (*CanvasObject_Line) String

func (x *CanvasObject_Line) String() string

type CanvasObject_Line_

type CanvasObject_Line_ struct {
	Line *CanvasObject_Line `protobuf:"bytes,1,opt,name=line,proto3,oneof"`
}

type CanvasObject_Point

type CanvasObject_Point struct {
	X uint32 `protobuf:"varint,1,opt,name=x,proto3" json:"x,omitempty"`
	Y uint32 `protobuf:"varint,2,opt,name=y,proto3" json:"y,omitempty"`
	// contains filtered or unexported fields
}

func (*CanvasObject_Point) Descriptor deprecated

func (*CanvasObject_Point) Descriptor() ([]byte, []int)

Deprecated: Use CanvasObject_Point.ProtoReflect.Descriptor instead.

func (*CanvasObject_Point) GetX

func (x *CanvasObject_Point) GetX() uint32

func (*CanvasObject_Point) GetY

func (x *CanvasObject_Point) GetY() uint32

func (*CanvasObject_Point) ProtoMessage

func (*CanvasObject_Point) ProtoMessage()

func (*CanvasObject_Point) ProtoReflect

func (x *CanvasObject_Point) ProtoReflect() protoreflect.Message

func (*CanvasObject_Point) Reset

func (x *CanvasObject_Point) Reset()

func (*CanvasObject_Point) String

func (x *CanvasObject_Point) String() string

type CanvasObject_Rectangle

type CanvasObject_Rectangle struct {
	TopLeft     *CanvasObject_Point `protobuf:"bytes,1,opt,name=topLeft,proto3" json:"topLeft,omitempty"`
	BottomRight *CanvasObject_Point `protobuf:"bytes,2,opt,name=bottomRight,proto3" json:"bottomRight,omitempty"`
	Width       uint32              `protobuf:"varint,3,opt,name=width,proto3" json:"width,omitempty"`
	Color       *CanvasObject_Color `protobuf:"bytes,4,opt,name=color,proto3" json:"color,omitempty"`
	// contains filtered or unexported fields
}

func (*CanvasObject_Rectangle) Descriptor deprecated

func (*CanvasObject_Rectangle) Descriptor() ([]byte, []int)

Deprecated: Use CanvasObject_Rectangle.ProtoReflect.Descriptor instead.

func (*CanvasObject_Rectangle) GetBottomRight

func (x *CanvasObject_Rectangle) GetBottomRight() *CanvasObject_Point

func (*CanvasObject_Rectangle) GetColor

func (*CanvasObject_Rectangle) GetTopLeft

func (x *CanvasObject_Rectangle) GetTopLeft() *CanvasObject_Point

func (*CanvasObject_Rectangle) GetWidth

func (x *CanvasObject_Rectangle) GetWidth() uint32

func (*CanvasObject_Rectangle) ProtoMessage

func (*CanvasObject_Rectangle) ProtoMessage()

func (*CanvasObject_Rectangle) ProtoReflect

func (x *CanvasObject_Rectangle) ProtoReflect() protoreflect.Message

func (*CanvasObject_Rectangle) Reset

func (x *CanvasObject_Rectangle) Reset()

func (*CanvasObject_Rectangle) String

func (x *CanvasObject_Rectangle) String() string

type CanvasObject_Rectangle_

type CanvasObject_Rectangle_ struct {
	Rectangle *CanvasObject_Rectangle `protobuf:"bytes,2,opt,name=rectangle,proto3,oneof"`
}

type ControllerOutput

type ControllerOutput struct {

	// timestamp of the message
	Timestamp uint64 `protobuf:"varint,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// Steering angle (-1.0 to 1.0 <-> left - right)
	SteeringAngle float32 `protobuf:"fixed32,2,opt,name=steeringAngle,proto3" json:"steeringAngle,omitempty"`
	// Throttle (-1.0 to 1.0 <-> full reverse - full forward)
	LeftThrottle  float32 `protobuf:"fixed32,3,opt,name=leftThrottle,proto3" json:"leftThrottle,omitempty"`
	RightThrottle float32 `protobuf:"fixed32,4,opt,name=rightThrottle,proto3" json:"rightThrottle,omitempty"`
	// Onboard lights (0.0 to 1.0 <-> off - on)
	FrontLights bool `protobuf:"varint,5,opt,name=frontLights,proto3" json:"frontLights,omitempty"`
	// contains filtered or unexported fields
}

func (*ControllerOutput) Descriptor deprecated

func (*ControllerOutput) Descriptor() ([]byte, []int)

Deprecated: Use ControllerOutput.ProtoReflect.Descriptor instead.

func (*ControllerOutput) GetFrontLights

func (x *ControllerOutput) GetFrontLights() bool

func (*ControllerOutput) GetLeftThrottle

func (x *ControllerOutput) GetLeftThrottle() float32

func (*ControllerOutput) GetRightThrottle

func (x *ControllerOutput) GetRightThrottle() float32

func (*ControllerOutput) GetSteeringAngle

func (x *ControllerOutput) GetSteeringAngle() float32

func (*ControllerOutput) GetTimestamp

func (x *ControllerOutput) GetTimestamp() uint64

func (*ControllerOutput) ProtoMessage

func (*ControllerOutput) ProtoMessage()

func (*ControllerOutput) ProtoReflect

func (x *ControllerOutput) ProtoReflect() protoreflect.Message

func (*ControllerOutput) Reset

func (x *ControllerOutput) Reset()

func (*ControllerOutput) String

func (x *ControllerOutput) String() string

type DistanceSensorOutput

type DistanceSensorOutput struct {

	// distance in meters
	Distance float32 `protobuf:"fixed32,1,opt,name=distance,proto3" json:"distance,omitempty"`
	// contains filtered or unexported fields
}

func (*DistanceSensorOutput) Descriptor deprecated

func (*DistanceSensorOutput) Descriptor() ([]byte, []int)

Deprecated: Use DistanceSensorOutput.ProtoReflect.Descriptor instead.

func (*DistanceSensorOutput) GetDistance

func (x *DistanceSensorOutput) GetDistance() float32

func (*DistanceSensorOutput) ProtoMessage

func (*DistanceSensorOutput) ProtoMessage()

func (*DistanceSensorOutput) ProtoReflect

func (x *DistanceSensorOutput) ProtoReflect() protoreflect.Message

func (*DistanceSensorOutput) Reset

func (x *DistanceSensorOutput) Reset()

func (*DistanceSensorOutput) String

func (x *DistanceSensorOutput) String() string

type SensorOutput

type SensorOutput struct {

	// Every sensor has a unique ID to support multiple sensors of the same type
	SensorId uint32 `protobuf:"varint,1,opt,name=sensorId,proto3" json:"sensorId,omitempty"`
	// Add a timestamp to the output to make debugging, logging and synchronisation easier
	Timestamp uint64 `protobuf:"varint,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// Report an error if the sensor is not working correctly (controller can decide to ignore or stop the car)
	// 0 = no error, any other value = error
	Status uint32 `protobuf:"varint,3,opt,name=status,proto3" json:"status,omitempty"`
	// Add the output here to make it available to the receiver
	//
	// Types that are assignable to SensorOutput:
	//
	//	*SensorOutput_CameraOutput
	//	*SensorOutput_DistanceOutput
	//	*SensorOutput_SpeedOutput
	//	*SensorOutput_ControllerOutput
	SensorOutput isSensorOutput_SensorOutput `protobuf_oneof:"sensorOutput"`
	// contains filtered or unexported fields
}

func (*SensorOutput) Descriptor deprecated

func (*SensorOutput) Descriptor() ([]byte, []int)

Deprecated: Use SensorOutput.ProtoReflect.Descriptor instead.

func (*SensorOutput) GetCameraOutput

func (x *SensorOutput) GetCameraOutput() *CameraSensorOutput

func (*SensorOutput) GetControllerOutput

func (x *SensorOutput) GetControllerOutput() *ControllerOutput

func (*SensorOutput) GetDistanceOutput

func (x *SensorOutput) GetDistanceOutput() *DistanceSensorOutput

func (*SensorOutput) GetSensorId

func (x *SensorOutput) GetSensorId() uint32

func (*SensorOutput) GetSensorOutput

func (m *SensorOutput) GetSensorOutput() isSensorOutput_SensorOutput

func (*SensorOutput) GetSpeedOutput

func (x *SensorOutput) GetSpeedOutput() *SpeedSensorOutput

func (*SensorOutput) GetStatus

func (x *SensorOutput) GetStatus() uint32

func (*SensorOutput) GetTimestamp

func (x *SensorOutput) GetTimestamp() uint64

func (*SensorOutput) ProtoMessage

func (*SensorOutput) ProtoMessage()

func (*SensorOutput) ProtoReflect

func (x *SensorOutput) ProtoReflect() protoreflect.Message

func (*SensorOutput) Reset

func (x *SensorOutput) Reset()

func (*SensorOutput) String

func (x *SensorOutput) String() string

type SensorOutput_CameraOutput

type SensorOutput_CameraOutput struct {
	CameraOutput *CameraSensorOutput `protobuf:"bytes,4,opt,name=cameraOutput,proto3,oneof"`
}

type SensorOutput_ControllerOutput

type SensorOutput_ControllerOutput struct {
	ControllerOutput *ControllerOutput `protobuf:"bytes,7,opt,name=controllerOutput,proto3,oneof"`
}

type SensorOutput_DistanceOutput

type SensorOutput_DistanceOutput struct {
	DistanceOutput *DistanceSensorOutput `protobuf:"bytes,5,opt,name=distanceOutput,proto3,oneof"`
}

type SensorOutput_SpeedOutput

type SensorOutput_SpeedOutput struct {
	SpeedOutput *SpeedSensorOutput `protobuf:"bytes,6,opt,name=speedOutput,proto3,oneof"`
}

type SpeedSensorOutput

type SpeedSensorOutput struct {
	Rpm int32 `protobuf:"varint,1,opt,name=rpm,proto3" json:"rpm,omitempty"`
	// contains filtered or unexported fields
}

func (*SpeedSensorOutput) Descriptor deprecated

func (*SpeedSensorOutput) Descriptor() ([]byte, []int)

Deprecated: Use SpeedSensorOutput.ProtoReflect.Descriptor instead.

func (*SpeedSensorOutput) GetRpm

func (x *SpeedSensorOutput) GetRpm() int32

func (*SpeedSensorOutput) ProtoMessage

func (*SpeedSensorOutput) ProtoMessage()

func (*SpeedSensorOutput) ProtoReflect

func (x *SpeedSensorOutput) ProtoReflect() protoreflect.Message

func (*SpeedSensorOutput) Reset

func (x *SpeedSensorOutput) Reset()

func (*SpeedSensorOutput) String

func (x *SpeedSensorOutput) String() string

Jump to

Keyboard shortcuts

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