@@ -414,7 +414,8 @@ def trimerworkCallback(self, req):
414
414
415
415
x_threshold = 0.01
416
416
y_threshold = 0.01
417
- x_dis_tar = 0.395
417
+ #x_dis_tar = 0.395
418
+ x_dis_tar = 0.290
418
419
angle_threshold = 0.1
419
420
420
421
while not rospy .is_shutdown ():
@@ -449,11 +450,11 @@ def trimerworkCallback(self, req):
449
450
if np .abs (target_pos [0 ]- x_dis_tar ) <= x_threshold and (
450
451
np .abs (target_pos [1 ]) <= y_threshold
451
452
):
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)
457
458
self .sendBaseVel ([0.0 , 0.0 , 0.0 ])
458
459
rospy .loginfo ("Place: reach the goal for placing." )
459
460
break
@@ -465,7 +466,7 @@ def trimerworkCallback(self, req):
465
466
self .current_marker_poses
466
467
)
467
468
self .sendBaseVel ([0.0 , 0.0 , 0.0 ])
468
- rospy .sleep (1 .0 )
469
+ rospy .sleep (2 .0 )
469
470
self .pre ()
470
471
rospy .sleep (2.5 )
471
472
self .open_gripper ()
@@ -488,7 +489,8 @@ def trimerworkCallback(self, req):
488
489
489
490
x_threshold = 0.01
490
491
y_threshold = 0.01
491
- x_dis_tar = 0.379
492
+ #x_dis_tar = 0.379
493
+ x_dis_tar = 0.274
492
494
angle_threshold = 0.1
493
495
494
496
while not rospy .is_shutdown ():
@@ -523,13 +525,13 @@ def trimerworkCallback(self, req):
523
525
if np .abs (target_pos [0 ] - x_dis_tar ) <= x_threshold and (
524
526
np .abs (target_pos [1 ]) <= y_threshold
525
527
):
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)
533
535
self .sendBaseVel ([0.0 , 0.0 , 0.0 ])
534
536
rospy .loginfo ("Place: reach the goal for placing." )
535
537
break
@@ -562,7 +564,8 @@ def trimerworkCallback(self, req):
562
564
563
565
x_threshold = 0.01
564
566
y_threshold = 0.01
565
- x_dis_tar = 0.378
567
+ #x_dis_tar = 0.378
568
+ x_dis_tar = 0.273
566
569
angle_threshold = 0.1
567
570
568
571
while not rospy .is_shutdown ():
@@ -597,13 +600,13 @@ def trimerworkCallback(self, req):
597
600
if np .abs (target_pos [0 ] - x_dis_tar ) <= x_threshold and (
598
601
np .abs (target_pos [1 ]) <= y_threshold
599
602
):
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)
607
610
self .sendBaseVel ([0.0 , 0.0 , 0.0 ])
608
611
rospy .loginfo ("Place: reach the goal for placing." )
609
612
break
@@ -636,7 +639,8 @@ def trimerworkCallback(self, req):
636
639
637
640
x_threshold = 0.01
638
641
y_threshold = 0.01
639
- x_dis_tar = 0.377
642
+ #x_dis_tar = 0.377
643
+ x_dis_tar = 0.272
640
644
angle_threshold = 0.1
641
645
642
646
while not rospy .is_shutdown ():
@@ -671,13 +675,13 @@ def trimerworkCallback(self, req):
671
675
if np .abs (target_pos [0 ] - x_dis_tar ) <= x_threshold and (
672
676
np .abs (target_pos [1 ]) <= y_threshold
673
677
):
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)
681
685
self .sendBaseVel ([0.0 , 0.0 , 0.0 ])
682
686
rospy .loginfo ("Place: reach the goal for placing." )
683
687
break
0 commit comments