@@ -492,7 +492,7 @@ double speed = 0.02; // [m/s]
492
492
double force = 20.0 ; // [N]
493
493
494
494
// Move the fingers to a specific width (5cm)
495
- bool success = gripper.move(0.05 , speed, force );
495
+ bool success = gripper.move(0.05 , speed);
496
496
497
497
// Grasp an object of unknown width
498
498
success &= gripper.grasp(0.0 , speed, force, epsilon_outer=1.0 );
@@ -504,7 +504,7 @@ double width = gripper.width();
504
504
gripper.open(speed);
505
505
506
506
// There are also asynchronous versions of the methods
507
- std::future<bool > success_future = gripper.moveAsync(0.05 , speed, force );
507
+ std::future<bool > success_future = gripper.moveAsync(0.05 , speed);
508
508
509
509
// Wait for 1s
510
510
if (!success_future.wait_for(std::chrono::seconds(1 )) == std::future_status::ready) {
@@ -527,19 +527,19 @@ speed = 0.02 # [m/s]
527
527
force = 20.0 # [N]
528
528
529
529
# Move the fingers to a specific width (5cm)
530
- success = gripper.move(0.05 , speed, force )
530
+ success = gripper.move(0.05 , speed)
531
531
532
532
# Grasp an object of unknown width
533
533
success &= gripper.grasp(0.0 , speed, force, epsilon_outer = 1.0 )
534
534
535
535
# Get the width of the grasped object
536
- width = gripper.width()
536
+ width = gripper.width
537
537
538
538
# Release the object
539
539
gripper.open(speed)
540
540
541
541
# There are also asynchronous versions of the methods
542
- success_future = gripper.move_async(0.05 , speed, force )
542
+ success_future = gripper.move_async(0.05 , speed)
543
543
544
544
# Wait for 1s
545
545
if success_future.wait(1 ):
0 commit comments