Skip to content

Commit f741616

Browse files
Fixed issues in Gripper example in README
1 parent e6d05d6 commit f741616

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -492,7 +492,7 @@ double speed = 0.02; // [m/s]
492492
double force = 20.0; // [N]
493493

494494
// 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);
496496

497497
// Grasp an object of unknown width
498498
success &= gripper.grasp(0.0, speed, force, epsilon_outer=1.0);
@@ -504,7 +504,7 @@ double width = gripper.width();
504504
gripper.open(speed);
505505

506506
// 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);
508508

509509
// Wait for 1s
510510
if (!success_future.wait_for(std::chrono::seconds(1)) == std::future_status::ready) {
@@ -527,19 +527,19 @@ speed = 0.02 # [m/s]
527527
force = 20.0 # [N]
528528

529529
# Move the fingers to a specific width (5cm)
530-
success = gripper.move(0.05, speed, force)
530+
success = gripper.move(0.05, speed)
531531

532532
# Grasp an object of unknown width
533533
success &= gripper.grasp(0.0, speed, force, epsilon_outer=1.0)
534534

535535
# Get the width of the grasped object
536-
width = gripper.width()
536+
width = gripper.width
537537

538538
# Release the object
539539
gripper.open(speed)
540540

541541
# 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)
543543

544544
# Wait for 1s
545545
if success_future.wait(1):

0 commit comments

Comments
 (0)