-
Notifications
You must be signed in to change notification settings - Fork 12
Bump 1.4.3 #33
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.3 #33
Conversation
Signed-off-by: Wonho Yun <[email protected]>
Signed-off-by: Wonho Yun <[email protected]>
Signed-off-by: Wonho Yun <[email protected]>
Signed-off-by: Wonho Yun <[email protected]>
Signed-off-by: Wonho Yun <[email protected]>
Signed-off-by: Wonho Yun <[email protected]>
Modified Build Error
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.
Hello @yun-goon, 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!
Summary of Changes
This pull request bumps the version of the dynamixel_hardware_interface package from 1.4.2 to 1.4.3. It includes a fix for build errors, updates the changelog, and modifies the dynamixel.cpp and dynamixel_hardware_interface.cpp files to improve error message formatting and remove unused variables. Additionally, the ConvertValueRPMToVelocityRPS and ConvertVelocityRPSToValueRPM functions in dynamixel_info.hpp are updated to remove the unnecessary id parameter.
Highlights
- Version Bump: The package version is bumped from 1.4.2 to 1.4.3.
- Build Error Fix: A fix is implemented to resolve build errors.
- Code Improvements: Minor code improvements are made in
dynamixel.cppanddynamixel_hardware_interface.cpp. - Function Signature Update: The
ConvertValueRPMToVelocityRPSandConvertVelocityRPSToValueRPMfunctions indynamixel_info.hppare updated to remove the unnecessaryidparameter.
Changelog
Click here to see the changelog
- CHANGELOG.rst
- Added version 1.4.3 changelog entry.
- Indicated that build errors were fixed.
- Added Wonho Yun as a contributor.
- include/dynamixel_hardware_interface/dynamixel/dynamixel_info.hpp
- Removed the
idparameter fromConvertValueRPMToVelocityRPSandConvertVelocityRPSToValueRPMfunctions.
- Removed the
- package.xml
- Updated the package version to 1.4.3.
- src/dynamixel/dynamixel.cpp
- Added a default case to the
DxlErrorToStringfunction to return "UNKNOWN_ERROR". - Modified
fprintfstatements inProcessReadCommunicationto use%ldfor printing the size ofread_data_list_. - Removed the
idparameter when callingConvertValueRPMToVelocityRPSinProcessReadData. - Removed the
idparameter when callingConvertVelocityRPSToValueRPMinSetDxlValueToSyncWrite. - Removed the
idparameter when callingConvertVelocityRPSToValueRPMinSetDxlValueToBulkWrite.
- Added a default case to the
- src/dynamixel_hardware_interface.cpp
- Added
[[maybe_unused]]attribute to theprevious_stateparameter inon_activateandon_deactivatefunctions. - Added
[[maybe_unused]]attribute to thetimeandperiodparameters inreadandwritefunctions. - Added
[[maybe_unused]]attribute to therequestparameter inreboot_dxl_srv_callbackfunction.
- Added
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 is currently in preview and 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 to provide feedback.
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.
A version is bumped,
Bugs squashed, code is trumped,
Clean and clear now.
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
The pull request bumps the version to 1.4.3 and includes fixes for build errors. The changes look good overall, with some minor improvements suggested below.
Summary of Findings
- Log message formatting: In
src/dynamixel/dynamixel.cpp, the format specifier%dis used forread_data_list_.size(), which is of typesize_t. It's better to use%ldforsize_tto avoid potential issues on different architectures. - Unused parameter: In
src/dynamixel_hardware_interface.cpp, several functions have unused parameters. Using[[maybe_unused]]is a good practice to suppress warnings, but ensure that these parameters are indeed not needed. If they are needed in the future, the code will need to be updated. - Redundant
idparameter: Ininclude/dynamixel_hardware_interface/dynamixel/dynamixel_info.hppandsrc/dynamixel/dynamixel.cpp, theidparameter is removed fromConvertValueRPMToVelocityRPSandConvertVelocityRPSToValueRPMfunctions. Ensure that this change does not affect the functionality of the code. - Missing default case in switch statement: In
src/dynamixel/dynamixel.cpp, a default case is added to theDxlErrorToStringfunction to handle unknown error codes. This is a good practice to prevent unexpected behavior.
Merge Readiness
The pull request is almost ready to be merged. The changes address build errors and include good practices like adding a default case to the switch statement. However, before merging, it's recommended to address the log message formatting in src/dynamixel/dynamixel.cpp and verify that the removal of the id parameter from the conversion functions does not affect the code's functionality. I am unable to approve this pull request, and users should have others review and approve this code before merging.
| if (dxl_comm_result != COMM_SUCCESS) { | ||
| fprintf( | ||
| stderr, "SyncRead Tx Fail [Dxl Size : %d] [Error code : %d]\n", | ||
| stderr, "SyncRead Tx Fail [Dxl Size : %ld] [Error code : %d]\n", |
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.
| fprintf( | ||
| stderr, "BulkRead Tx Fail [Dxl Size : %d] [Error code : %d]\n", | ||
| stderr, "BulkRead Tx Fail [Dxl Size : %ld] [Error code : %d]\n", | ||
| read_data_list_.size(), dxl_comm_result); |
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.
| if (dxl_comm_result != COMM_SUCCESS) { | ||
| fprintf( | ||
| stderr, "SyncRead Rx Fail [Dxl Size : %d] [Error code : %d]\n", | ||
| stderr, "SyncRead Rx Fail [Dxl Size : %ld] [Error code : %d]\n", |
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.
| fprintf( | ||
| stderr, "BulkRead Rx Fail [Dxl Size : %d] [Error code : %d]\n", | ||
| stderr, "BulkRead Rx Fail [Dxl Size : %ld] [Error code : %d]\n", | ||
| read_data_list_.size(), dxl_comm_result); |
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.
robotpilot
left a comment
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.
LGTM
No description provided.