vision

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2021 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_command_proto protoreflect.FileDescriptor
View Source
var File_common_proto protoreflect.FileDescriptor
View Source
var File_packet_proto protoreflect.FileDescriptor
View Source
var File_replacement_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Ball

type Ball struct {
	X  float64 `protobuf:"fixed64,1,opt,name=x,proto3" json:"x,omitempty"`
	Y  float64 `protobuf:"fixed64,2,opt,name=y,proto3" json:"y,omitempty"`
	Z  float64 `protobuf:"fixed64,3,opt,name=z,proto3" json:"z,omitempty"`
	Vx float64 `protobuf:"fixed64,4,opt,name=vx,proto3" json:"vx,omitempty"`
	Vy float64 `protobuf:"fixed64,5,opt,name=vy,proto3" json:"vy,omitempty"`
	Vz float64 `protobuf:"fixed64,6,opt,name=vz,proto3" json:"vz,omitempty"`
	// contains filtered or unexported fields
}

func (*Ball) Descriptor deprecated

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

Deprecated: Use Ball.ProtoReflect.Descriptor instead.

func (*Ball) GetVx

func (x *Ball) GetVx() float64

func (*Ball) GetVy

func (x *Ball) GetVy() float64

func (*Ball) GetVz

func (x *Ball) GetVz() float64

func (*Ball) GetX

func (x *Ball) GetX() float64

func (*Ball) GetY

func (x *Ball) GetY() float64

func (*Ball) GetZ

func (x *Ball) GetZ() float64

func (*Ball) ProtoMessage

func (*Ball) ProtoMessage()

func (*Ball) ProtoReflect

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

func (*Ball) Reset

func (x *Ball) Reset()

func (*Ball) String

func (x *Ball) String() string

type BallReplacement

type BallReplacement struct {
	X  float64 `protobuf:"fixed64,1,opt,name=x,proto3" json:"x,omitempty"`
	Y  float64 `protobuf:"fixed64,2,opt,name=y,proto3" json:"y,omitempty"`
	Vx float64 `protobuf:"fixed64,3,opt,name=vx,proto3" json:"vx,omitempty"`
	Vy float64 `protobuf:"fixed64,4,opt,name=vy,proto3" json:"vy,omitempty"`
	// contains filtered or unexported fields
}

func (*BallReplacement) Descriptor deprecated

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

Deprecated: Use BallReplacement.ProtoReflect.Descriptor instead.

func (*BallReplacement) GetVx

func (x *BallReplacement) GetVx() float64

func (*BallReplacement) GetVy

func (x *BallReplacement) GetVy() float64

func (*BallReplacement) GetX

func (x *BallReplacement) GetX() float64

func (*BallReplacement) GetY

func (x *BallReplacement) GetY() float64

func (*BallReplacement) ProtoMessage

func (*BallReplacement) ProtoMessage()

func (*BallReplacement) ProtoReflect

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

func (*BallReplacement) Reset

func (x *BallReplacement) Reset()

func (*BallReplacement) String

func (x *BallReplacement) String() string

type Command

type Command struct {
	Id         uint32  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Yellowteam bool    `protobuf:"varint,2,opt,name=yellowteam,proto3" json:"yellowteam,omitempty"`
	WheelLeft  float64 `protobuf:"fixed64,6,opt,name=wheel_left,json=wheelLeft,proto3" json:"wheel_left,omitempty"`
	WheelRight float64 `protobuf:"fixed64,7,opt,name=wheel_right,json=wheelRight,proto3" json:"wheel_right,omitempty"`
	// contains filtered or unexported fields
}

func (*Command) Descriptor deprecated

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

Deprecated: Use Command.ProtoReflect.Descriptor instead.

func (*Command) GetId

func (x *Command) GetId() uint32

func (*Command) GetWheelLeft

func (x *Command) GetWheelLeft() float64

func (*Command) GetWheelRight

func (x *Command) GetWheelRight() float64

func (*Command) GetYellowteam

func (x *Command) GetYellowteam() bool

func (*Command) ProtoMessage

func (*Command) ProtoMessage()

func (*Command) ProtoReflect

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

func (*Command) Reset

func (x *Command) Reset()

func (*Command) String

func (x *Command) String() string

type Commands

type Commands struct {
	RobotCommands []*Command `protobuf:"bytes,1,rep,name=robot_commands,json=robotCommands,proto3" json:"robot_commands,omitempty"`
	// contains filtered or unexported fields
}

func (*Commands) Descriptor deprecated

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

Deprecated: Use Commands.ProtoReflect.Descriptor instead.

func (*Commands) GetRobotCommands

func (x *Commands) GetRobotCommands() []*Command

func (*Commands) ProtoMessage

func (*Commands) ProtoMessage()

func (*Commands) ProtoReflect

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

func (*Commands) Reset

func (x *Commands) Reset()

func (*Commands) String

func (x *Commands) String() string

type Environment

