EncoderClient class Components
gRPC client for the Encoder component.
- Inheritance
- Implemented types
- Mixed-in types
Constructors
- EncoderClient(String name, ClientChannelBase channel)
Properties
- callOptions → CallOptions
-
no setterinherited
- channel ↔ ClientChannelBase
-
getter/setter pairoverride
- client → EncoderServiceClient
-
no setteroverride
- hashCode → int
-
The hash code for this object.
no setterinherited
- name → String
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
disableDebugLogging(
) → void -
Disable debug logging for gRPC calls by removing the trace key from the metadata.
inherited
-
doCommand(
Map< String, dynamic> command) → Future<Map< String, dynamic> > -
Send/Receive arbitrary commands to the Resource
override
-
enableDebugLogging(
{String? traceKey}) → void -
Enable debug logging for gRPC calls by setting a trace key in the metadata.
If no trace key is provided, a random one will be generated.
inherited
-
getGeometries(
{Map< String, dynamic> ? extra}) → Future<List< Geometry> > -
Get all geometries associated with the Encoder
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
position(
{PositionType? positionType, Map< String, dynamic> ? extra}) → Future<(double, PositionType)> -
Report the position of the encoder in ticks or degrees, and the position type.
The value returned is a tuple containing two values. The first is the position of the encoder
which can either be ticks since last zeroing for a relative encoder or degrees for an absolute encoder,
and the second is the type of position the encoder returns (ticks or degrees).
This method will raise an exception if position reporting is not supported by the encoder.
override
-
properties(
{Map< String, dynamic> ? extra}) → Future<EncoderProperties> -
Report a dictionary mapping each optional property to
whether it is supported by this encoder.
override
-
resetPosition(
{Map< String, dynamic> ? extra}) → Future<void> -
Set the current position to be the new zero (home) position.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited