Skip to content

Commit

Permalink
Merge pull request #15 from micropsi-industries/smooth_guiding_filter
Browse files Browse the repository at this point in the history
Expose guiding filter parameter to sdk
  • Loading branch information
cangorur committed Nov 8, 2023
2 parents 395a3e3 + ffbe366 commit 240d40a
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
18 changes: 17 additions & 1 deletion micropsi_integration_sdk/robot_sdk.py
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,6 @@ def get_slowdown_steps_in_seconds(self) -> float:
"""
return (11 / 15.15)


def get_virtual_dynamics_parameters(self) -> dict:
"""
Optional, override as appropriate.
Expand All @@ -370,6 +369,23 @@ def get_virtual_dynamics_parameters(self) -> dict:
"moment": 0.04,
}

def get_guiding_filter_strength(self) -> float:
"""
Optional, override as appropriate.
Guiding filter strength is used to enable and smooth guiding motion inputs, i.e., FT
sensor readings. It takes values between 0 and 1. The higher the value is the more smoothing
applied on the readings to avoid a sudden increase on the forces applied. This, in the end,
avoids sudden jumps on the robot caused by sudden changes in commanded velocities, which are
calculated from the FT sensor readings.
Additionally, the filter also subtracts the guiding threshold value (the value to beat to
start guiding) from the readings. With that, we can now guide the robot with low velocities.
By default, this is disabled.
"""
return 0.0


class CartesianPoseRobot(RobotInterface):
"""
Expand Down
2 changes: 1 addition & 1 deletion micropsi_integration_sdk/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
VERSION = "0.20.0"
VERSION = "0.21.0"

0 comments on commit 240d40a

Please sign in to comment.