encoderv1

package
v1.36.11-2025121820540... Latest Latest
Warning

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

Go to latest
Published: unknown License: Apache-2.0 Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	PositionType_name = map[int32]string{
		0: "POSITION_TYPE_UNSPECIFIED",
		1: "POSITION_TYPE_TICKS_COUNT",
		2: "POSITION_TYPE_ANGLE_DEGREES",
	}
	PositionType_value = map[string]int32{
		"POSITION_TYPE_UNSPECIFIED":   0,
		"POSITION_TYPE_TICKS_COUNT":   1,
		"POSITION_TYPE_ANGLE_DEGREES": 2,
	}
)

Enum value maps for PositionType.

View Source
var File_component_encoder_v1_encoder_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type GetPositionRequest

type GetPositionRequest struct {

	// Name of encoder
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// If supplied, the response will return the specified
	// position type. If the driver does not implement
	// the requested type, this call will return an error.
	// If position type is not specified, the response
	// will return a default according to the driver.
	PositionType *PositionType `` /* 148-byte string literal not displayed */
	// Additional arguments to the method
	Extra *structpb.Struct `protobuf:"bytes,99,opt,name=extra,proto3" json:"extra,omitempty"`
	// contains filtered or unexported fields
}

func (*GetPositionRequest) ClearExtra

func (x *GetPositionRequest) ClearExtra()

func (*GetPositionRequest) ClearPositionType

func (x *GetPositionRequest) ClearPositionType()

func (*GetPositionRequest) GetExtra

func (x *GetPositionRequest) GetExtra() *structpb.Struct

func (*GetPositionRequest) GetName

func (x *GetPositionRequest) GetName() string

func (*GetPositionRequest) GetPositionType

func (x *GetPositionRequest) GetPositionType() PositionType

func (*GetPositionRequest) HasExtra

func (x *GetPositionRequest) HasExtra() bool

func (*GetPositionRequest) HasPositionType

func (x *GetPositionRequest) HasPositionType() bool

func (*GetPositionRequest) ProtoMessage

func (*GetPositionRequest) ProtoMessage()

func (*GetPositionRequest) ProtoReflect

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

func (*GetPositionRequest) Reset

func (x *GetPositionRequest) Reset()

func (*GetPositionRequest) SetExtra

func (x *GetPositionRequest) SetExtra(v *structpb.Struct)

func (*GetPositionRequest) SetName

func (x *GetPositionRequest) SetName(v string)

func (*GetPositionRequest) SetPositionType

func (x *GetPositionRequest) SetPositionType(v PositionType)

func (*GetPositionRequest) String

func (x *GetPositionRequest) String() string

type GetPositionRequest_builder

type GetPositionRequest_builder struct {

	// Name of encoder
	Name string
	// If supplied, the response will return the specified
	// position type. If the driver does not implement
	// the requested type, this call will return an error.
	// If position type is not specified, the response
	// will return a default according to the driver.
	PositionType *PositionType
	// Additional arguments to the method
	Extra *structpb.Struct
	// contains filtered or unexported fields
}

func (GetPositionRequest_builder) Build

type GetPositionResponse

