Documentation ¶
Index ¶
- Variables
- type Circle
- func (*Circle) Descriptor() ([]byte, []int)deprecated
- func (x *Circle) GetCenterX() float32
- func (x *Circle) GetCenterY() float32
- func (x *Circle) GetMetadata() *Metadata
- func (x *Circle) GetRadius() float32
- func (*Circle) ProtoMessage()
- func (x *Circle) ProtoReflect() protoreflect.Message
- func (x *Circle) Reset()
- func (x *Circle) String() string
- type LineSegment
- func (*LineSegment) Descriptor() ([]byte, []int)deprecated
- func (x *LineSegment) GetEndX() float32
- func (x *LineSegment) GetEndY() float32
- func (x *LineSegment) GetMetadata() *Metadata
- func (x *LineSegment) GetStartX() float32
- func (x *LineSegment) GetStartY() float32
- func (*LineSegment) ProtoMessage()
- func (x *LineSegment) ProtoReflect() protoreflect.Message
- func (x *LineSegment) Reset()
- func (x *LineSegment) String() string
- type Metadata
- func (*Metadata) Descriptor() ([]byte, []int)deprecated
- func (x *Metadata) GetColorFill() *RgbColor
- func (x *Metadata) GetColorStroke() *RgbColor
- func (x *Metadata) GetLayer() []string
- func (x *Metadata) GetOrder() int32
- func (x *Metadata) GetVisibleByDefault() bool
- func (*Metadata) ProtoMessage()
- func (x *Metadata) ProtoReflect() protoreflect.Message
- func (x *Metadata) Reset()
- func (x *Metadata) String() string
- type Publisher
- type RgbColor
- func (*RgbColor) Descriptor() ([]byte, []int)deprecated
- func (x *RgbColor) GetA() float32
- func (x *RgbColor) GetB() uint32
- func (x *RgbColor) GetG() uint32
- func (x *RgbColor) GetR() uint32
- func (*RgbColor) ProtoMessage()
- func (x *RgbColor) ProtoReflect() protoreflect.Message
- func (x *RgbColor) Reset()
- func (x *RgbColor) String() string
- type VisualizationFrame
- func (*VisualizationFrame) Descriptor() ([]byte, []int)deprecated
- func (x *VisualizationFrame) GetCircles() []*Circle
- func (x *VisualizationFrame) GetLines() []*LineSegment
- func (x *VisualizationFrame) GetSenderId() string
- func (*VisualizationFrame) ProtoMessage()
- func (x *VisualizationFrame) ProtoReflect() protoreflect.Message
- func (x *VisualizationFrame) Reset()
- func (x *VisualizationFrame) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var File_ssl_visualization_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Circle ¶
type Circle struct { // The metadata Metadata *Metadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"` // Center point, x value [m] CenterX float32 `protobuf:"fixed32,2,opt,name=center_x,json=centerX,proto3" json:"center_x,omitempty"` // Center point, y value [m] CenterY float32 `protobuf:"fixed32,3,opt,name=center_y,json=centerY,proto3" json:"center_y,omitempty"` // Radius [m] Radius float32 `protobuf:"fixed32,4,opt,name=radius,proto3" json:"radius,omitempty"` // contains filtered or unexported fields }
A full circle
func (*Circle) Descriptor
deprecated
func (*Circle) GetCenterX ¶
func (*Circle) GetCenterY ¶
func (*Circle) GetMetadata ¶
func (*Circle) ProtoMessage ¶
func (*Circle) ProtoMessage()
func (*Circle) ProtoReflect ¶ added in v0.2.1
func (x *Circle) ProtoReflect() protoreflect.Message
type LineSegment ¶
type LineSegment struct { // The metadata Metadata *Metadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"` // Start point, x value [m] StartX float32 `protobuf:"fixed32,2,opt,name=start_x,json=startX,proto3" json:"start_x,omitempty"` // Start point, y value [m] StartY float32 `protobuf:"fixed32,3,opt,name=start_y,json=startY,proto3" json:"start_y,omitempty"` // End point, x value [m] EndX float32 `protobuf:"fixed32,4,opt,name=end_x,json=endX,proto3" json:"end_x,omitempty"` // End point, y value [m] EndY float32 `protobuf:"fixed32,5,opt,name=end_y,json=endY,proto3" json:"end_y,omitempty"` // contains filtered or unexported fields }
A line segment
func (*LineSegment) Descriptor
deprecated
func (*LineSegment) Descriptor() ([]byte, []int)
Deprecated: Use LineSegment.ProtoReflect.Descriptor instead.
func (*LineSegment) GetEndX ¶
func (x *LineSegment) GetEndX() float32
func (*LineSegment) GetEndY ¶
func (x *LineSegment) GetEndY() float32
func (*LineSegment) GetMetadata ¶
func (x *LineSegment) GetMetadata() *Metadata
func (*LineSegment) GetStartX ¶
func (x *LineSegment) GetStartX() float32
func (*LineSegment) GetStartY ¶
func (x *LineSegment) GetStartY() float32
func (*LineSegment) ProtoMessage ¶
func (*LineSegment) ProtoMessage()
func (*LineSegment) ProtoReflect ¶ added in v0.2.1
func (x *LineSegment) ProtoReflect() protoreflect.Message
func (*LineSegment) Reset ¶
func (x *LineSegment) Reset()
func (*LineSegment) String ¶
func (x *LineSegment) String() string
type Metadata ¶
type Metadata struct { // layer name, optionally with a hierarchy Layer []string `protobuf:"bytes,1,rep,name=layer,proto3" json:"layer,omitempty"` // Should a client show this by default? VisibleByDefault bool `protobuf:"varint,2,opt,name=visibleByDefault,proto3" json:"visibleByDefault,omitempty"` // An order number: // <0: Below field lines // 0: default // 1: robots // 2: robot ids // 3: ball // >3: above vision objects Order int32 `protobuf:"varint,3,opt,name=order,proto3" json:"order,omitempty"` // Color to fill the shape ColorFill *RgbColor `protobuf:"bytes,4,opt,name=color_fill,json=colorFill,proto3" json:"color_fill,omitempty"` // Color for the shape stroke ColorStroke *RgbColor `protobuf:"bytes,5,opt,name=color_stroke,json=colorStroke,proto3" json:"color_stroke,omitempty"` // contains filtered or unexported fields }
Metadata for each shape
func (*Metadata) Descriptor
deprecated
func (*Metadata) GetColorFill ¶
func (*Metadata) GetColorStroke ¶
func (*Metadata) GetVisibleByDefault ¶
func (*Metadata) ProtoMessage ¶
func (*Metadata) ProtoMessage()
func (*Metadata) ProtoReflect ¶ added in v0.2.1
func (x *Metadata) ProtoReflect() protoreflect.Message
type Publisher ¶
type Publisher struct {
// contains filtered or unexported fields
}
func NewPublisher ¶
func (*Publisher) Send ¶
func (p *Publisher) Send(frame *VisualizationFrame)
type RgbColor ¶
type RgbColor struct { // red (0-255) R uint32 `protobuf:"varint,1,opt,name=r,proto3" json:"r,omitempty"` // green (0-255) G uint32 `protobuf:"varint,2,opt,name=g,proto3" json:"g,omitempty"` // blue (0-255) B uint32 `protobuf:"varint,3,opt,name=b,proto3" json:"b,omitempty"` // alpha (0.0-1.0) A float32 `protobuf:"fixed32,4,opt,name=a,proto3" json:"a,omitempty"` // contains filtered or unexported fields }
Color encoded in RGB
func (*RgbColor) Descriptor
deprecated
func (*RgbColor) ProtoMessage ¶
func (*RgbColor) ProtoMessage()
func (*RgbColor) ProtoReflect ¶ added in v0.2.1
func (x *RgbColor) ProtoReflect() protoreflect.Message
type VisualizationFrame ¶
type VisualizationFrame struct { // An identifier for the sender // Used to identify the source of shapes in a client // Also used to keep track of the latest frame of each sender in clients, if there a multiple ones senders SenderId string `protobuf:"bytes,1,opt,name=sender_id,json=senderId,proto3" json:"sender_id,omitempty"` // all lines Lines []*LineSegment `protobuf:"bytes,2,rep,name=lines,proto3" json:"lines,omitempty"` // all circles Circles []*Circle `protobuf:"bytes,3,rep,name=circles,proto3" json:"circles,omitempty"` // contains filtered or unexported fields }
Wrapper frame containing all shapes
func (*VisualizationFrame) Descriptor
deprecated
func (*VisualizationFrame) Descriptor() ([]byte, []int)
Deprecated: Use VisualizationFrame.ProtoReflect.Descriptor instead.
func (*VisualizationFrame) GetCircles ¶
func (x *VisualizationFrame) GetCircles() []*Circle
func (*VisualizationFrame) GetLines ¶
func (x *VisualizationFrame) GetLines() []*LineSegment
func (*VisualizationFrame) GetSenderId ¶
func (x *VisualizationFrame) GetSenderId() string
func (*VisualizationFrame) ProtoMessage ¶
func (*VisualizationFrame) ProtoMessage()
func (*VisualizationFrame) ProtoReflect ¶ added in v0.2.1
func (x *VisualizationFrame) ProtoReflect() protoreflect.Message
func (*VisualizationFrame) Reset ¶
func (x *VisualizationFrame) Reset()
func (*VisualizationFrame) String ¶
func (x *VisualizationFrame) String() string
Click to show internal directories.
Click to hide internal directories.