Documentation
¶
Index ¶
- Variables
- type Capability
- func (Capability) Descriptor() protoreflect.EnumDescriptor
- func (x Capability) Enum() *Capability
- func (Capability) EnumDescriptor() ([]byte, []int)deprecated
- func (x Capability) Number() protoreflect.EnumNumber
- func (x Capability) String() string
- func (Capability) Type() protoreflect.EnumType
- func (x *Capability) UnmarshalJSON(b []byte) errordeprecated
- type KickedBall
- func (*KickedBall) Descriptor() ([]byte, []int)deprecated
- func (x *KickedBall) GetPos() *gc.Vector2
- func (x *KickedBall) GetRobotId() *gc.RobotId
- func (x *KickedBall) GetStartTimestamp() float64
- func (x *KickedBall) GetStopPos() *gc.Vector2
- func (x *KickedBall) GetStopTimestamp() float64
- func (x *KickedBall) GetVel() *gc.Vector3
- func (*KickedBall) ProtoMessage()
- func (x *KickedBall) ProtoReflect() protoreflect.Message
- func (x *KickedBall) Reset()
- func (x *KickedBall) String() string
- type TrackedBall
- func (*TrackedBall) Descriptor() ([]byte, []int)deprecated
- func (x *TrackedBall) GetPos() *gc.Vector3
- func (x *TrackedBall) GetVel() *gc.Vector3
- func (x *TrackedBall) GetVisibility() float32
- func (*TrackedBall) ProtoMessage()
- func (x *TrackedBall) ProtoReflect() protoreflect.Message
- func (x *TrackedBall) Reset()
- func (x *TrackedBall) String() string
- type TrackedFrame
- func (*TrackedFrame) Descriptor() ([]byte, []int)deprecated
- func (x *TrackedFrame) GetBalls() []*TrackedBall
- func (x *TrackedFrame) GetCapabilities() []Capability
- func (x *TrackedFrame) GetFrameNumber() uint32
- func (x *TrackedFrame) GetKickedBall() *KickedBall
- func (x *TrackedFrame) GetRobots() []*TrackedRobot
- func (x *TrackedFrame) GetTimestamp() float64
- func (*TrackedFrame) ProtoMessage()
- func (x *TrackedFrame) ProtoReflect() protoreflect.Message
- func (x *TrackedFrame) Reset()
- func (x *TrackedFrame) String() string
- type TrackedRobot
- func (*TrackedRobot) Descriptor() ([]byte, []int)deprecated
- func (x *TrackedRobot) GetOrientation() float32
- func (x *TrackedRobot) GetPos() *gc.Vector2
- func (x *TrackedRobot) GetRobotId() *gc.RobotId
- func (x *TrackedRobot) GetVel() *gc.Vector2
- func (x *TrackedRobot) GetVelAngular() float32
- func (x *TrackedRobot) GetVisibility() float32
- func (*TrackedRobot) ProtoMessage()
- func (x *TrackedRobot) ProtoReflect() protoreflect.Message
- func (x *TrackedRobot) Reset()
- func (x *TrackedRobot) String() string
- type TrackerWrapperPacket
- func (*TrackerWrapperPacket) Descriptor() ([]byte, []int)deprecated
- func (x *TrackerWrapperPacket) GetSourceName() string
- func (x *TrackerWrapperPacket) GetTrackedFrame() *TrackedFrame
- func (x *TrackerWrapperPacket) GetUuid() string
- func (*TrackerWrapperPacket) ProtoMessage()
- func (x *TrackerWrapperPacket) ProtoReflect() protoreflect.Message
- func (x *TrackerWrapperPacket) Reset()
- func (x *TrackerWrapperPacket) String() string
Constants ¶
This section is empty.
Variables ¶
var ( Capability_name = map[int32]string{ 0: "CAPABILITY_UNKNOWN", 1: "CAPABILITY_DETECT_FLYING_BALLS", 2: "CAPABILITY_DETECT_MULTIPLE_BALLS", 3: "CAPABILITY_DETECT_KICKED_BALLS", } Capability_value = map[string]int32{ "CAPABILITY_UNKNOWN": 0, "CAPABILITY_DETECT_FLYING_BALLS": 1, "CAPABILITY_DETECT_MULTIPLE_BALLS": 2, "CAPABILITY_DETECT_KICKED_BALLS": 3, } )
Enum value maps for Capability.
var File_tracked_ssl_vision_detection_tracked_proto protoreflect.FileDescriptor
var File_tracked_ssl_vision_wrapper_tracked_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Capability ¶
type Capability int32
Capabilities that a source implementation can have
const ( Capability_CAPABILITY_UNKNOWN Capability = 0 Capability_CAPABILITY_DETECT_FLYING_BALLS Capability = 1 Capability_CAPABILITY_DETECT_MULTIPLE_BALLS Capability = 2 Capability_CAPABILITY_DETECT_KICKED_BALLS Capability = 3 )
func (Capability) Descriptor ¶
func (Capability) Descriptor() protoreflect.EnumDescriptor
func (Capability) Enum ¶
func (x Capability) Enum() *Capability
func (Capability) EnumDescriptor
deprecated
func (Capability) EnumDescriptor() ([]byte, []int)
Deprecated: Use Capability.Descriptor instead.
func (Capability) Number ¶
func (x Capability) Number() protoreflect.EnumNumber
func (Capability) String ¶
func (x Capability) String() string
func (Capability) Type ¶
func (Capability) Type() protoreflect.EnumType
func (*Capability) UnmarshalJSON
deprecated
func (x *Capability) UnmarshalJSON(b []byte) error
Deprecated: Do not use.
type KickedBall ¶
type KickedBall struct {
// The initial position [m] from which the ball was kicked
Pos *gc.Vector2 `protobuf:"bytes,1,req,name=pos" json:"pos,omitempty"`
// The initial velocity [m/s] with which the ball was kicked
Vel *gc.Vector3 `protobuf:"bytes,2,req,name=vel" json:"vel,omitempty"`
// The unix timestamp [s] when the kick was performed
StartTimestamp *float64 `protobuf:"fixed64,3,req,name=start_timestamp,json=startTimestamp" json:"start_timestamp,omitempty"`
// The predicted unix timestamp [s] when the ball comes to a stop
StopTimestamp *float64 `protobuf:"fixed64,4,opt,name=stop_timestamp,json=stopTimestamp" json:"stop_timestamp,omitempty"`
// The predicted position [m] at which the ball will come to a stop
StopPos *gc.Vector2 `protobuf:"bytes,5,opt,name=stop_pos,json=stopPos" json:"stop_pos,omitempty"`
// The robot that kicked the ball
RobotId *gc.RobotId `protobuf:"bytes,6,opt,name=robot_id,json=robotId" json:"robot_id,omitempty"`
// contains filtered or unexported fields
}
A ball kicked by a robot, including predictions when the ball will come to a stop
func (*KickedBall) Descriptor
deprecated
func (*KickedBall) Descriptor() ([]byte, []int)
Deprecated: Use KickedBall.ProtoReflect.Descriptor instead.
func (*KickedBall) GetPos ¶
func (x *KickedBall) GetPos() *gc.Vector2
func (*KickedBall) GetRobotId ¶
func (x *KickedBall) GetRobotId() *gc.RobotId
func (*KickedBall) GetStartTimestamp ¶
func (x *KickedBall) GetStartTimestamp() float64
func (*KickedBall) GetStopPos ¶
func (x *KickedBall) GetStopPos() *gc.Vector2
func (*KickedBall) GetStopTimestamp ¶
func (x *KickedBall) GetStopTimestamp() float64
func (*KickedBall) GetVel ¶
func (x *KickedBall) GetVel() *gc.Vector3
func (*KickedBall) ProtoMessage ¶
func (*KickedBall) ProtoMessage()
func (*KickedBall) ProtoReflect ¶
func (x *KickedBall) ProtoReflect() protoreflect.Message
func (*KickedBall) Reset ¶
func (x *KickedBall) Reset()
func (*KickedBall) String ¶
func (x *KickedBall) String() string
type TrackedBall ¶
type TrackedBall struct {
// The position (x, y, height) [m] in the ssl-vision coordinate system
Pos *gc.Vector3 `protobuf:"bytes,1,req,name=pos" json:"pos,omitempty"`
// The velocity [m/s] in the ssl-vision coordinate system
Vel *gc.Vector3 `protobuf:"bytes,2,opt,name=vel" json:"vel,omitempty"`
// The visibility of the ball
// A value between 0 (not visible) and 1 (visible)
// The exact implementation depends on the source software
Visibility *float32 `protobuf:"fixed32,3,opt,name=visibility" json:"visibility,omitempty"`
// contains filtered or unexported fields
}
A single tracked ball
func (*TrackedBall) Descriptor
deprecated
func (*TrackedBall) Descriptor() ([]byte, []int)
Deprecated: Use TrackedBall.ProtoReflect.Descriptor instead.
func (*TrackedBall) GetPos ¶
func (x *TrackedBall) GetPos() *gc.Vector3
func (*TrackedBall) GetVel ¶
func (x *TrackedBall) GetVel() *gc.Vector3
func (*TrackedBall) GetVisibility ¶
func (x *TrackedBall) GetVisibility() float32
func (*TrackedBall) ProtoMessage ¶
func (*TrackedBall) ProtoMessage()
func (*TrackedBall) ProtoReflect ¶
func (x *TrackedBall) ProtoReflect() protoreflect.Message
func (*TrackedBall) Reset ¶
func (x *TrackedBall) Reset()
func (*TrackedBall) String ¶
func (x *TrackedBall) String() string
type TrackedFrame ¶
type TrackedFrame struct {
// A monotonous increasing frame counter
FrameNumber *uint32 `protobuf:"varint,1,req,name=frame_number,json=frameNumber" json:"frame_number,omitempty"`
// The unix timestamp in [s] of the data
// If timestamp is larger than timestamp_captured, the source has applied a prediction already
Timestamp *float64 `protobuf:"fixed64,2,req,name=timestamp" json:"timestamp,omitempty"`
// The list of detected balls
// The first ball is the primary one
// Sources may add additional balls based on their capabilities
Balls []*TrackedBall `protobuf:"bytes,3,rep,name=balls" json:"balls,omitempty"`
// The list of detected robots of both teams
Robots []*TrackedRobot `protobuf:"bytes,4,rep,name=robots" json:"robots,omitempty"`
// Information about a kicked ball, if the ball was kicked by a robot and is still moving
// Note: This field is optional. Some source implementations might not set this at any time
KickedBall *KickedBall `protobuf:"bytes,5,opt,name=kicked_ball,json=kickedBall" json:"kicked_ball,omitempty"`
// List of capabilities of the source implementation
Capabilities []Capability `protobuf:"varint,6,rep,name=capabilities,enum=Capability" json:"capabilities,omitempty"`
// contains filtered or unexported fields
}
A frame that contains all currently tracked objects on the field on all cameras
func (*TrackedFrame) Descriptor
deprecated
func (*TrackedFrame) Descriptor() ([]byte, []int)
Deprecated: Use TrackedFrame.ProtoReflect.Descriptor instead.
func (*TrackedFrame) GetBalls ¶
func (x *TrackedFrame) GetBalls() []*TrackedBall
func (*TrackedFrame) GetCapabilities ¶
func (x *TrackedFrame) GetCapabilities() []Capability
func (*TrackedFrame) GetFrameNumber ¶
func (x *TrackedFrame) GetFrameNumber() uint32
func (*TrackedFrame) GetKickedBall ¶
func (x *TrackedFrame) GetKickedBall() *KickedBall
func (*TrackedFrame) GetRobots ¶
func (x *TrackedFrame) GetRobots() []*TrackedRobot
func (*TrackedFrame) GetTimestamp ¶
func (x *TrackedFrame) GetTimestamp() float64
func (*TrackedFrame) ProtoMessage ¶
func (*TrackedFrame) ProtoMessage()
func (*TrackedFrame) ProtoReflect ¶
func (x *TrackedFrame) ProtoReflect() protoreflect.Message
func (*TrackedFrame) Reset ¶
func (x *TrackedFrame) Reset()
func (*TrackedFrame) String ¶
func (x *TrackedFrame) String() string
type TrackedRobot ¶
type TrackedRobot struct {
RobotId *gc.RobotId `protobuf:"bytes,1,req,name=robot_id,json=robotId" json:"robot_id,omitempty"`
// The position [m] in the ssl-vision coordinate system
Pos *gc.Vector2 `protobuf:"bytes,2,req,name=pos" json:"pos,omitempty"`
// The orientation [rad] in the ssl-vision coordinate system
Orientation *float32 `protobuf:"fixed32,3,req,name=orientation" json:"orientation,omitempty"`
// The velocity [m/s] in the ssl-vision coordinate system
Vel *gc.Vector2 `protobuf:"bytes,4,opt,name=vel" json:"vel,omitempty"`
// The angular velocity [rad/s] in the ssl-vision coordinate system
VelAngular *float32 `protobuf:"fixed32,5,opt,name=vel_angular,json=velAngular" json:"vel_angular,omitempty"`
// The visibility of the robot
// A value between 0 (not visible) and 1 (visible)
// The exact implementation depends on the source software
Visibility *float32 `protobuf:"fixed32,6,opt,name=visibility" json:"visibility,omitempty"`
// contains filtered or unexported fields
}
A single tracked robot
func (*TrackedRobot) Descriptor
deprecated
func (*TrackedRobot) Descriptor() ([]byte, []int)
Deprecated: Use TrackedRobot.ProtoReflect.Descriptor instead.
func (*TrackedRobot) GetOrientation ¶
func (x *TrackedRobot) GetOrientation() float32
func (*TrackedRobot) GetPos ¶
func (x *TrackedRobot) GetPos() *gc.Vector2
func (*TrackedRobot) GetRobotId ¶
func (x *TrackedRobot) GetRobotId() *gc.RobotId
func (*TrackedRobot) GetVel ¶
func (x *TrackedRobot) GetVel() *gc.Vector2
func (*TrackedRobot) GetVelAngular ¶
func (x *TrackedRobot) GetVelAngular() float32
func (*TrackedRobot) GetVisibility ¶
func (x *TrackedRobot) GetVisibility() float32
func (*TrackedRobot) ProtoMessage ¶
func (*TrackedRobot) ProtoMessage()
func (*TrackedRobot) ProtoReflect ¶
func (x *TrackedRobot) ProtoReflect() protoreflect.Message
func (*TrackedRobot) Reset ¶
func (x *TrackedRobot) Reset()
func (*TrackedRobot) String ¶
func (x *TrackedRobot) String() string
type TrackerWrapperPacket ¶
type TrackerWrapperPacket struct {
// A random UUID of the source that is kept constant at the source while running
// If multiple sources are broadcasting to the same network, this id can be used to identify individual sources
Uuid *string `protobuf:"bytes,1,req,name=uuid" json:"uuid,omitempty"`
// The name of the source software that is producing this messages.
SourceName *string `protobuf:"bytes,2,opt,name=source_name,json=sourceName" json:"source_name,omitempty"`
// The tracked frame
TrackedFrame *TrackedFrame `protobuf:"bytes,3,opt,name=tracked_frame,json=trackedFrame" json:"tracked_frame,omitempty"`
// contains filtered or unexported fields
}
A wrapper packet containing meta data of the source Also serves for the possibility to extend the protocol later
func (*TrackerWrapperPacket) Descriptor
deprecated
func (*TrackerWrapperPacket) Descriptor() ([]byte, []int)
Deprecated: Use TrackerWrapperPacket.ProtoReflect.Descriptor instead.
func (*TrackerWrapperPacket) GetSourceName ¶
func (x *TrackerWrapperPacket) GetSourceName() string
func (*TrackerWrapperPacket) GetTrackedFrame ¶
func (x *TrackerWrapperPacket) GetTrackedFrame() *TrackedFrame
func (*TrackerWrapperPacket) GetUuid ¶
func (x *TrackerWrapperPacket) GetUuid() string
func (*TrackerWrapperPacket) ProtoMessage ¶
func (*TrackerWrapperPacket) ProtoMessage()
func (*TrackerWrapperPacket) ProtoReflect ¶
func (x *TrackerWrapperPacket) ProtoReflect() protoreflect.Message
func (*TrackerWrapperPacket) Reset ¶
func (x *TrackerWrapperPacket) Reset()
func (*TrackerWrapperPacket) String ¶
func (x *TrackerWrapperPacket) String() string