ServoClient class Components
gRPC client for the Servo component.
- Inheritance
- Implemented types
Constructors
- ServoClient(String name, ClientChannelBase channel)
Properties
- channel ↔ ClientChannelBase
-
getter/setter pairoverride
- client → ServoServiceClient
-
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
-
doCommand(
Map< String, dynamic> command) → Future<Map< String, dynamic> > -
Send/Receive arbitrary commands to the Resource
override
-
isMoving(
{Map< String, dynamic> ? extra}) → Future<bool> -
Get if the Servo is currently moving.
override
-
move(
int angle, {Map< String, dynamic> ? extra}) → Future<void> -
Move the Servo to the provided angle.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
position(
{Map< String, dynamic> ? extra}) → Future<int> -
Get the current angle (degrees) of the Servo.
override
-
stop(
{Map< String, dynamic> ? extra}) → Future<void> -
Stop the Servo. It is assumed that the servo stops immediately.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited