BowlerKernel
IDriveEngine.java
Go to the documentation of this file.
1 package com.neuronrobotics.sdk.addons.kinematics;
2 
3 import com.neuronrobotics.sdk.addons.kinematics.math.RotationNR;
4 import com.neuronrobotics.sdk.addons.kinematics.math.TransformNR;
5 
9 public interface IDriveEngine {
10 
36  public abstract void DriveArc(MobileBase source,TransformNR newPose,double seconds);
37 
38 
46  public default void DriveVelocityStraight(MobileBase source,double cmPerSecond) {
47  DriveArc(source,new TransformNR(cmPerSecond,0,0,new RotationNR()),1);
48  }
49 
59  public default void DriveVelocityArc(MobileBase source,double degreesPerSecond, double cmRadius) {
60  DriveArc(source,new TransformNR(0,cmRadius,0,new RotationNR(0, degreesPerSecond, 0)),1);
61  }
62 }
default void DriveVelocityStraight(MobileBase source, double cmPerSecond)
default void DriveVelocityArc(MobileBase source, double degreesPerSecond, double cmRadius)
abstract void DriveArc(MobileBase source, TransformNR newPose, double seconds)