Base class abstract

Base represents a physical base of a robot.

Inheritance
Implementers

Constructors

Base()

Properties

hashCode int
The hash code for this object.
no setterinherited
name String
finalinherited
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
inherited
isMoving() Future<bool>
Get if the base is currently moving
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.
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.
setPower(Vector3 linear, Vector3 angular, {Map<String, dynamic>? extra}) Future<void>
Set the linear and angular velocity of the Base.
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.
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.
stop({Map<String, dynamic>? extra}) Future<void>
Stop the base.
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

fromRobot(RobotClient robot, String name) Base
Get the Base named name from the provided robot.
getResourceName(String name) ResourceName
Get the ResourceName for this Base with the given name

Constants

subtype → const Subtype