visualization

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2023 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

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) Descriptor() ([]byte, []int)

Deprecated: Use Circle.ProtoReflect.Descriptor instead.

func (*Circle) GetCenterX

func (x *Circle) GetCenterX() float32

func (*Circle) GetCenterY

func (x *Circle) GetCenterY() float32

func (*Circle) GetMetadata

func (x *Circle) GetMetadata() *Metadata

func (*Circle) GetRadius

func (x *Circle) GetRadius() float32

func (*Circle) ProtoMessage

func (*Circle) ProtoMessage()

func (*Circle) ProtoReflect added in v0.2.1

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

func (*Circle) Reset

func (x *Circle) Reset()

func (*Circle) String

func (x *Circle) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Metadata.ProtoReflect.Descriptor instead.

func (*Metadata) GetColorFill

func (x *Metadata) GetColorFill() *RgbColor

func (*Metadata) GetColorStroke

func (x *Metadata) GetColorStroke() *RgbColor

func (*Metadata) GetLayer

func (x *Metadata) GetLayer() []string

func (*Metadata) GetOrder

func (x *Metadata) GetOrder() int32

func (*Metadata) GetVisibleByDefault

func (x *Metadata) GetVisibleByDefault() bool

func (*Metadata) ProtoMessage

func (*Metadata) ProtoMessage()

func (*Metadata) ProtoReflect added in v0.2.1

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

func (*Metadata) Reset

func (x *Metadata) Reset()

func (*Metadata) String

func (x *Metadata) String() string

type Publisher

type Publisher struct {
	// contains filtered or unexported fields
}

func NewPublisher

func NewPublisher(address string) (publisher Publisher)

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) Descriptor() ([]byte, []int)

Deprecated: Use RgbColor.ProtoReflect.Descriptor instead.

func (*RgbColor) GetA

func (x *RgbColor) GetA() float32

func (*RgbColor) GetB

func (x *RgbColor) GetB() uint32

func (*RgbColor) GetG

func (x *RgbColor) GetG() uint32

func (*RgbColor) GetR

func (x *RgbColor) GetR() uint32

func (*RgbColor) ProtoMessage

func (*RgbColor) ProtoMessage()

func (*RgbColor) ProtoReflect added in v0.2.1

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

func (*RgbColor) Reset

func (x *RgbColor) Reset()

func (*RgbColor) String

func (x *RgbColor) String() string

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

Jump to

Keyboard shortcuts

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