Package edu.tufts.hrilab.interfaces
Interface MoveBaseInterface
- All Known Implementing Classes:
Forklift
,MockMoveBaseComponent
,MockUnityPR2Component
,MoveBaseComponent
public interface MoveBaseInterface
Provides simplified access to the ROS move base component on the PR2.
This interface is convenient when you want to be able to send
navigation goals without tracking their progress.
-
Method Summary
Modifier and TypeMethodDescriptionapproachLocation
(Symbol location) go to the location and then move forward until certain distance from object in frontapproachLocation
(Symbol desiredLocation, Symbol initialLocation) go to the location and then move forward until certain distance from object in frontObserver to check if the robot is at the specified named locationdouble[]
goToLocation
(double xdest, double ydest, double quat_x, double quat_y, double quat_z, double quat_w, boolean wait) go to the point and orientationgoToLocation
(Symbol location) go to the location and then move forward until certain distance from object in frontgoToLocation
(Symbol location, boolean wait) Attempt to reach a named goal location.goToLocation
(Symbol desiredLocation, Symbol initialLocation) go to the location and then move forward until certain distance from object in frontisMoving()
void
setPoseGlobal
(double x, double y, double theta) stop()
-
Method Details
-
getPoseGlobalQuat
double[] getPoseGlobalQuat() -
setPoseGlobal
void setPoseGlobal(double x, double y, double theta) -
goToLocation
Attempt to reach a named goal location.- Parameters:
location
- - name of the goal location
-
goToLocation
go to the location and then move forward until certain distance from object in front- Parameters:
location
- name of the desired location to navigate to- Returns:
- justification specifying if the robot navigated to the location
-
goToLocation
go to the location and then move forward until certain distance from object in front- Parameters:
desiredLocation
- name of the desired location to navigate toinitialLocation
- name of the initial location to navigate from -- used for conditions and effects- Returns:
- justification specifying if the robot navigated to the location
-
goToLocation
Justification goToLocation(double xdest, double ydest, double quat_x, double quat_y, double quat_z, double quat_w, boolean wait) go to the point and orientation- Parameters:
xdest
- x pointydest
- y pointquat_x
- x quaternion valuequat_y
- y quaternion valuequat_z
- z quaternion valuequat_w
- w quaternion valuewait
- should robot wait until reached desired point and orientation- Returns:
- justification if the robot reach the desired point and orientation
-
approachLocation
go to the location and then move forward until certain distance from object in front- Parameters:
location
- name of the desired location to navigate to- Returns:
- justification specifying if the robot navigated to the location
-
approachLocation
go to the location and then move forward until certain distance from object in front- Parameters:
desiredLocation
- name of the desired location to navigate toinitialLocation
- name of the initial location to navigate from -- used for conditions and effects- Returns:
- justification specifying if the robot navigated to the location
-
stop
Justification stop() -
isMoving
Justification isMoving() -
checkAt
Observer to check if the robot is at the specified named location- Parameters:
locationTerm
- predicate to observe in form: at(?actor, ?location)- Returns:
- observation result
-