type Environment struct {
	Step        uint32 `protobuf:"varint,1,opt,name=step,proto3" json:"step,omitempty"`
	Frame       *Frame `protobuf:"bytes,2,opt,name=frame,proto3" json:"frame,omitempty"`
	Field       *Field `protobuf:"bytes,3,opt,name=field,proto3" json:"field,omitempty"`
	GoalsBlue   uint32 `protobuf:"varint,4,opt,name=goals_blue,json=goalsBlue,proto3" json:"goals_blue,omitempty"`
	GoalsYellow uint32 `protobuf:"varint,5,opt,name=goals_yellow,json=goalsYellow,proto3" json:"goals_yellow,omitempty"`
	// contains filtered or unexported fields
}

func (*Environment) Descriptor deprecated

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

Deprecated: Use Environment.ProtoReflect.Descriptor instead.

func (*Environment) GetField

func (x *Environment) GetField() *Field

func (*Environment) GetFrame

func (x *Environment) GetFrame() *Frame

func (*Environment) GetGoalsBlue

func (x *Environment) GetGoalsBlue() uint32

func (*Environment) GetGoalsYellow

func (x *Environment) GetGoalsYellow() uint32

func (*Environment) GetStep

func (x *Environment) GetStep() uint32

func (*Environment) ProtoMessage

func (*Environment) ProtoMessage()

func (*Environment) ProtoReflect

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

func (*Environment) Reset

func (x *Environment) Reset()

func (*Environment) String

func (x *Environment) String() string

type Field

type Field struct {
	Width        float64 `protobuf:"fixed64,1,opt,name=width,proto3" json:"width,omitempty"`
	Length       float64 `protobuf:"fixed64,2,opt,name=length,proto3" json:"length,omitempty"`
	GoalWidth    float64 `protobuf:"fixed64,3,opt,name=goal_width,json=goalWidth,proto3" json:"goal_width,omitempty"`
	GoalDepth    float64 `protobuf:"fixed64,4,opt,name=goal_depth,json=goalDepth,proto3" json:"goal_depth,omitempty"`
	CenterRadius float64 `protobuf:"fixed64,5,opt,name=center_radius,json=centerRadius,proto3" json:"center_radius,omitempty"`
	PenaltyWidth float64 `protobuf:"fixed64,6,opt,name=penalty_width,json=penaltyWidth,proto3" json:"penalty_width,omitempty"`
	PenaltyDepth float64 `protobuf:"fixed64,7,opt,name=penalty_depth,json=penaltyDepth,proto3" json:"penalty_depth,omitempty"`
	PenaltyPoint float64 `protobuf:"fixed64,8,opt,name=penalty_point,json=penaltyPoint,proto3" json:"penalty_point,omitempty"`
	// contains filtered or unexported fields
}

func (*Field) Descriptor deprecated

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

Deprecated: Use Field.ProtoReflect.Descriptor instead.

func (*Field) GetCenterRadius

func (x *Field) GetCenterRadius() float64

func (*Field) GetGoalDepth

func (x *Field) GetGoalDepth() float64

func (*Field) GetGoalWidth

func (x *Field) GetGoalWidth() float64

func (*Field) GetLength

func (x *Field) GetLength() float64

func (*Field) GetPenaltyDepth

func (x *Field) GetPenaltyDepth() float64

func (*Field) GetPenaltyPoint

func (x *Field) GetPenaltyPoint() float64

func (*Field) GetPenaltyWidth

func (x *Field) GetPenaltyWidth() float64

func (*Field) GetWidth

func (x *Field) GetWidth() float64

func (*Field) ProtoMessage

func (*Field) ProtoMessage()

func (*Field) ProtoReflect

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

func (*Field) Reset

func (x *Field) Reset()

func (*Field) String

func (x *Field) String() string

type Frame

type Frame struct {
	Ball         *Ball    `protobuf:"bytes,1,opt,name=ball,proto3" json:"ball,omitempty"`
	RobotsYellow []*Robot `protobuf:"bytes,2,rep,name=robots_yellow,json=robotsYellow,proto3" json:"robots_yellow,omitempty"`
	RobotsBlue   []*Robot `protobuf:"bytes,3,rep,name=robots_blue,json=robotsBlue,proto3" json:"robots_blue,omitempty"`
	// contains filtered or unexported fields
}

func (*Frame) Descriptor deprecated

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

Deprecated: Use Frame.ProtoReflect.Descriptor instead.

func (*Frame) GetBall

func (x *Frame) GetBall() *Ball

func (*Frame) GetRobotsBlue

func (x *Frame) GetRobotsBlue() []*Robot

func (*Frame) GetRobotsYellow

func (x *Frame) GetRobotsYellow() []*Robot

func (*Frame) ProtoMessage

func (*Frame) ProtoMessage()

func (*Frame) ProtoReflect

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

func (*Frame) Reset

func (x *Frame) Reset()

func (*Frame) String

func (x *Frame) String() string

type Packet

type Packet struct {
	Cmd     *Commands    `protobuf:"bytes,1,opt,name=cmd,proto3" json:"cmd,omitempty"`
	Replace *Replacement `protobuf:"bytes,2,opt,name=replace,proto3" json:"replace,omitempty"`
	// contains filtered or unexported fields
}

func (*Packet) Descriptor deprecated

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

Deprecated: Use Packet.ProtoReflect.Descriptor instead.

