sensorv1grpc

package
v1.5.1-20250930203921-... Latest Latest
Warning

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

Go to latest
Published: unknown License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SensorService_GetReadings_FullMethodName   = "/viam.component.sensor.v1.SensorService/GetReadings"
	SensorService_DoCommand_FullMethodName     = "/viam.component.sensor.v1.SensorService/DoCommand"
	SensorService_GetGeometries_FullMethodName = "/viam.component.sensor.v1.SensorService/GetGeometries"
)

Variables

View Source
var SensorService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "viam.component.sensor.v1.SensorService",
	HandlerType: (*SensorServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetReadings",
			Handler:    _SensorService_GetReadings_Handler,
		},
		{
			MethodName: "DoCommand",
			Handler:    _SensorService_DoCommand_Handler,
		},
		{
			MethodName: "GetGeometries",
			Handler:    _SensorService_GetGeometries_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "component/sensor/v1/sensor.proto",
}

SensorService_ServiceDesc is the grpc.ServiceDesc for SensorService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterSensorServiceServer

func RegisterSensorServiceServer(s grpc.ServiceRegistrar, srv SensorServiceServer)

Types

type SensorServiceClient

type SensorServiceClient interface {
	// GetReadings returns the readings of a sensor of the underlying robot.
	GetReadings(ctx context.Context, in *v1.GetReadingsRequest, opts ...grpc.CallOption) (*v1.GetReadingsResponse, error)
	// DoCommand sends/receives arbitrary commands
	DoCommand(ctx context.Context, in *v1.DoCommandRequest, opts ...grpc.CallOption) (*v1.DoCommandResponse, error)
	// GetGeometries returns the geometries of the component in their current configuration
	GetGeometries(ctx context.Context, in *v1.GetGeometriesRequest, opts ...grpc.CallOption) (*v1.GetGeometriesResponse, error)
}

SensorServiceClient is the client API for SensorService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

SensorService services all generic sensors associated with a robot

func NewSensorServiceClient

func NewSensorServiceClient(cc grpc.ClientConnInterface) SensorServiceClient

type SensorServiceServer

type SensorServiceServer interface {
	// GetReadings returns the readings of a sensor of the underlying robot.
	GetReadings(context.Context, *v1.GetReadingsRequest) (*v1.GetReadingsResponse, error)
	// DoCommand sends/receives arbitrary commands
	DoCommand(context.Context, *v1.DoCommandRequest) (*v1.DoCommandResponse, error)
	// GetGeometries returns the geometries of the component in their current configuration
	GetGeometries(context.Context, *v1.GetGeometriesRequest) (*v1.GetGeometriesResponse, error)
}

SensorServiceServer is the server API for SensorService service. All implementations should embed UnimplementedSensorServiceServer for forward compatibility.

SensorService services all generic sensors associated with a robot

type UnimplementedSensorServiceServer

type UnimplementedSensorServiceServer struct{}

UnimplementedSensorServiceServer should be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedSensorServiceServer) DoCommand

func (UnimplementedSensorServiceServer) GetGeometries

func (UnimplementedSensorServiceServer) GetReadings

type UnsafeSensorServiceServer

type UnsafeSensorServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeSensorServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to SensorServiceServer will result in compilation errors.

Source Files

  • sensor_grpc.pb.go

Jump to

Keyboard shortcuts

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