From f741616f0f934ebff004eda1ff310f32e9b65596 Mon Sep 17 00:00:00 2001 From: Tim Schneider Date: Tue, 4 Jun 2024 17:33:57 +0200 Subject: [PATCH] Fixed issues in Gripper example in README --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index a2d10f2b..5e983fef 100644 --- a/README.md +++ b/README.md @@ -492,7 +492,7 @@ double speed = 0.02; // [m/s] double force = 20.0; // [N] // Move the fingers to a specific width (5cm) -bool success = gripper.move(0.05, speed, force); +bool success = gripper.move(0.05, speed); // Grasp an object of unknown width success &= gripper.grasp(0.0, speed, force, epsilon_outer=1.0); @@ -504,7 +504,7 @@ double width = gripper.width(); gripper.open(speed); // There are also asynchronous versions of the methods -std::future success_future = gripper.moveAsync(0.05, speed, force); +std::future success_future = gripper.moveAsync(0.05, speed); // Wait for 1s if (!success_future.wait_for(std::chrono::seconds(1)) == std::future_status::ready) { @@ -527,19 +527,19 @@ speed = 0.02 # [m/s] force = 20.0 # [N] # Move the fingers to a specific width (5cm) -success = gripper.move(0.05, speed, force) +success = gripper.move(0.05, speed) # Grasp an object of unknown width success &= gripper.grasp(0.0, speed, force, epsilon_outer=1.0) # Get the width of the grasped object -width = gripper.width() +width = gripper.width # Release the object gripper.open(speed) # There are also asynchronous versions of the methods -success_future = gripper.move_async(0.05, speed, force) +success_future = gripper.move_async(0.05, speed) # Wait for 1s if success_future.wait(1):