Documentation ¶
Overview ¶
Package motion contains a gRPC based motion client
Package motion implements an motion service.
Package motion contains a gRPC based motion service server
Index ¶
Constants ¶
View Source
const SubtypeName = resource.SubtypeName("motion")
SubtypeName is the name of the type of service.
Variables ¶
View Source
var Subtype = resource.NewSubtype( resource.ResourceNamespaceRDK, resource.ResourceTypeService, SubtypeName, )
Subtype is a constant that identifies the motion service resource subtype.
Functions ¶
func Named ¶ added in v0.0.8
Named is a helper for getting the named motion service's typed resource name.
func NewServer ¶
func NewServer(s subtype.Service) pb.MotionServiceServer
NewServer constructs a motion gRPC service server.
func NewUnimplementedInterfaceError ¶ added in v0.1.0
func NewUnimplementedInterfaceError(actual interface{}) error
NewUnimplementedInterfaceError is used when there is a failed interface check.
func WrapWithReconfigurable ¶
func WrapWithReconfigurable(s interface{}) (resource.Reconfigurable, error)
WrapWithReconfigurable wraps a Motion Service as a Reconfigurable.
Types ¶
type Service ¶
type Service interface { Move( ctx context.Context, componentName resource.Name, destination *referenceframe.PoseInFrame, worldState *commonpb.WorldState, extra map[string]interface{}, ) (bool, error) MoveSingleComponent( ctx context.Context, componentName resource.Name, destination *referenceframe.PoseInFrame, worldState *commonpb.WorldState, extra map[string]interface{}, ) (bool, error) GetPose( ctx context.Context, componentName resource.Name, destinationFrame string, supplementalTransforms []*commonpb.Transform, extra map[string]interface{}, ) (*referenceframe.PoseInFrame, error) }
A Service controls the flow of moving components.
func NewClientFromConn ¶
func NewClientFromConn(ctx context.Context, conn rpc.ClientConn, name string, logger golog.Logger) Service
NewClientFromConn constructs a new Client from connection passed in.
Directories ¶
Path | Synopsis |
---|---|
Package builtin implements a motion service.
|
Package builtin implements a motion service. |
Package register registers all relevant motion services and also subtype specific functions
|
Package register registers all relevant motion services and also subtype specific functions |
Click to show internal directories.
Click to hide internal directories.