Base class abstract Components
Base represents a physical base of a robot.
For more information, see Base component.
- Inheritance
- Implementers
Constructors
- Base()
Properties
Methods
-
doCommand(
Map< String, dynamic> command) → Future<Map< String, dynamic> > -
Send/Receive arbitrary commands to the Resource
inherited
-
isMoving(
) → Future< bool> - Whether 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 givenvelocity
, 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 and degrees/sec vectors.
-
spin(
double angle, double velocity, {Map< String, dynamic> ? extra}) → Future<void> -
Spin the Base in place
angle
degrees, at the given angularvelocity
, 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