@@ -414,7 +414,8 @@ def trimerworkCallback(self, req):
414414
415415 x_threshold = 0.01
416416 y_threshold = 0.01
417- x_dis_tar = 0.395
417+ #x_dis_tar = 0.395
418+ x_dis_tar = 0.290
418419 angle_threshold = 0.1
419420
420421 while not rospy .is_shutdown ():
@@ -449,11 +450,11 @@ def trimerworkCallback(self, req):
449450 if np .abs (target_pos [0 ]- x_dis_tar ) <= x_threshold and (
450451 np .abs (target_pos [1 ]) <= y_threshold
451452 ):
452- rospy .loginfo ("Trim well in the all dimention, going open loop" )
453- self .sendBaseVel ([0.25 , 0.0 , 0.0 ])
454- rospy .sleep (0.3 )
455- self .sendBaseVel ([0.25 , 0.0 , 0.0 ])
456- rospy .sleep (0.3 )
453+ # rospy.loginfo("Trim well in the all dimention, going open loop")
454+ # self.sendBaseVel([0.25, 0.0, 0.0])
455+ # rospy.sleep(0.3)
456+ # self.sendBaseVel([0.25, 0.0, 0.0])
457+ # rospy.sleep(0.3)
457458 self .sendBaseVel ([0.0 , 0.0 , 0.0 ])
458459 rospy .loginfo ("Place: reach the goal for placing." )
459460 break
@@ -465,7 +466,7 @@ def trimerworkCallback(self, req):
465466 self .current_marker_poses
466467 )
467468 self .sendBaseVel ([0.0 , 0.0 , 0.0 ])
468- rospy .sleep (1 .0 )
469+ rospy .sleep (2 .0 )
469470 self .pre ()
470471 rospy .sleep (2.5 )
471472 self .open_gripper ()
@@ -488,7 +489,8 @@ def trimerworkCallback(self, req):
488489
489490 x_threshold = 0.01
490491 y_threshold = 0.01
491- x_dis_tar = 0.379
492+ #x_dis_tar = 0.379
493+ x_dis_tar = 0.274
492494 angle_threshold = 0.1
493495
494496 while not rospy .is_shutdown ():
@@ -523,13 +525,13 @@ def trimerworkCallback(self, req):
523525 if np .abs (target_pos [0 ] - x_dis_tar ) <= x_threshold and (
524526 np .abs (target_pos [1 ]) <= y_threshold
525527 ):
526- rospy .loginfo ("Trim well in the all dimention, going open loop" )
527- self .sendBaseVel ([0.0 , 0.0 , 0.0 ])
528- rospy .sleep (1.0 )
529- self .sendBaseVel ([0.25 , 0.0 , 0.0 ])
530- rospy .sleep (0.3 )
531- self .sendBaseVel ([0.25 , 0.0 , 0.0 ])
532- rospy .sleep (0.3 )
528+ # rospy.loginfo("Trim well in the all dimention, going open loop")
529+ # self.sendBaseVel([0.0, 0.0, 0.0])
530+ # rospy.sleep(1.0)
531+ # self.sendBaseVel([0.25, 0.0, 0.0])
532+ # rospy.sleep(0.3)
533+ # self.sendBaseVel([0.25, 0.0, 0.0])
534+ # rospy.sleep(0.3)
533535 self .sendBaseVel ([0.0 , 0.0 , 0.0 ])
534536 rospy .loginfo ("Place: reach the goal for placing." )
535537 break
@@ -562,7 +564,8 @@ def trimerworkCallback(self, req):
562564
563565 x_threshold = 0.01
564566 y_threshold = 0.01
565- x_dis_tar = 0.378
567+ #x_dis_tar = 0.378
568+ x_dis_tar = 0.273
566569 angle_threshold = 0.1
567570
568571 while not rospy .is_shutdown ():
@@ -597,13 +600,13 @@ def trimerworkCallback(self, req):
597600 if np .abs (target_pos [0 ] - x_dis_tar ) <= x_threshold and (
598601 np .abs (target_pos [1 ]) <= y_threshold
599602 ):
600- rospy .loginfo ("Trim well in the all dimention, going open loop" )
601- self .sendBaseVel ([0.0 , 0.0 , 0.0 ])
602- rospy .sleep (1.0 )
603- self .sendBaseVel ([0.25 , 0.0 , 0.0 ])
604- rospy .sleep (0.3 )
605- self .sendBaseVel ([0.25 , 0.0 , 0.0 ])
606- rospy .sleep (0.3 )
603+ # rospy.loginfo("Trim well in the all dimention, going open loop")
604+ # self.sendBaseVel([0.0, 0.0, 0.0])
605+ # rospy.sleep(1.0)
606+ # self.sendBaseVel([0.25, 0.0, 0.0])
607+ # rospy.sleep(0.3)
608+ # self.sendBaseVel([0.25, 0.0, 0.0])
609+ # rospy.sleep(0.3)
607610 self .sendBaseVel ([0.0 , 0.0 , 0.0 ])
608611 rospy .loginfo ("Place: reach the goal for placing." )
609612 break
@@ -636,7 +639,8 @@ def trimerworkCallback(self, req):
636639
637640 x_threshold = 0.01
638641 y_threshold = 0.01
639- x_dis_tar = 0.377
642+ #x_dis_tar = 0.377
643+ x_dis_tar = 0.272
640644 angle_threshold = 0.1
641645
642646 while not rospy .is_shutdown ():
@@ -671,13 +675,13 @@ def trimerworkCallback(self, req):
671675 if np .abs (target_pos [0 ] - x_dis_tar ) <= x_threshold and (
672676 np .abs (target_pos [1 ]) <= y_threshold
673677 ):
674- rospy .loginfo ("Trim well in the all dimention, going open loop" )
675- self .sendBaseVel ([0.0 , 0.0 , 0.0 ])
676- rospy .sleep (1.0 )
677- self .sendBaseVel ([0.25 , 0.0 , 0.0 ])
678- rospy .sleep (0.3 )
679- self .sendBaseVel ([0.25 , 0.0 , 0.0 ])
680- rospy .sleep (0.3 )
678+ # rospy.loginfo("Trim well in the all dimention, going open loop")
679+ # self.sendBaseVel([0.0, 0.0, 0.0])
680+ # rospy.sleep(1.0)
681+ # self.sendBaseVel([0.25, 0.0, 0.0])
682+ # rospy.sleep(0.3)
683+ # self.sendBaseVel([0.25, 0.0, 0.0])
684+ # rospy.sleep(0.3)
681685 self .sendBaseVel ([0.0 , 0.0 , 0.0 ])
682686 rospy .loginfo ("Place: reach the goal for placing." )
683687 break
0 commit comments