-
Notifications
You must be signed in to change notification settings - Fork 12
Bump 1.4.12 #73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bump 1.4.12 #73
Conversation
…ll Dynamixel models using protocol 2.0
Add new Dynamixel model files
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Summary of Changes
Hello @Woojin-Crive, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!
This pull request updates the dynamixel_hardware_interface package to version 1.4.12. The primary goal of this update is to expand support for a wider range of Dynamixel models that utilize Protocol 2.0, ensuring broader compatibility for robotic systems.
Highlights
- Version Update: The package version has been incremented from 1.4.11 to 1.4.12.
- Expanded Dynamixel Protocol 2.0 Support: Numerous new .model files have been added to include support for a comprehensive set of Dynamixel motors operating under Protocol 2.0, such as MX, H, M, PH, PM, and YM series.
- Model Definition Refinements: Existing model definitions have been updated for accuracy, including adjustments to unit information and control table entries (e.g., clarifying 'Secondary ID' and adding external port modes).
- Model File Management Tool: A new Python script (cluster_model_files.py) has been introduced to help identify and group Dynamixel model files that share identical control table configurations, aiding in future maintenance and organization.
Using Gemini Code Assist
The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.
Invoking Gemini
You can request assistance from Gemini at any point in your pull request via creating an issue comment (i.e. comment on the pull request page) using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands.
| Feature | Command | Description |
|---|---|---|
| Code Review | /gemini review |
Performs a code review for the current pull request in its current state. |
| Pull Request Summary | /gemini summary |
Provides a summary of the current pull request in its current state. |
| Comment | @gemini-code-assist | Responds in comments when explicitly tagged, both in issue comments and review comments. |
| Help | /gemini help |
Displays a list of available commands. |
Customization
To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.
Limitations & Feedback
Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.
You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.
Footnotes
-
Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution. ↩
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code Review
This pull request bumps the package version to 1.4.12 and adds support for a large number of new Dynamixel models that use protocol 2.0. This includes adding many new model definition files and a Python script to help manage them by identifying models with identical control tables. The changes are extensive and seem to align with the goal of expanding device support. My review focuses on the correctness and maintainability of the newly added model files and the utility script. I've identified some redundant entries in the model files that could be cleaned up for better clarity, a small improvement for the new Python script to make it more robust, and a suggestion to make the changelog entry more accurate.
|
|
||
| 1.4.12 (2025-08-11) | ||
| ------------------ | ||
| * Added support for all dynamixel models that supports dynamixel protocol 2.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The claim "all dynamixel models that supports dynamixel protocol 2.0" seems to be an overstatement. This pull request adds support for a specific set of new models, but not all of them. To avoid confusion, it would be more accurate to list the newly supported model series or state that support has been expanded for additional protocol 2.0 devices.
| 168 2 Indirect Address 1 | ||
| 634 1 Indirect Data 1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These control table entries for Indirect Address 1 and Indirect Data 1 appear to be redundant. The addresses 168 and 634 are already used by Indirect Address Write and Indirect Data Write on lines 79-80. The application code uses the ...Write and ...Read named entries, making these ...1 entries unused and potentially confusing. Removing them would improve clarity and maintainability.
| 168 2 Indirect Address 1 | ||
| 634 1 Indirect Data 1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These control table entries for Indirect Address 1 and Indirect Data 1 appear to be redundant. The addresses 168 and 634 are already used by Indirect Address Write and Indirect Data Write on lines 79-80. The application code uses the ...Write and ...Read named entries, making these ...1 entries unused and potentially confusing. Removing them would improve clarity and maintainability.
| 168 2 Indirect Address 1 | ||
| 634 1 Indirect Data 1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These control table entries for Indirect Address 1 and Indirect Data 1 appear to be redundant. The addresses 168 and 634 are already used by Indirect Address Write and Indirect Data Write on lines 79-80. The application code uses the ...Write and ...Read named entries, making these ...1 entries unused and potentially confusing. Removing them would improve clarity and maintainability.
| 168 2 Indirect Address 1 | ||
| 634 1 Indirect Data 1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These control table entries for Indirect Address 1 and Indirect Data 1 appear to be redundant. The addresses 168 and 634 are already used by Indirect Address Write and Indirect Data Write on lines 79-80. The application code uses the ...Write and ...Read named entries, making these ...1 entries unused and potentially confusing. Removing them would improve clarity and maintainability.
| 244 4 Profile Velocity | ||
| 248 4 Profile Acceleration Time | ||
| 252 4 Profile Time | ||
| 256 2 Indirect Address 1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The control table entry Indirect Address 1 at address 256 seems redundant, as this address is also used by Indirect Address Write (line 110). The application code uses the ...Write and ...Read variants, making this entry unused and potentially confusing. For clarity and maintainability, it's recommended to remove this line.
| 568 2 Present Input Voltage | ||
| 570 1 Present Inverter Temperature | ||
| 571 1 Present Motor Temperature | ||
| 634 1 Indirect Data 1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The control table entry Indirect Data 1 at address 634 seems redundant, as this address is also used by Indirect Data Write (line 111). The application code uses the ...Write and ...Read variants, making this entry unused and potentially confusing. For clarity and maintainability, it's recommended to remove this line.
| 244 4 Profile Velocity | ||
| 248 4 Profile Acceleration Time | ||
| 252 4 Profile Time | ||
| 256 2 Indirect Address 1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The control table entry Indirect Address 1 at address 256 seems redundant, as this address is also used by Indirect Address Write (line 110). The application code uses the ...Write and ...Read variants, making this entry unused and potentially confusing. For clarity and maintainability, it's recommended to remove this line.
| 568 2 Present Input Voltage | ||
| 570 1 Present Inverter Temperature | ||
| 571 1 Present Motor Temperature | ||
| 634 1 Indirect Data 1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The control table entry Indirect Data 1 at address 634 seems redundant, as this address is also used by Indirect Data Write (line 111). The application code uses the ...Write and ...Read variants, making this entry unused and potentially confusing. For clarity and maintainability, it's recommended to remove this line.
| MODEL_DIR = os.path.join(os.path.dirname(__file__), '..', 'param', 'dxl_model') | ||
|
|
||
| # Get all files in the model directory | ||
| files = [f for f in os.listdir(MODEL_DIR) if os.path.isfile(os.path.join(MODEL_DIR, f))] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The current file discovery logic includes dynamixel.model, which is an index file, not a device model file, and thus lacks a [control table]. This could lead to it being incorrectly clustered. To make the script more robust and specific, it's better to exclude this file from processing.
| files = [f for f in os.listdir(MODEL_DIR) if os.path.isfile(os.path.join(MODEL_DIR, f))] | |
| files = [f for f in os.listdir(MODEL_DIR) if f != 'dynamixel.model' and os.path.isfile(os.path.join(MODEL_DIR, f))] |
No description provided.