Open
Conversation
4192a6d to
c60847a
Compare
c60847a to
6d477b7
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR implements calibration, unit conversion (ADC to Newton), and drift detection for the KJS force sensors (Alps Alpine HSFPAR003A).
Previously, the bridge only published raw ADC values for individual sensor elements. This update aggregates the 4-element sensor values, applies a conversion formula based on the hardware specification, and provides a mechanism to zero-out the preload via a ROS service.
Key Changes
For each sensor ID (e.g.,
/kjs/19/...), the following topics are now available:/forceWrenchStamped/force_correctedWrenchStamped/force_NWrenchStamped/force_driftedBool(Latched)Trueif drift > 0.1N/min (unstable),Falseotherwise.Notes
Sensor Warm-up: The force sensor values (HSFPAR003A) tend to drift immediately after power-on due to initial temperature changes. It typically takes about 10 minutes for the values to stabilize. Please wait for the force_drifted topic to become False before performing critical calibration.
How to Test
/kjs/{id}/forceto see raw values.rosservice call /rcb4_ros_bridge/calibrate_force_sensor./kjs/{id}/force_Nis now being published and is near 0.0 N./kjs/{id}/force_driftedto check the stability of the sensor.