def send_traj(self,fold_traj):
     try:
         srv = rospy.ServiceProxy('execute_fold',ExecuteFold)
         resp = srv(ExecuteFoldRequest(fold_traj=fold_traj))
         return True
     except rospy.ServiceException,e:
         rospy.loginfo("Service Call Failed: %s"%e)
         return False
Example #2
0
 def send_traj(self,fold_traj):
     try:
         srv = rospy.ServiceProxy('execute_fold',ExecuteFold)
         resp = srv(ExecuteFoldRequest(fold_traj=fold_traj))
         return True
     except rospy.ServiceException,e:
         rospy.loginfo("Service Call Failed: %s"%e)
         return False
 def adjustFoldline(self,intended):
     #intended.expand(10)
     start = self.convert_to_world_frame(intended.start())
     end = self.convert_to_world_frame(intended.end())
     try:
         srv = rospy.ServiceProxy('adjust_fold',AdjustFold)
         resp = srv(start,end)
     except rospy.ServiceException,e:
         rospy.loginfo("Service Call Failed: %s"%e)
         return False
Example #4
0
 def adjustFoldline(self,intended):
     #intended.expand(10)
     start = self.convert_to_world_frame(intended.start())
     end = self.convert_to_world_frame(intended.end())
     try:
         srv = rospy.ServiceProxy('adjust_fold',AdjustFold)
         resp = srv(start,end)
     except rospy.ServiceException,e:
         rospy.loginfo("Service Call Failed: %s"%e)
         return False