BaseClient class

gRPC client for the Base component.

Inheritance
Implemented types

Constructors

BaseClient(String name, ClientChannelBase channel)

Properties

channel ClientChannelBase
getter/setter pairoverride
client BaseServiceClient
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() Future<bool>
Get if the base is currently moving
override
moveStraight(int distance, double velocity, {Map<String, dynamic>? extra}) Future<void>
Move the Base in a straight line the given distance, expressed in millimeters, at the given velocity, expressed in millimeters per second.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
properties({Map<String, dynamic>? extra}) Future<BaseProperties>
Report a dictionary mapping optional properties to whether it is supported by this base.
override
setPower(Vector3 linear, Vector3 angular, {Map<String, dynamic>? extra}) Future<void>
Set the linear and angular velocity of the Base.
override
setVelocity(Vector3 linear, Vector3 angular, {Map<String, dynamic>? extra}) Future<void>
Set the linear and angular velocities of the base, expressed as mm/sec vectors.
override
spin(double angle, double velocity, {Map<String, dynamic>? extra}) Future<void>
Spin the Base in place angle degrees, at the given angular velocity, expressed in degrees per second.
override
stop({Map<String, dynamic>? extra}) Future<void>
Stop the base.
override
toString() String
A string representation of this object.
inherited

Operators

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