Class OmniPilot
- java.lang.Object
-
- lejos.robotics.navigation.OmniPilot
-
- All Implemented Interfaces:
ArcMoveController,ArcRotateMoveController,MoveController,MoveProvider,RotateMoveController,RegulatedMotorListener
@Deprecated public class OmniPilot extends java.lang.Object implements ArcRotateMoveController, RegulatedMotorListener
Deprecated.useMovePilotinstead.Use the OmniPilot class to control holonomic vehicles with three omnidirectional wheels that allow the robot to move in any direction without changing heading. The robot can also spin while driving straight, and perform any kind of maneuvre the other steering and differential drive vehicles can do. The odometry is computed by this class directly. For the class to work properly, take care to design the robot symmetrically, so that the three wheel axes meet in the center of the robot.
- Author:
- Daniele Benedettelli
-
-
Field Summary
-
Fields inherited from interface lejos.robotics.navigation.MoveController
WHEEL_SIZE_EV3, WHEEL_SIZE_NXT1, WHEEL_SIZE_NXT2, WHEEL_SIZE_RCX
-
-
Constructor Summary
Constructors Constructor Description OmniPilot(float wheelDistanceFromCenter, float wheelDiameter, RegulatedMotor centralMotor, RegulatedMotor CW120degMotor, RegulatedMotor CCW120degMotor, boolean centralWheelFrontal, boolean motorReverse, Power battery)Deprecated.Instantiates a new omnidirectional pilot.OmniPilot(float wheelDistanceFromCenter, float wheelDiameter, RegulatedMotor centralMotor, RegulatedMotor CW120degMotor, RegulatedMotor CCW120degMotor, boolean centralWheelFrontal, boolean motorReverse, Power battery, Gyroscope gyro)Deprecated.Instantiates a new omnidirectional pilot.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidaddMoveListener(MoveListener listener)Deprecated.Adds a MoveListener that will be notified of all movement events.voidarc(double radius, double angle)Deprecated.Moves the NXT robot along an arc with a specified radius and angle, after which the robot stops moving.voidarc(double radius, double angle, boolean immediateReturn)Deprecated.Moves the NXT robot along an arc with a specified radius and angle, after which the robot stops moving.voidarc(double radius, double angle, double direction)Deprecated.This method moves the robot in an arc, similar to the otherarc(double, double)methods, except you can choose any of the 360 degree directions relative to the current heading (0) of the robot, while keeping the heading of the robot pointed in the same direction during the move.voidarc(double radius, double angle, double direction, boolean immediateReturn)Deprecated.This method moves the robot in an arc, similar to the otherarc(double, double)methods, except you can choose any of the 360 degree directions relative to the current heading (0) of the robot, while keeping the heading of the robot pointed in the same direction during the move.voidarcBackward(double radius)Deprecated.Starts the NXT robot moving backward along an arc with a specified radius.voidarcForward(double radius)Deprecated.Starts the NXT robot moving forward along an arc with a specified radius.voidbackward()Deprecated.Starts the NXT robot moving backwards.voidforward()Deprecated.Starts the NXT robot moving forward.doublegetAngularAcceleration()Deprecated.Returns the acceleration at which the robot accelerates at the start of a move and decelerates at the end of a move.doublegetAngularSpeed()Deprecated.Returns the value of the rotation speeddoublegetLinearAcceleration()Deprecated.Returns the acceleration at which the robot accelerates at the start of a move and decelerates at the end of a move.doublegetLinearSpeed()Deprecated.Returns the speed at which the robot will travel forward and backward (and to some extent arcs, although actual arc speed is slightly less).doublegetMaxAngularSpeed()Deprecated.returns the maximum value of the rotation speed;doublegetMaxLinearSpeed()Deprecated.Returns the maximum speed at which this robot is capable of traveling forward and backward.doublegetMinRadius()Deprecated.The minimum steering radius this vehicle is capable of when traveling in an arc.floatgetMoveDirection()Deprecated.Gets the move direction.MovegetMovement()Deprecated.Returns the move made since the move started, but before it has completed.booleanisMoving()Deprecated.true if the robot is movingvoidmoveStraight(float linSpeed, int direction)Deprecated.This method causes the robot to move in a direction while keeping the front of the robot pointed in the current direction it is facing.voidreset()Deprecated.Reset all tacho counts.voidrotate(double angle)Deprecated.Rotates the NXT robot the specified number of degrees; direction determined by the sign of the parameter.voidrotate(double angle, boolean immediateReturn)Deprecated.Rotates the NXT robot the specified number of degrees; direction determined by the sign of the parameter.voidrotateLeft()Deprecated.voidrotateRight()Deprecated.voidrotationStarted(RegulatedMotor motor, int tachoCount, boolean stalled, long timeStamp)Deprecated.Called when the motor starts rotating.voidrotationStopped(RegulatedMotor motor, int tachoCount, boolean stalled, long timeStamp)Deprecated.Notify the MoveListeners when a move is completed.voidsetAngularAcceleration(double acceleration)Deprecated.Sets the acceleration at which the robot will accelerate at the start of a move and decelerate at the end of a move.voidsetAngularSpeed(double speed)Deprecated.sets the rotation speed of the robot (the angular velocity of the rotate() methods)voidsetLinearAcceleration(double accel)Deprecated.Sets the acceleration at which the robot will accelerate at the start of a move and decelerate at the end of a move.voidsetLinearSpeed(double speed)Deprecated.Sets the speed at which the robot will travel forward and backward (and to some extent arcs, although actual arc speed is slightly less).voidsetMinRadius(double radius)Deprecated.Set the radius of the minimum turning circle.voidsetMoveDirection(int dir)Deprecated.Sets the move direction.voidsetSpeed(int speed)Deprecated.in 0.8, use setRotateSpeed() and setTravelSpeed().voidspinningMove(float linSpeed, int angSpeed, int direction)Deprecated.Causes the robot to spin while moving along a linear path.voidsteer(float turnRate)Deprecated.Steer.voidsteer(float linSpeed, float angSpeed)Deprecated.Steer.voidsteer(float turnRate, float angle, boolean immediateReturn)Deprecated.Steer.voidstop()Deprecated.Halts the NXT robotvoidtravel(double distance)Deprecated.Moves the NXT robot a specific distance.voidtravel(double distance, boolean immediateReturn)Deprecated.Moves the NXT robot a specific distance.voidtravel(double distance, double direction)Deprecated.This method causes the robot to travel in a linear path, similar to other travel() methods, except you can specify which direction to move (relative to the current robot heading).voidtravel(double distance, double direction, boolean immediateReturn)Deprecated.This method causes the robot to travel in a linear path, similar to other travel() methods, except you can specify which direction to move (relative to the current robot heading).voidtravelArc(double radius, double distance)Deprecated.Moves the NXT robot a specified distance along an arc of specified radius, after which the robot stops moving.voidtravelArc(double radius, double distance, boolean immediateReturn)Deprecated.Moves the NXT robot a specified distance along an arc of specified radius, after which the robot stops moving.voidtravelArc(double radius, double distance, float direction)Deprecated.This method moves the robot in an arc, similar to the othertravelArc(double, double)methods, except you can choose any of the 360 degree directions relative to the current heading (0) of the robot, while keeping the heading of the robot pointed in the same direction during the move.voidtravelArc(double radius, double distance, float direction, boolean immediateReturn)Deprecated.This method moves the robot in an arc, similar to the othertravelArc(double, double)methods, except you can choose any of the 360 degree directions relative to the current heading (0) of the robot, while keeping the heading of the robot pointed in the same direction during the move.
-
-
-
Constructor Detail
-
OmniPilot
public OmniPilot(float wheelDistanceFromCenter, float wheelDiameter, RegulatedMotor centralMotor, RegulatedMotor CW120degMotor, RegulatedMotor CCW120degMotor, boolean centralWheelFrontal, boolean motorReverse, Power battery)Deprecated.Instantiates a new omnidirectional pilot. This class also keeps track of the odometry Express the distances in the units you prefer (mm, in, cm ...)- Parameters:
wheelDistanceFromCenter- the wheel distance from centerwheelDiameter- the wheel diametercentralMotor- the central motorCW120degMotor- the motor at 120 degrees clockwise from frontCCW120degMotor- the motor at 120 degrees counter-clockwise from frontcentralWheelFrontal- if true, the central wheel frontal else it is facing backmotorReverse- if motors are mounted reversed
-
OmniPilot
public OmniPilot(float wheelDistanceFromCenter, float wheelDiameter, RegulatedMotor centralMotor, RegulatedMotor CW120degMotor, RegulatedMotor CCW120degMotor, boolean centralWheelFrontal, boolean motorReverse, Power battery, Gyroscope gyro)Deprecated.Instantiates a new omnidirectional pilot. This class also keeps track of the odometry Express the distances in the units you prefer (mm, in, cm ...) This constructor allows you to add a cruizcore gyro for accurate odometry and spinning- Parameters:
wheelDistanceFromCenter- the wheel distance from centerwheelDiameter- the wheel diametercentralMotor- the central motorCW120degMotor- the motor at 120 degrees clockwise from frontCCW120degMotor- the motor at 120 degrees counter-clockwise from frontcentralWheelFrontal- if true, the central wheel frontal else it is facing backmotorReverse- if motors are mounted reversedgyro- the gyroscope
-
-
Method Detail
-
setLinearAcceleration
public void setLinearAcceleration(double accel)
Deprecated.Description copied from interface:MoveControllerSets the acceleration at which the robot will accelerate at the start of a move and decelerate at the end of a move. Acceleration is measured in units/second^2. e.g. If wheel diameter is cm, then acceleration is cm/sec^2.If acceleration is set during a move it will not be in used for the current move, it will be in effect with the next move.
- Specified by:
setLinearAccelerationin interfaceMoveController- Parameters:
accel- in chosen units/second^2
-
getLinearAcceleration
public double getLinearAcceleration()
Deprecated.Description copied from interface:MoveControllerReturns the acceleration at which the robot accelerates at the start of a move and decelerates at the end of a move.- Specified by:
getLinearAccelerationin interfaceMoveController- Returns:
- acceleration in chosen units/second^2
-
forward
public void forward()
Deprecated.Description copied from interface:MoveControllerStarts the NXT robot moving forward.- Specified by:
forwardin interfaceMoveController
-
backward
public void backward()
Deprecated.Description copied from interface:MoveControllerStarts the NXT robot moving backwards.- Specified by:
backwardin interfaceMoveController
-
moveStraight
public void moveStraight(float linSpeed, int direction)Deprecated.This method causes the robot to move in a direction while keeping the front of the robot pointed in the current direction it is facing.- Parameters:
linSpeed- the lin speeddirection- the direction relative to the current direction the robot is facing
-
spinningMove
public void spinningMove(float linSpeed, int angSpeed, int direction)Deprecated.Causes the robot to spin while moving along a linear path. This method is similar tomoveStraight(float, int)except the robot will spin instead of holding the robot in the current direction.- Parameters:
linSpeed- the linear speed [units/s]angSpeed- the angular speed [deg/s]direction- the direction [deg]
-
stop
public void stop()
Deprecated.Description copied from interface:MoveControllerHalts the NXT robot- Specified by:
stopin interfaceMoveController
-
isMoving
public boolean isMoving()
Deprecated.Description copied from interface:MoveControllertrue if the robot is moving- Specified by:
isMovingin interfaceMoveController- Returns:
- true if the robot is moving under power.
-
setLinearSpeed
public void setLinearSpeed(double speed)
Deprecated.Description copied from interface:MoveControllerSets the speed at which the robot will travel forward and backward (and to some extent arcs, although actual arc speed is slightly less). Speed is measured in units/second. e.g. If wheel diameter is cm, then speed is cm/sec.- Specified by:
setLinearSpeedin interfaceMoveController- Parameters:
speed- In chosen units per second (e.g. cm/sec)
-
getLinearSpeed
public double getLinearSpeed()
Deprecated.Description copied from interface:MoveControllerReturns the speed at which the robot will travel forward and backward (and to some extent arcs, although actual arc speed is slightly less). Speed is measured in units/second. e.g. If wheel diameter is cm, then speed is cm/sec.- Specified by:
getLinearSpeedin interfaceMoveController- Returns:
- Speed in chosen units per second (e.g. cm/sec)
-
setMoveDirection
public void setMoveDirection(int dir)
Deprecated.Sets the move direction. This value is then used by subsequent calls tosteer(float)(all three overloaded methods).- Parameters:
dir- the new move direction
-
getMoveDirection
public float getMoveDirection()
Deprecated.Gets the move direction.- Returns:
- the move direction
-
getMaxLinearSpeed
public double getMaxLinearSpeed()
Deprecated.Description copied from interface:MoveControllerReturns the maximum speed at which this robot is capable of traveling forward and backward. Speed is measured in units/second. e.g. If wheel diameter is cm, then speed is cm/sec.- Specified by:
getMaxLinearSpeedin interfaceMoveController- Returns:
- Speed in chosen units per second (e.g. cm/sec)
-
setAngularSpeed
public void setAngularSpeed(double speed)
Deprecated.Description copied from interface:RotateMoveControllersets the rotation speed of the robot (the angular velocity of the rotate() methods)- Specified by:
setAngularSpeedin interfaceRotateMoveController- Parameters:
speed- in degrees per second
-
getAngularSpeed
public double getAngularSpeed()
Deprecated.Description copied from interface:RotateMoveControllerReturns the value of the rotation speed- Specified by:
getAngularSpeedin interfaceRotateMoveController- Returns:
- the rotate speed in degrees per second
-
getMaxAngularSpeed
public double getMaxAngularSpeed()
Deprecated.Description copied from interface:RotateMoveControllerreturns the maximum value of the rotation speed;- Specified by:
getMaxAngularSpeedin interfaceRotateMoveController- Returns:
- max rotation speed
-
travel
public void travel(double distance)
Deprecated.Description copied from interface:MoveControllerMoves the NXT robot a specific distance. A positive value moves it forward and a negative value moves it backward. Method returns when movement is done.- Specified by:
travelin interfaceMoveController- Parameters:
distance- The positive or negative distance to move the robot.
-
travel
public void travel(double distance, double direction)Deprecated.This method causes the robot to travel in a linear path, similar to other travel() methods, except you can specify which direction to move (relative to the current robot heading). NOTE: This method is not part of the MoveController interface.- Parameters:
distance-direction-
-
travel
public void travel(double distance, boolean immediateReturn)Deprecated.Description copied from interface:MoveControllerMoves the NXT robot a specific distance. A positive value moves it forward and a negative value moves it backward.- Specified by:
travelin interfaceMoveController- Parameters:
distance- The positive or negative distance to move the robot, in wheel diameter units.immediateReturn- If immediateReturn is true then the method returns immediately.
-
travel
public void travel(double distance, double direction, boolean immediateReturn)Deprecated.This method causes the robot to travel in a linear path, similar to other travel() methods, except you can specify which direction to move (relative to the current robot heading). NOTE: This method is not part of the MoveController interface.- Parameters:
distance-direction-immediateReturn-
-
rotate
public void rotate(double angle)
Deprecated.Description copied from interface:RotateMoveControllerRotates the NXT robot the specified number of degrees; direction determined by the sign of the parameter. Method returns when rotation is done.- Specified by:
rotatein interfaceRotateMoveController- Parameters:
angle- The angle to rotate in degrees. A positive value rotates left, a negative value right (clockwise).
-
rotate
public void rotate(double angle, boolean immediateReturn)Deprecated.Description copied from interface:RotateMoveControllerRotates the NXT robot the specified number of degrees; direction determined by the sign of the parameter. Method returns immediately if immediateReturn flag is true, otherwise returns when rotation is done.- Specified by:
rotatein interfaceRotateMoveController- Parameters:
angle- The angle to rotate in degrees. A positive value rotates left, a negative value right (clockwise).immediateReturn- If true, method returns immediately, otherwise blocks until rotation is complete.
-
steer
public void steer(float turnRate)
Deprecated.Steer.- Parameters:
turnRate- the turn rate
-
steer
public void steer(float linSpeed, float angSpeed)Deprecated.Steer.- Parameters:
linSpeed- the lin speedangSpeed- the ang speed
-
steer
public void steer(float turnRate, float angle, boolean immediateReturn)Deprecated.Steer.- Parameters:
turnRate- the turn rateangle- the angleimmediateReturn- the immediate return
-
travelArc
public void travelArc(double radius, double distance)Deprecated.Description copied from interface:ArcMoveControllerMoves the NXT robot a specified distance along an arc of specified radius, after which the robot stops moving. This method does not return until the robot has completed movingdistancealong the arc. The units (inches, cm) fordistancemust be the same as the units used forradius.If
radiusis positive, the robot arcs left, and the center of the turning circle is on the left side of the robot.
Ifradiusis negative, the robot arcs right, and the center of the turning circle is on the right side of the robot.
Ifradiusis zero, the robot rotates in placeThe robot will stop when it has moved along the arc
distanceunits.
Ifdistanceis positive, the robot will move travel forwards.
Ifdistanceis negative, the robot will move travel backwards.
Ifdistanceis zero, the robot will not move and the method returns immediately.Postcondition: Motor speeds are unpredictable.
- Specified by:
travelArcin interfaceArcMoveController- Parameters:
radius- of the arc path. If positive, the left side of the robot is on the inside of the turn. If negative, the left side of the robot is on the outside of the turn.distance- to travel, in same units asradius. The sign of the distance determines the direction of robot motion. Positive drives the robot forward, negative drives it backward.- See Also:
ArcMoveController.arc(double, double)
-
travelArc
public void travelArc(double radius, double distance, boolean immediateReturn)Deprecated.Description copied from interface:ArcMoveControllerMoves the NXT robot a specified distance along an arc of specified radius, after which the robot stops moving. This method has the ability to return immediately by using theimmediateReturnparameter. The units (inches, cm) fordistanceshould be the same as the units used forradius.If
radiusis positive, the robot arcs left, and the center of the turning circle is on the left side of the robot.
Ifradiusis negative, the robot arcs right, and the center of the turning circle is on the right side of the robot.
Ifradiusis zero, the robot rotates in place.The robot will stop when it has moved along the arc
distanceunits.
Ifdistanceis positive, the robot will move travel forwards.
Ifdistanceis negative, the robot will move travel backwards.
Ifdistanceis zero, the robot will not move and the method returns immediately.Postcondition: Motor speeds are unpredictable.
- Specified by:
travelArcin interfaceArcMoveController- Parameters:
radius- of the arc path. If positive, the left side of the robot is on the inside of the turn. If negative, the left side of the robot is on the outside of the turn.distance- to travel, in same units asradius. The sign of the distance determines the direction of robot motion. Positive drives the robot forward, negative drives it backward.immediateReturn- If immediateReturn is true then the method returns immediately.- See Also:
ArcMoveController.arc(double, double, boolean)
-
travelArc
public void travelArc(double radius, double distance, float direction)Deprecated.This method moves the robot in an arc, similar to the othertravelArc(double, double)methods, except you can choose any of the 360 degree directions relative to the current heading (0) of the robot, while keeping the heading of the robot pointed in the same direction during the move. NOTE: This method is not part of the MoveController interface.- Parameters:
radius-distance-direction-
-
travelArc
public void travelArc(double radius, double distance, float direction, boolean immediateReturn)Deprecated.This method moves the robot in an arc, similar to the othertravelArc(double, double)methods, except you can choose any of the 360 degree directions relative to the current heading (0) of the robot, while keeping the heading of the robot pointed in the same direction during the move. NOTE: This method is not part of the MoveController interface.- Parameters:
radius-distance-direction-immediateReturn-
-
arc
public void arc(double radius, double angle)Deprecated.Description copied from interface:ArcMoveControllerMoves the NXT robot along an arc with a specified radius and angle, after which the robot stops moving. This method does not return until the robot has completed movingangledegrees along the arc.If
radiusis positive, the robot arcs left, and the center of the turning circle is on the left side of the robot.
Ifradiusis negative, the robot arcs right, and the center of the turning circle is on the right side of the robot.
Ifradiusis zero, is zero, the robot rotates in place.Robot will stop when the degrees it has moved along the arc equals
angle.
Ifangleis positive, the robot will turn to the left (anti-clockwise).
Ifangleis negative, the robot will turn to the right (clockwise). Ifangleis zero, the robot will not move and the method returns immediately.Postcondition: Motor speeds are unpredictable.
Note: If you have specified a drift correction in the constructor it will not be applied in this method.
- Specified by:
arcin interfaceArcMoveController- Parameters:
radius- of the arc path. If positive, the left side of the robot is on the inside of the turn. If negative, the left side of the robot is on the outside of the turn.angle- The sign of the angle determines the direction of the robot turns: Positive is anti-clockwise, negative is clockwise.- See Also:
ArcMoveController.travelArc(double, double)
-
arc
public void arc(double radius, double angle, double direction)Deprecated.This method moves the robot in an arc, similar to the otherarc(double, double)methods, except you can choose any of the 360 degree directions relative to the current heading (0) of the robot, while keeping the heading of the robot pointed in the same direction during the move. NOTE: This method is not part of the MoveController interface.- Parameters:
radius-angle-direction-
-
arc
public void arc(double radius, double angle, boolean immediateReturn)Deprecated.Description copied from interface:ArcMoveControllerMoves the NXT robot along an arc with a specified radius and angle, after which the robot stops moving. This method has the ability to return immediately by using theimmediateReturnparameter.If
radiusis positive, the robot arcs left, and the center of the turning circle is on the left side of the robot.
Ifradiusis negative, the robot arcs right, and the center of the turning circle is on the right side of the robot.
Ifradiusis zero, is zero, the robot rotates in place.The robot will stop when the degrees it has moved along the arc equals
angle.
Ifangleis positive, the robot will turn to the left (anti-clockwise).
Ifangleis negative, the robot will turn to the right (clockwise). Ifangleis zero, the robot will not move and the method returns immediately.Postcondition: Motor speeds are unpredictable.
Note: If you have specified a drift correction in the constructor it will not be applied in this method.
- Specified by:
arcin interfaceArcMoveController- Parameters:
radius- of the arc path. If positive, the left side of the robot is on the inside of the turn. If negative, the left side of the robot is on the outside of the turn.angle- The sign of the angle determines the direction of the robot turns: Positive is anti-clockwise, negative is clockwise.immediateReturn- If immediateReturn is true then the method returns immediately.- See Also:
ArcMoveController.travelArc(double, double, boolean)
-
arc
public void arc(double radius, double angle, double direction, boolean immediateReturn)Deprecated.This method moves the robot in an arc, similar to the otherarc(double, double)methods, except you can choose any of the 360 degree directions relative to the current heading (0) of the robot, while keeping the heading of the robot pointed in the same direction during the move. NOTE: This method is not part of the MoveController interface.- Parameters:
radius-angle-direction-immediateReturn-
-
reset
public void reset()
Deprecated.Reset all tacho counts. TODO: Delete this method? Unused by any other method or class.
-
setSpeed
@Deprecated public void setSpeed(int speed)
Deprecated.in 0.8, use setRotateSpeed() and setTravelSpeed(). The method was deprecated, as this it requires knowledge of the robots physical construction, which this interface should hide!Sets drive motor speed.- Parameters:
speed- the new speed
-
arcBackward
public void arcBackward(double radius)
Deprecated.Description copied from interface:ArcMoveControllerStarts the NXT robot moving backward along an arc with a specified radius.If
radiusis positive, the robot arcs left, and the center of the turning circle is on the left side of the robot.
Ifradiusis negative, the robot arcs right, and the center of the turning circle is on the right side of the robot.
Ifradiusis zero, the robot rotates in place.Postcondition: Motor speeds are unpredictable.
Note: If you have specified a drift correction in the constructor it will not be applied in this method.
- Specified by:
arcBackwardin interfaceArcMoveController- Parameters:
radius- of the arc path. If positive, the left side of the robot is on the inside of the turn. If negative, the left side of the robot is on the outside of the turn.
-
arcForward
public void arcForward(double radius)
Deprecated.Description copied from interface:ArcMoveControllerStarts the NXT robot moving forward along an arc with a specified radius.If
radiusis positive, the robot arcs left, and the center of the turning circle is on the left side of the robot.
Ifradiusis negative, the robot arcs right, and the center of the turning circle is on the right side of the robot.
Ifradiusis zero, the robot rotates in place.Postcondition: Motor speeds are unpredictable.
Note: If you have specified a drift correction in the constructor it will not be applied in this method.
- Specified by:
arcForwardin interfaceArcMoveController- Parameters:
radius- of the arc path. If positive, the left side of the robot is on the inside of the turn. If negative, the left side of the robot is on the outside of the turn.
-
getMinRadius
public double getMinRadius()
Deprecated.Description copied from interface:ArcMoveControllerThe minimum steering radius this vehicle is capable of when traveling in an arc. Theoretically this should be identical for both forward and reverse travel. In practice?- Specified by:
getMinRadiusin interfaceArcMoveController- Returns:
- the radius in degrees
-
setMinRadius
public void setMinRadius(double radius)
Deprecated.Description copied from interface:ArcMoveControllerSet the radius of the minimum turning circle.- Specified by:
setMinRadiusin interfaceArcMoveController- Parameters:
radius- the radius in degrees
-
addMoveListener
public void addMoveListener(MoveListener listener)
Deprecated.Description copied from interface:MoveProviderAdds a MoveListener that will be notified of all movement events.- Specified by:
addMoveListenerin interfaceMoveProvider- Parameters:
listener- the move listener
-
getMovement
public Move getMovement()
Deprecated.Description copied from interface:MoveProviderReturns the move made since the move started, but before it has completed. This method is used by GUI maps to display the movement of a robot in real time. The robot must be capable of determining the move while it is in motion.- Specified by:
getMovementin interfaceMoveProvider- Returns:
- The move made since the move started.
-
rotationStarted
public void rotationStarted(RegulatedMotor motor, int tachoCount, boolean stalled, long timeStamp)
Deprecated.Description copied from interface:RegulatedMotorListenerCalled when the motor starts rotating.- Specified by:
rotationStartedin interfaceRegulatedMotorListener
-
rotationStopped
public void rotationStopped(RegulatedMotor motor, int tachoCount, boolean stalled, long timeStamp)
Deprecated.Notify the MoveListeners when a move is completed.- Specified by:
rotationStoppedin interfaceRegulatedMotorListener
-
rotateRight
public void rotateRight()
Deprecated.- Specified by:
rotateRightin interfaceRotateMoveController
-
rotateLeft
public void rotateLeft()
Deprecated.- Specified by:
rotateLeftin interfaceRotateMoveController
-
setAngularAcceleration
public void setAngularAcceleration(double acceleration)
Deprecated.Description copied from interface:RotateMoveControllerSets the acceleration at which the robot will accelerate at the start of a move and decelerate at the end of a move. Acceleration is measured in units/second^2. e.g. If wheel diameter is cm, then acceleration is cm/sec^2.If acceleration is set during a move it will not be in used for the current move, it will be in effect with the next move.
- Specified by:
setAngularAccelerationin interfaceRotateMoveController- Parameters:
acceleration- in chosen units/second^2
-
getAngularAcceleration
public double getAngularAcceleration()
Deprecated.Description copied from interface:RotateMoveControllerReturns the acceleration at which the robot accelerates at the start of a move and decelerates at the end of a move.- Specified by:
getAngularAccelerationin interfaceRotateMoveController- Returns:
- acceleration in chosen units/second^2
-
-