Documentation ¶
Index ¶
- Variables
- type Ball
- func (*Ball) Descriptor() ([]byte, []int)deprecated
- func (x *Ball) GetVx() float64
- func (x *Ball) GetVy() float64
- func (x *Ball) GetVz() float64
- func (x *Ball) GetX() float64
- func (x *Ball) GetY() float64
- func (x *Ball) GetZ() float64
- func (*Ball) ProtoMessage()
- func (x *Ball) ProtoReflect() protoreflect.Message
- func (x *Ball) Reset()
- func (x *Ball) String() string
- type BallReplacement
- func (*BallReplacement) Descriptor() ([]byte, []int)deprecated
- func (x *BallReplacement) GetVx() float64
- func (x *BallReplacement) GetVy() float64
- func (x *BallReplacement) GetX() float64
- func (x *BallReplacement) GetY() float64
- func (*BallReplacement) ProtoMessage()
- func (x *BallReplacement) ProtoReflect() protoreflect.Message
- func (x *BallReplacement) Reset()
- func (x *BallReplacement) String() string
- type Command
- func (*Command) Descriptor() ([]byte, []int)deprecated
- func (x *Command) GetId() uint32
- func (x *Command) GetWheelLeft() float64
- func (x *Command) GetWheelRight() float64
- func (x *Command) GetYellowteam() bool
- func (*Command) ProtoMessage()
- func (x *Command) ProtoReflect() protoreflect.Message
- func (x *Command) Reset()
- func (x *Command) String() string
- type Commands
- type Environment
- func (*Environment) Descriptor() ([]byte, []int)deprecated
- func (x *Environment) GetField() *Field
- func (x *Environment) GetFrame() *Frame
- func (x *Environment) GetGoalsBlue() uint32
- func (x *Environment) GetGoalsYellow() uint32
- func (x *Environment) GetStep() uint32
- func (*Environment) ProtoMessage()
- func (x *Environment) ProtoReflect() protoreflect.Message
- func (x *Environment) Reset()
- func (x *Environment) String() string
- type Field
- func (*Field) Descriptor() ([]byte, []int)deprecated
- func (x *Field) GetCenterRadius() float64
- func (x *Field) GetGoalDepth() float64
- func (x *Field) GetGoalWidth() float64
- func (x *Field) GetLength() float64
- func (x *Field) GetPenaltyDepth() float64
- func (x *Field) GetPenaltyPoint() float64
- func (x *Field) GetPenaltyWidth() float64
- func (x *Field) GetWidth() float64
- func (*Field) ProtoMessage()
- func (x *Field) ProtoReflect() protoreflect.Message
- func (x *Field) Reset()
- func (x *Field) String() string
- type Frame
- func (*Frame) Descriptor() ([]byte, []int)deprecated
- func (x *Frame) GetBall() *Ball
- func (x *Frame) GetRobotsBlue() []*Robot
- func (x *Frame) GetRobotsYellow() []*Robot
- func (*Frame) ProtoMessage()
- func (x *Frame) ProtoReflect() protoreflect.Message
- func (x *Frame) Reset()
- func (x *Frame) String() string
- type Packet
- type Receiver
- type Replacement
- func (*Replacement) Descriptor() ([]byte, []int)deprecated
- func (x *Replacement) GetBall() *BallReplacement
- func (x *Replacement) GetRobots() []*RobotReplacement
- func (*Replacement) ProtoMessage()
- func (x *Replacement) ProtoReflect() protoreflect.Message
- func (x *Replacement) Reset()
- func (x *Replacement) String() string
- type Robot
- func (*Robot) Descriptor() ([]byte, []int)deprecated
- func (x *Robot) GetOrientation() float64
- func (x *Robot) GetRobotId() uint32
- func (x *Robot) GetVorientation() float64
- func (x *Robot) GetVx() float64
- func (x *Robot) GetVy() float64
- func (x *Robot) GetX() float64
- func (x *Robot) GetY() float64
- func (*Robot) ProtoMessage()
- func (x *Robot) ProtoReflect() protoreflect.Message
- func (x *Robot) Reset()
- func (x *Robot) String() string
- type RobotReplacement
- func (*RobotReplacement) Descriptor() ([]byte, []int)deprecated
- func (x *RobotReplacement) GetPosition() *Robot
- func (x *RobotReplacement) GetTurnon() bool
- func (x *RobotReplacement) GetYellowteam() bool
- func (*RobotReplacement) ProtoMessage()
- func (x *RobotReplacement) ProtoReflect() protoreflect.Message
- func (x *RobotReplacement) Reset()
- func (x *RobotReplacement) String() string
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) ProtoMessage ¶
func (*Ball) ProtoMessage()
func (*Ball) ProtoReflect ¶
func (x *Ball) ProtoReflect() protoreflect.Message
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) GetWheelLeft ¶
func (*Command) GetWheelRight ¶
func (*Command) GetYellowteam ¶
func (*Command) ProtoMessage ¶
func (*Command) ProtoMessage()
func (*Command) ProtoReflect ¶
func (x *Command) ProtoReflect() protoreflect.Message
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) GetRobotCommands ¶
func (*Commands) ProtoMessage ¶
func (*Commands) ProtoMessage()
func (*Commands) ProtoReflect ¶
func (x *Commands) ProtoReflect() protoreflect.Message
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) GetCenterRadius ¶
func (*Field) GetGoalDepth ¶
func (*Field) GetGoalWidth ¶
func (*Field) GetPenaltyDepth ¶
func (*Field) GetPenaltyPoint ¶
func (*Field) GetPenaltyWidth ¶
func (*Field) ProtoMessage ¶
func (*Field) ProtoMessage()
func (*Field) ProtoReflect ¶
func (x *Field) ProtoReflect() protoreflect.Message
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) GetRobotsBlue ¶
func (*Frame) GetRobotsYellow ¶
func (*Frame) ProtoMessage ¶
func (*Frame) ProtoMessage()
func (*Frame) ProtoReflect ¶
func (x *Frame) ProtoReflect() protoreflect.Message
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) GetReplace ¶
func (x *Packet) GetReplace() *Replacement
func (*Packet) ProtoMessage ¶
func (*Packet) ProtoMessage()
func (*Packet) ProtoReflect ¶
func (x *Packet) ProtoReflect() protoreflect.Message
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 (*Receiver) CurrentDetections ¶
func (*Receiver) CurrentGeometry ¶
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) GetOrientation ¶
func (*Robot) GetRobotId ¶
func (*Robot) GetVorientation ¶
func (*Robot) ProtoMessage ¶
func (*Robot) ProtoMessage()
func (*Robot) ProtoReflect ¶
func (x *Robot) ProtoReflect() protoreflect.Message
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
Click to show internal directories.
Click to hide internal directories.