Package edu.tufts.hrilab.movebase
Class MoveTowardsEnabler
java.lang.Object
edu.tufts.hrilab.movebase.MoveTowardsEnabler
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondouble[]
computeOffset
(double[] pose) boolean
forwardMove
(double move_speed, double distance_lim, MoveBaseComponent movebase) double
getLidarDistanceWithinAngle
(double angle) Calculate the average lidar distance within specified angle of forward-looking laser beam.Slowly work our way forward (via cmd_vel) while constantly checking the LIDAR for any potential obstacles.rotate
(double rot_amount) Rotates the robot the specified degrees of rotation or shorter equivalent rotation
-
Constructor Details
-
MoveTowardsEnabler
public MoveTowardsEnabler()
-
-
Method Details
-
getLidarDistanceWithinAngle
public double getLidarDistanceWithinAngle(double angle) Calculate the average lidar distance within specified angle of forward-looking laser beam.- Parameters:
angle
- angle to include in calculation (radians)- Returns:
-
moveTowards
Slowly work our way forward (via cmd_vel) while constantly checking the LIDAR for any potential obstacles.- Returns:
-
forwardMove
-
rotate
Rotates the robot the specified degrees of rotation or shorter equivalent rotation- Parameters:
rot_amount
- the amount to rotate in radians (counterclockwise (CCW))- Returns:
- Condition Justification if the function was a success or s failure
-
computeOffset
public double[] computeOffset(double[] pose)
-