Package edu.tufts.hrilab.diarcros.pr2
Class ArmTrajController
java.lang.Object
edu.tufts.hrilab.diarcros.pr2.ArmTrajController
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidvoidvoidvoidcancelLArmControllerFollowJointTrajectoryClientGoalsAtAndBeforeTime(edu.tufts.hrilab.diarcros.msg.Time time) voidvoidcancelLArmControllerJointTrajectoryActionClientGoalsAtAndBeforeTime(edu.tufts.hrilab.diarcros.msg.Time time) voidvoidcancelRArmControllerFollowJointTrajectoryClientGoalsAtAndBeforeTime(edu.tufts.hrilab.diarcros.msg.Time time) voidvoidcancelRArmControllerJointTrajectoryActionClientGoalsAtAndBeforeTime(edu.tufts.hrilab.diarcros.msg.Time time) edu.tufts.hrilab.diarcros.msg.Timecontrol_msgs.FollowJointTrajectoryResultorg.ros.actionlib.state.SimpleClientGoalStatepr2_controllers_msgs.JointTrajectoryResultorg.ros.actionlib.state.SimpleClientGoalStateedu.tufts.hrilab.diarcros.msg.pr2_controllers_msgs.JointTrajectoryControllerStatecontrol_msgs.FollowJointTrajectoryResultorg.ros.actionlib.state.SimpleClientGoalStatepr2_controllers_msgs.JointTrajectoryResultorg.ros.actionlib.state.SimpleClientGoalStateedu.tufts.hrilab.diarcros.msg.pr2_controllers_msgs.JointTrajectoryControllerStatebooleanIs node connected to ROS and ready.voidsendLArmControllerFollowJointTrajectoryClientGoal(edu.tufts.hrilab.diarcros.msg.control_msgs.FollowJointTrajectoryGoal goal) voidsendLArmControllerJointTrajectoryActionClientGoal(edu.tufts.hrilab.diarcros.msg.pr2_controllers_msgs.JointTrajectoryGoal goal) voidsendRArmControllerFollowJointTrajectoryClientGoal(edu.tufts.hrilab.diarcros.msg.control_msgs.FollowJointTrajectoryGoal goal) voidsendRArmControllerJointTrajectoryActionClientGoal(edu.tufts.hrilab.diarcros.msg.pr2_controllers_msgs.JointTrajectoryGoal goal) voidbooleanwaitForLArmControllerFollowJointTrajectoryClientResult(long timeout, TimeUnit units) voidbooleanwaitForLArmControllerFollowJointTrajectoryClientServer(long timeout, TimeUnit units) voidbooleanwaitForLArmControllerJointTrajectoryActionClientResult(long timeout, TimeUnit units) voidbooleanwaitForLArmControllerJointTrajectoryActionClientServer(long timeout, TimeUnit units) voidbooleanwaitForNode(long timeout) Wait for node to be ready, with timeout.voidbooleanwaitForRArmControllerFollowJointTrajectoryClientResult(long timeout, TimeUnit units) voidbooleanwaitForRArmControllerFollowJointTrajectoryClientServer(long timeout, TimeUnit units) voidbooleanwaitForRArmControllerJointTrajectoryActionClientResult(long timeout, TimeUnit units) voidbooleanwaitForRArmControllerJointTrajectoryActionClientServer(long timeout, TimeUnit units)
-
Constructor Details
-
ArmTrajController
public ArmTrajController()
-
-
Method Details
-
waitForNode
public void waitForNode() -
waitForNode
public boolean waitForNode(long timeout) Wait for node to be ready, with timeout. If timeout is reached and node is not ready, will return false.- Parameters:
timeout- how long to wait in seconds- Returns:
-
isNodeReady
public boolean isNodeReady()Is node connected to ROS and ready.- Returns:
-
getRArmControllerState
public edu.tufts.hrilab.diarcros.msg.pr2_controllers_msgs.JointTrajectoryControllerState getRArmControllerState() -
getLArmControllerState
public edu.tufts.hrilab.diarcros.msg.pr2_controllers_msgs.JointTrajectoryControllerState getLArmControllerState() -
cancelAllRArmControllerFollowJointTrajectoryClientGoals
public void cancelAllRArmControllerFollowJointTrajectoryClientGoals() -
cancelRArmControllerFollowJointTrajectoryClientGoal
public void cancelRArmControllerFollowJointTrajectoryClientGoal() throws org.ros.exception.RosException- Throws:
org.ros.exception.RosException
-
cancelRArmControllerFollowJointTrajectoryClientGoalsAtAndBeforeTime
public void cancelRArmControllerFollowJointTrajectoryClientGoalsAtAndBeforeTime(edu.tufts.hrilab.diarcros.msg.Time time) -
getRArmControllerFollowJointTrajectoryClientResult
public control_msgs.FollowJointTrajectoryResult getRArmControllerFollowJointTrajectoryClientResult() throws org.ros.exception.RosException- Throws:
org.ros.exception.RosException
-
getRArmControllerFollowJointTrajectoryClientState
public org.ros.actionlib.state.SimpleClientGoalState getRArmControllerFollowJointTrajectoryClientState() -
sendRArmControllerFollowJointTrajectoryClientGoal
public void sendRArmControllerFollowJointTrajectoryClientGoal(edu.tufts.hrilab.diarcros.msg.control_msgs.FollowJointTrajectoryGoal goal) throws org.ros.exception.RosException - Throws:
org.ros.exception.RosException
-
waitForRArmControllerFollowJointTrajectoryClientResult
- Throws:
InterruptedException
-
waitForRArmControllerFollowJointTrajectoryClientResult
public boolean waitForRArmControllerFollowJointTrajectoryClientResult(long timeout, TimeUnit units) throws InterruptedException - Throws:
InterruptedException
-
waitForRArmControllerFollowJointTrajectoryClientServer
- Throws:
InterruptedException
-
waitForRArmControllerFollowJointTrajectoryClientServer
public boolean waitForRArmControllerFollowJointTrajectoryClientServer(long timeout, TimeUnit units) throws InterruptedException - Throws:
InterruptedException
-
cancelAllRArmControllerJointTrajectoryActionClientGoals
public void cancelAllRArmControllerJointTrajectoryActionClientGoals() -
cancelRArmControllerJointTrajectoryActionClientGoal
public void cancelRArmControllerJointTrajectoryActionClientGoal() throws org.ros.exception.RosException- Throws:
org.ros.exception.RosException
-
cancelRArmControllerJointTrajectoryActionClientGoalsAtAndBeforeTime
public void cancelRArmControllerJointTrajectoryActionClientGoalsAtAndBeforeTime(edu.tufts.hrilab.diarcros.msg.Time time) -
getRArmControllerJointTrajectoryActionClientResult
public pr2_controllers_msgs.JointTrajectoryResult getRArmControllerJointTrajectoryActionClientResult() throws org.ros.exception.RosException- Throws:
org.ros.exception.RosException
-
getRArmControllerJointTrajectoryActionClientState
public org.ros.actionlib.state.SimpleClientGoalState getRArmControllerJointTrajectoryActionClientState() -
sendRArmControllerJointTrajectoryActionClientGoal
public void sendRArmControllerJointTrajectoryActionClientGoal(edu.tufts.hrilab.diarcros.msg.pr2_controllers_msgs.JointTrajectoryGoal goal) throws org.ros.exception.RosException - Throws:
org.ros.exception.RosException
-
waitForRArmControllerJointTrajectoryActionClientResult
- Throws:
InterruptedException
-
waitForRArmControllerJointTrajectoryActionClientResult
public boolean waitForRArmControllerJointTrajectoryActionClientResult(long timeout, TimeUnit units) throws InterruptedException - Throws:
InterruptedException
-
waitForRArmControllerJointTrajectoryActionClientServer
- Throws:
InterruptedException
-
waitForRArmControllerJointTrajectoryActionClientServer
public boolean waitForRArmControllerJointTrajectoryActionClientServer(long timeout, TimeUnit units) throws InterruptedException - Throws:
InterruptedException
-
cancelAllLArmControllerFollowJointTrajectoryClientGoals
public void cancelAllLArmControllerFollowJointTrajectoryClientGoals() -
cancelLArmControllerFollowJointTrajectoryClientGoal
public void cancelLArmControllerFollowJointTrajectoryClientGoal() throws org.ros.exception.RosException- Throws:
org.ros.exception.RosException
-
cancelLArmControllerFollowJointTrajectoryClientGoalsAtAndBeforeTime
public void cancelLArmControllerFollowJointTrajectoryClientGoalsAtAndBeforeTime(edu.tufts.hrilab.diarcros.msg.Time time) -
getLArmControllerFollowJointTrajectoryClientResult
public control_msgs.FollowJointTrajectoryResult getLArmControllerFollowJointTrajectoryClientResult() throws org.ros.exception.RosException- Throws:
org.ros.exception.RosException
-
getLArmControllerFollowJointTrajectoryClientState
public org.ros.actionlib.state.SimpleClientGoalState getLArmControllerFollowJointTrajectoryClientState() -
sendLArmControllerFollowJointTrajectoryClientGoal
public void sendLArmControllerFollowJointTrajectoryClientGoal(edu.tufts.hrilab.diarcros.msg.control_msgs.FollowJointTrajectoryGoal goal) throws org.ros.exception.RosException - Throws:
org.ros.exception.RosException
-
waitForLArmControllerFollowJointTrajectoryClientResult
- Throws:
InterruptedException
-
waitForLArmControllerFollowJointTrajectoryClientResult
public boolean waitForLArmControllerFollowJointTrajectoryClientResult(long timeout, TimeUnit units) throws InterruptedException - Throws:
InterruptedException
-
waitForLArmControllerFollowJointTrajectoryClientServer
- Throws:
InterruptedException
-
waitForLArmControllerFollowJointTrajectoryClientServer
public boolean waitForLArmControllerFollowJointTrajectoryClientServer(long timeout, TimeUnit units) throws InterruptedException - Throws:
InterruptedException
-
cancelAllLArmControllerJointTrajectoryActionClientGoals
public void cancelAllLArmControllerJointTrajectoryActionClientGoals() -
cancelLArmControllerJointTrajectoryActionClientGoal
public void cancelLArmControllerJointTrajectoryActionClientGoal() throws org.ros.exception.RosException- Throws:
org.ros.exception.RosException
-
cancelLArmControllerJointTrajectoryActionClientGoalsAtAndBeforeTime
public void cancelLArmControllerJointTrajectoryActionClientGoalsAtAndBeforeTime(edu.tufts.hrilab.diarcros.msg.Time time) -
getLArmControllerJointTrajectoryActionClientResult
public pr2_controllers_msgs.JointTrajectoryResult getLArmControllerJointTrajectoryActionClientResult() throws org.ros.exception.RosException- Throws:
org.ros.exception.RosException
-
getLArmControllerJointTrajectoryActionClientState
public org.ros.actionlib.state.SimpleClientGoalState getLArmControllerJointTrajectoryActionClientState() -
sendLArmControllerJointTrajectoryActionClientGoal
public void sendLArmControllerJointTrajectoryActionClientGoal(edu.tufts.hrilab.diarcros.msg.pr2_controllers_msgs.JointTrajectoryGoal goal) throws org.ros.exception.RosException - Throws:
org.ros.exception.RosException
-
waitForLArmControllerJointTrajectoryActionClientResult
- Throws:
InterruptedException
-
waitForLArmControllerJointTrajectoryActionClientResult
public boolean waitForLArmControllerJointTrajectoryActionClientResult(long timeout, TimeUnit units) throws InterruptedException - Throws:
InterruptedException
-
waitForLArmControllerJointTrajectoryActionClientServer
- Throws:
InterruptedException
-
waitForLArmControllerJointTrajectoryActionClientServer
public boolean waitForLArmControllerJointTrajectoryActionClientServer(long timeout, TimeUnit units) throws InterruptedException - Throws:
InterruptedException
-
getCurrentTime
public edu.tufts.hrilab.diarcros.msg.Time getCurrentTime()
-