type GetPositionResponse struct {
	Value        float32      `protobuf:"fixed32,1,opt,name=value,proto3" json:"value,omitempty"`
	PositionType PositionType `` /* 142-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*GetPositionResponse) GetPositionType

func (x *GetPositionResponse) GetPositionType() PositionType

func (*GetPositionResponse) GetValue

func (x *GetPositionResponse) GetValue() float32

func (*GetPositionResponse) ProtoMessage

func (*GetPositionResponse) ProtoMessage()

func (*GetPositionResponse) ProtoReflect

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

func (*GetPositionResponse) Reset

func (x *GetPositionResponse) Reset()

func (*GetPositionResponse) SetPositionType

func (x *GetPositionResponse) SetPositionType(v PositionType)

func (*GetPositionResponse) SetValue

func (x *GetPositionResponse) SetValue(v float32)

func (*GetPositionResponse) String

func (x *GetPositionResponse) String() string

type GetPositionResponse_builder

type GetPositionResponse_builder struct {
	Value        float32
	PositionType PositionType
	// contains filtered or unexported fields
}

func (GetPositionResponse_builder) Build

type GetPropertiesRequest

type GetPropertiesRequest struct {

	// Name of the encoder
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Additional arguments to the method
	Extra *structpb.Struct `protobuf:"bytes,99,opt,name=extra,proto3" json:"extra,omitempty"`
	// contains filtered or unexported fields
}

func (*GetPropertiesRequest) ClearExtra

func (x *GetPropertiesRequest) ClearExtra()

func (*GetPropertiesRequest) GetExtra

func (x *GetPropertiesRequest) GetExtra() *structpb.Struct

func (*GetPropertiesRequest) GetName

func (x *GetPropertiesRequest) GetName() string

func (*GetPropertiesRequest) HasExtra

func (x *GetPropertiesRequest) HasExtra() bool

func (*GetPropertiesRequest) ProtoMessage

func (*GetPropertiesRequest) ProtoMessage()

func (*GetPropertiesRequest) ProtoReflect

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

func (*GetPropertiesRequest) Reset

func (x *GetPropertiesRequest) Reset()

func (*GetPropertiesRequest) SetExtra

func (x *GetPropertiesRequest) SetExtra(v *structpb.Struct)

func (*GetPropertiesRequest) SetName

func (x *GetPropertiesRequest) SetName(v string)

func (*GetPropertiesRequest) String

func (x *GetPropertiesRequest) String() string

type GetPropertiesRequest_builder

type GetPropertiesRequest_builder struct {

	// Name of the encoder
	Name string
	// Additional arguments to the method
	Extra *structpb.Struct
	// contains filtered or unexported fields
}

func (GetPropertiesRequest_builder) Build

type GetPropertiesResponse

type GetPropertiesResponse struct {
	TicksCountSupported   bool `protobuf:"varint,1,opt,name=ticks_count_supported,json=ticksCountSupported,proto3" json:"ticks_count_supported,omitempty"`
	AngleDegreesSupported bool `` /* 127-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*GetPropertiesResponse) GetAngleDegreesSupported

func (x *GetPropertiesResponse) GetAngleDegreesSupported() bool

func (*GetPropertiesResponse) GetTicksCountSupported

func (x *GetPropertiesResponse) GetTicksCountSupported() bool

func (*GetPropertiesResponse) ProtoMessage

func (*GetPropertiesResponse) ProtoMessage()

func (*GetPropertiesResponse) ProtoReflect

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

func (*GetPropertiesResponse) Reset

func (x *GetPropertiesResponse) Reset()

func (*GetPropertiesResponse) SetAngleDegreesSupported

func (x *GetPropertiesResponse) SetAngleDegreesSupported(v bool)

func (*GetPropertiesResponse) SetTicksCountSupported

func (x *GetPropertiesResponse) SetTicksCountSupported(v bool)

func (*GetPropertiesResponse) String

func (x *GetPropertiesResponse) String() string

type GetPropertiesResponse_builder

type GetPropertiesResponse_builder struct {
	TicksCountSupported   bool
	AngleDegreesSupported bool
	// contains filtered or unexported fields
}

func (GetPropertiesResponse_builder) Build

type PositionType

type PositionType int32
const (
	PositionType_POSITION_TYPE_UNSPECIFIED PositionType = 0
	// Return type for relative encoders that report
	// how far they've gone from a start position
	PositionType_POSITION_TYPE_TICKS_COUNT PositionType = 1
	// Return type for absolute encoders that report
	// their position in degrees along the radial axis
	PositionType_POSITION_TYPE_ANGLE_DEGREES PositionType = 2
)

func (PositionType) Descriptor

func (PositionType) Enum

func (x PositionType) Enum() *PositionType

func (PositionType) Number

func (PositionType) String

func (x PositionType) String() string

func (PositionType) Type

type ResetPositionRequest

type ResetPositionRequest struct {

	// Name of an encoder
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Additional arguments to the method
	Extra *structpb.Struct `protobuf:"bytes,99,opt,name=extra,proto3" json:"extra,omitempty"`
	// contains filtered or unexported fields
}

func (*ResetPositionRequest) ClearExtra

func (x *ResetPositionRequest) ClearExtra()

func (*ResetPositionRequest) GetExtra

func (x *ResetPositionRequest) GetExtra() *structpb.Struct

func (*ResetPositionRequest) GetName

func (x *ResetPositionRequest) GetName() string

func (*ResetPositionRequest) HasExtra

func (x *ResetPositionRequest) HasExtra() bool

func (*ResetPositionRequest) ProtoMessage

func (*ResetPositionRequest) ProtoMessage()

func (*ResetPositionRequest) ProtoReflect

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

func (*ResetPositionRequest) Reset

func (x *ResetPositionRequest) Reset()

func (*ResetPositionRequest) SetExtra

func (x *ResetPositionRequest) SetExtra(v *structpb.Struct)

func (*ResetPositionRequest) SetName

func (x *ResetPositionRequest) SetName(v string)

func (*ResetPositionRequest) String

func (x *ResetPositionRequest) String() string

type ResetPositionRequest_builder

type ResetPositionRequest_builder struct {

	// Name of an encoder
	Name string
	// Additional arguments to the method
	Extra *structpb.Struct
	// contains filtered or unexported fields
}

func (ResetPositionRequest_builder) Build

type ResetPositionResponse

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

func (*ResetPositionResponse) ProtoMessage

func (*ResetPositionResponse) ProtoMessage()

func (*ResetPositionResponse) ProtoReflect

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

func (*ResetPositionResponse) Reset

func (x *ResetPositionResponse) Reset()

func (*ResetPositionResponse) String

func (x *ResetPositionResponse) String() string

type ResetPositionResponse_builder

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

func (ResetPositionResponse_builder) Build

Source Files

  • encoder.pb.go

Jump to

Keyboard shortcuts

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