func (*Packet) GetCmd

func (x *Packet) GetCmd() *Commands

func (*Packet) GetReplace

func (x *Packet) GetReplace() *Replacement

func (*Packet) ProtoMessage

func (*Packet) ProtoMessage()

func (*Packet) ProtoReflect

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

func (*Packet) Reset

func (x *Packet) Reset()

func (*Packet) String

func (x *Packet) String() string

type Receiver

type Receiver struct {
	FieldFrames   map[int]*Frame
	FieldGeometry *Field

	MulticastServer *net.MulticastServer

	ConsumeFrames   func(frame *Frame)
	ConsumeGeometry func(frame *Field)
	// contains filtered or unexported fields
}

func NewReceiver

func NewReceiver() (r *Receiver)

func (*Receiver) CombinedDetectionFrames

func (r *Receiver) CombinedDetectionFrames() (f *Frame)

func (*Receiver) CurrentDetections

func (r *Receiver) CurrentDetections() (result map[int]Frame)

func (*Receiver) CurrentGeometry

func (r *Receiver) CurrentGeometry() (geometry *Field)

func (*Receiver) Start

func (r *Receiver) Start(multicastAddress string)

type Replacement

type Replacement struct {
	Ball   *BallReplacement    `protobuf:"bytes,1,opt,name=ball,proto3" json:"ball,omitempty"`
	Robots []*RobotReplacement `protobuf:"bytes,2,rep,name=robots,proto3" json:"robots,omitempty"`
	// contains filtered or unexported fields
}

func (*Replacement) Descriptor deprecated

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

Deprecated: Use Replacement.ProtoReflect.Descriptor instead.

func (*Replacement) GetBall

func (x *Replacement) GetBall() *BallReplacement

func (*Replacement) GetRobots

func (x *Replacement) GetRobots() []*RobotReplacement

func (*Replacement) ProtoMessage

func (*Replacement) ProtoMessage()

func (*Replacement) ProtoReflect

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

func (*Replacement) Reset

func (x *Replacement) Reset()

func (*Replacement) String

func (x *Replacement) String() string

type Robot

type Robot struct {
	RobotId      uint32  `protobuf:"varint,1,opt,name=robot_id,json=robotId,proto3" json:"robot_id,omitempty"`
	X            float64 `protobuf:"fixed64,2,opt,name=x,proto3" json:"x,omitempty"`
	Y            float64 `protobuf:"fixed64,3,opt,name=y,proto3" json:"y,omitempty"`
	Orientation  float64 `protobuf:"fixed64,4,opt,name=orientation,proto3" json:"orientation,omitempty"`
	Vx           float64 `protobuf:"fixed64,5,opt,name=vx,proto3" json:"vx,omitempty"`
	Vy           float64 `protobuf:"fixed64,6,opt,name=vy,proto3" json:"vy,omitempty"`
	Vorientation float64 `protobuf:"fixed64,7,opt,name=vorientation,proto3" json:"vorientation,omitempty"`
	// contains filtered or unexported fields
}

func (*Robot) Descriptor deprecated

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

Deprecated: Use Robot.ProtoReflect.Descriptor instead.

func (*Robot) GetOrientation

func (x *Robot) GetOrientation() float64

func (*Robot) GetRobotId

func (x *Robot) GetRobotId() uint32

func (*Robot) GetVorientation

func (x *Robot) GetVorientation() float64

func (*Robot) GetVx

func (x *Robot) GetVx() float64

func (*Robot) GetVy

func (x *Robot) GetVy() float64

func (*Robot) GetX

func (x *Robot) GetX() float64

func (*Robot) GetY

func (x *Robot) GetY() float64

func (*Robot) ProtoMessage

func (*Robot) ProtoMessage()

func (*Robot) ProtoReflect

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

func (*Robot) Reset

func (x *Robot) Reset()

func (*Robot) String

func (x *Robot) String() string

type RobotReplacement

type RobotReplacement struct {
	Position   *Robot `protobuf:"bytes,1,opt,name=position,proto3" json:"position,omitempty"`
	Yellowteam bool   `protobuf:"varint,5,opt,name=yellowteam,proto3" json:"yellowteam,omitempty"`
	Turnon     bool   `protobuf:"varint,6,opt,name=turnon,proto3" json:"turnon,omitempty"`
	// contains filtered or unexported fields
}

func (*RobotReplacement) Descriptor deprecated

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

Deprecated: Use RobotReplacement.ProtoReflect.Descriptor instead.

func (*RobotReplacement) GetPosition

func (x *RobotReplacement) GetPosition() *Robot

func (*RobotReplacement) GetTurnon

func (x *RobotReplacement) GetTurnon() bool

func (*RobotReplacement) GetYellowteam

func (x *RobotReplacement) GetYellowteam() bool

func (*RobotReplacement) ProtoMessage

func (*RobotReplacement) ProtoMessage()

func (*RobotReplacement) ProtoReflect

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

func (*RobotReplacement) Reset

func (x *RobotReplacement) Reset()

func (*RobotReplacement) String

func (x *RobotReplacement) String() string

Jump to

Keyboard shortcuts

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