Registry class Viam SDK

The global registry of robot resources.

NB The Registry should almost never be used directly.

The Registry keeps track of the various Subtype that are available on robots using this SDK. All Viam-provided resources are pre-registered (e.g. Arm, Motor, MovementSensor).

If you create a new resource Subtype that is not an extension of any existing resources, you must register the resource using registerSubtype

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
subtypes Map<Subtype, ResourceRegistration<Resource>>
The Subtype available in the SDK
final

Methods

lookupSubtype(Subtype subtype) ResourceRegistration<Resource>
Retrieve a Subtype's registration information
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
registerSubtype(ResourceRegistration<Resource> registration) → void
Register a new resource with the SDK
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

instance Registry
final