Skip to content

Commit 8f993a9

Browse files
committed
CHG: removed prev_force check
1 parent 03ec919 commit 8f993a9

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

robotiq_hande_driver/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1414

1515
### Fixed
1616

17+
* [PR-34](https://github.com/AGH-CEAI/robotiq_hande_driver/pull/34) - Fixed check for dropping request to set the same gripper position.
1718
* [PR-34](https://github.com/AGH-CEAI/robotiq_hande_driver/pull/34) - Fixed non-deterministic control node's frequency hicups by removing call to the modbus write in time-critical code block.
1819
* [PR-33](https://github.com/AGH-CEAI/robotiq_hande_driver/pull/33) - Fixed missing ros2_control_test_assets dependency in CMakeLists.txt that causes build failures after ROS2 Humble package updates.
1920

robotiq_hande_driver/hardware/src/hande_gripper.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,12 +82,9 @@ double HandeGripper::get_position() const {
8282

8383
void HandeGripper::set_position(double position, double force) {
8484
static double prev_position = std::numeric_limits<double>::quiet_NaN();
85-
static double prev_force = std::numeric_limits<double>::quiet_NaN();
8685

8786
if(!std::isnan(prev_position) && std::fabs(position - prev_position) < EPSILON) return;
88-
if(!std::isnan(prev_force) && std::fabs(force - prev_force) < EPSILON) return;
8987
prev_position = position;
90-
prev_force = force;
9188

9289
uint8_t scaled_position = (gripper_position_max_ - position) / gripper_postion_step_;
9390
uint8_t scaled_force = static_cast<uint8_t>(force * MAX_FORCE);

0 commit comments

Comments
 (0)