Package edu.tufts.hrilab.diarcros.pr2
Class ArmTrajController
java.lang.Object
edu.tufts.hrilab.diarcros.pr2.ArmTrajController
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
void
void
void
cancelLArmControllerFollowJointTrajectoryClientGoalsAtAndBeforeTime
(edu.tufts.hrilab.diarcros.msg.Time time) void
void
cancelLArmControllerJointTrajectoryActionClientGoalsAtAndBeforeTime
(edu.tufts.hrilab.diarcros.msg.Time time) void
void
cancelRArmControllerFollowJointTrajectoryClientGoalsAtAndBeforeTime
(edu.tufts.hrilab.diarcros.msg.Time time) void
void
cancelRArmControllerJointTrajectoryActionClientGoalsAtAndBeforeTime
(edu.tufts.hrilab.diarcros.msg.Time time) edu.tufts.hrilab.diarcros.msg.Time
control_msgs.FollowJointTrajectoryResult
org.ros.actionlib.state.SimpleClientGoalState
pr2_controllers_msgs.JointTrajectoryResult
org.ros.actionlib.state.SimpleClientGoalState
edu.tufts.hrilab.diarcros.msg.pr2_controllers_msgs.JointTrajectoryControllerState
control_msgs.FollowJointTrajectoryResult
org.ros.actionlib.state.SimpleClientGoalState
pr2_controllers_msgs.JointTrajectoryResult
org.ros.actionlib.state.SimpleClientGoalState
edu.tufts.hrilab.diarcros.msg.pr2_controllers_msgs.JointTrajectoryControllerState
boolean
Is node connected to ROS and ready.void
sendLArmControllerFollowJointTrajectoryClientGoal
(edu.tufts.hrilab.diarcros.msg.control_msgs.FollowJointTrajectoryGoal goal) void
sendLArmControllerJointTrajectoryActionClientGoal
(edu.tufts.hrilab.diarcros.msg.pr2_controllers_msgs.JointTrajectoryGoal goal) void
sendRArmControllerFollowJointTrajectoryClientGoal
(edu.tufts.hrilab.diarcros.msg.control_msgs.FollowJointTrajectoryGoal goal) void
sendRArmControllerJointTrajectoryActionClientGoal
(edu.tufts.hrilab.diarcros.msg.pr2_controllers_msgs.JointTrajectoryGoal goal) void
boolean
waitForLArmControllerFollowJointTrajectoryClientResult
(long timeout, TimeUnit units) void
boolean
waitForLArmControllerFollowJointTrajectoryClientServer
(long timeout, TimeUnit units) void
boolean
waitForLArmControllerJointTrajectoryActionClientResult
(long timeout, TimeUnit units) void
boolean
waitForLArmControllerJointTrajectoryActionClientServer
(long timeout, TimeUnit units) void
boolean
waitForNode
(long timeout) Wait for node to be ready, with timeout.void
boolean
waitForRArmControllerFollowJointTrajectoryClientResult
(long timeout, TimeUnit units) void
boolean
waitForRArmControllerFollowJointTrajectoryClientServer
(long timeout, TimeUnit units) void
boolean
waitForRArmControllerJointTrajectoryActionClientResult
(long timeout, TimeUnit units) void
boolean
waitForRArmControllerJointTrajectoryActionClientServer
(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()
-