Package edu.tufts.hrilab.movebase
Class MockMoveBaseComponent
java.lang.Object
edu.tufts.hrilab.diarc.DiarcComponent
edu.tufts.hrilab.movebase.MockMoveBaseComponent
- All Implemented Interfaces:
MoveBaseInterface
- Direct Known Subclasses:
MockUnityPR2Component
-
Field Summary
Fields inherited from class edu.tufts.hrilab.diarc.DiarcComponent
executionLoopCycleTime, log, shouldRunExecutionLoop -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected List<org.apache.commons.cli.Option>Override this method to define command line options available in sub-class.approachLocation(Symbol desiredLocation) 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 locationprotected javax.vecmath.Matrix4dgetLocationPose(Symbol refID) double[]protected PoseReferencegetPoseReference(Symbol refID) 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 frontprotected voidinit()Perform any component initialization.isMoving()protected voidparseArgs(org.apache.commons.cli.CommandLine cmdLine) Override this method to parse command line args in the sub-class.voidsetPoseGlobal(double x, double y, double theta) voidAny component that needs particular shutdown logic needs to override this method andstop()Methods inherited from class edu.tufts.hrilab.diarc.DiarcComponent
createInstance, createInstance, createInstance, createInstance, executionLoop, getMyGroupConstraints, getMyGroups, getMyService, getMyServices, main, shutdown
-
Constructor Details
-
MockMoveBaseComponent
public MockMoveBaseComponent()
-
-
Method Details
-
additionalUsageInfo
Description copied from class:DiarcComponentOverride this method to define command line options available in sub-class. This should be paired with a parseArgs implementation.- Overrides:
additionalUsageInfoin classDiarcComponent- Returns:
-
parseArgs
protected void parseArgs(org.apache.commons.cli.CommandLine cmdLine) Description copied from class:DiarcComponentOverride this method to parse command line args in the sub-class. Called directly after construction to pass runtime values that will override default values. This should parse all the options that additionalUsageInfo provides.- Overrides:
parseArgsin classDiarcComponent
-
init
protected void init()Description copied from class:DiarcComponentPerform any component initialization. This should not be used for setting local fields to default values as was the case in DIARC. This method is called after the constructor, and after parseArgs. Setting default values should be done in field declaration or in the constructor.- Overrides:
initin classDiarcComponent
-
shutdownComponent
public void shutdownComponent()Description copied from class:DiarcComponentAny component that needs particular shutdown logic needs to override this method and- Overrides:
shutdownComponentin classDiarcComponent
-
setPoseGlobal
public void setPoseGlobal(double x, double y, double theta) - Specified by:
setPoseGlobalin interfaceMoveBaseInterface
-
getPoseGlobalQuat
public double[] getPoseGlobalQuat()- Specified by:
getPoseGlobalQuatin interfaceMoveBaseInterface
-
goToLocation
Description copied from interface:MoveBaseInterfaceAttempt to reach a named goal location.- Specified by:
goToLocationin interfaceMoveBaseInterface- Parameters:
location- - name of the goal location
-
goToLocation
Description copied from interface:MoveBaseInterfacego to the location and then move forward until certain distance from object in front- Specified by:
goToLocationin interfaceMoveBaseInterface- Parameters:
location- name of the desired location to navigate to- Returns:
- justification specifying if the robot navigated to the location
-
goToLocation
Description copied from interface:MoveBaseInterfacego to the location and then move forward until certain distance from object in front- Specified by:
goToLocationin interfaceMoveBaseInterface- 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
public Justification goToLocation(double xdest, double ydest, double quat_x, double quat_y, double quat_z, double quat_w, boolean wait) Description copied from interface:MoveBaseInterfacego to the point and orientation- Specified by:
goToLocationin interfaceMoveBaseInterface- 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
Description copied from interface:MoveBaseInterfacego to the location and then move forward until certain distance from object in front- Specified by:
approachLocationin interfaceMoveBaseInterface- Parameters:
desiredLocation- name of the desired location to navigate to- Returns:
- justification specifying if the robot navigated to the location
-
approachLocation
Description copied from interface:MoveBaseInterfacego to the location and then move forward until certain distance from object in front- Specified by:
approachLocationin interfaceMoveBaseInterface- 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
- Specified by:
stopin interfaceMoveBaseInterface
-
isMoving
- Specified by:
isMovingin interfaceMoveBaseInterface
-
checkAt
Description copied from interface:MoveBaseInterfaceObserver to check if the robot is at the specified named location- Specified by:
checkAtin interfaceMoveBaseInterface- Parameters:
locationTerm- predicate to observe in form: at(?actor, ?location)- Returns:
- observation result
-
getLocationPose
-
getPoseReference
-