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.
For JSK Users
Worm Gear Module Calibration Tool
armh7-tools
provides a comprehensive solution for calibrating and managing worm gear modules connected via theARMH7Interface
.It facilitates the calibration of worm gears, reading of calibrated sensor data, and real-time display of sensor and worm gear values.
Designed for flexibility, it supports operations like calibration data update and in-place modification of YAML configuration files.
YAML Configuration Format
The calibration tool requires an input YAML file for worm gear modules configuration.
This file contains a list of worm gears with their associated parameters:
worm_id
,servo_id
,sensor_id
,and initial magnetic encoder value
magenc_init
.Each worm gear is represented by a line in the YAML file with its parameters encapsulated in curly braces and prefixed by a dash, indicating a list item in YAML syntax.
Reading Worm Gear Modules's calibration data
--device
,-d
: Specify the device port. (Default: None)output_file_path
: Path to output the YAML file with calibration data.Example
Calibrate Worm Gear Modules
--device
,-d
: Specify the device port. (Default: None)file_path
: Path to the input YAML file containing worm gear configurations.--inplace
,-i
: Overwrite the input YAML file with calibration results. (Optional)--update
,-u
: Ignore and overwrite the current magenc_init values in the input YAML. (Optional)--output
,-o
: Specify a path to save the calibrated data if not overwriting in-place. (Optional)Example
When the
update
option is specified, the current posture of the robot will be modified,and upon pressing the Enter key, the angle at that moment will be set as the zero point.
Consequently, the
magenc_init
value will be updated and written to the board,Print Sensor Values
This command displays real-time sensor values in a table format.
Print Worm Values
Displays real-time worm gear values in a table format.