-
Notifications
You must be signed in to change notification settings - Fork 3
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 <ywh@robotis.com>
Signed-off-by: Wonho Yun <ywh@robotis.com>
Signed-off-by: Wonho Yun <ywh@robotis.com>
Signed-off-by: Wonho Yun <ywh@robotis.com>
Signed-off-by: Wonho Yun <ywh@robotis.com>
Signed-off-by: Wonho Yun <ywh@robotis.com>
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.cpp
anddynamixel_hardware_interface.cpp
. - Function Signature Update: The
ConvertValueRPMToVelocityRPS
andConvertVelocityRPSToValueRPM
functions indynamixel_info.hpp
are updated to remove the unnecessaryid
parameter.
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
id
parameter fromConvertValueRPMToVelocityRPS
andConvertVelocityRPSToValueRPM
functions.
- Removed the
- package.xml
- Updated the package version to 1.4.3.
- src/dynamixel/dynamixel.cpp
- Added a default case to the
DxlErrorToString
function to return "UNKNOWN_ERROR". - Modified
fprintf
statements inProcessReadCommunication
to use%ld
for printing the size ofread_data_list_
. - Removed the
id
parameter when callingConvertValueRPMToVelocityRPS
inProcessReadData
. - Removed the
id
parameter when callingConvertVelocityRPSToValueRPM
inSetDxlValueToSyncWrite
. - Removed the
id
parameter when callingConvertVelocityRPSToValueRPM
inSetDxlValueToBulkWrite
.
- Added a default case to the
- src/dynamixel_hardware_interface.cpp
- Added
[[maybe_unused]]
attribute to theprevious_state
parameter inon_activate
andon_deactivate
functions. - Added
[[maybe_unused]]
attribute to thetime
andperiod
parameters inread
andwrite
functions. - Added
[[maybe_unused]]
attribute to therequest
parameter inreboot_dxl_srv_callback
function.
- 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%d
is used forread_data_list_.size()
, which is of typesize_t
. It's better to use%ld
forsize_t
to 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
id
parameter: Ininclude/dynamixel_hardware_interface/dynamixel/dynamixel_info.hpp
andsrc/dynamixel/dynamixel.cpp
, theid
parameter is removed fromConvertValueRPMToVelocityRPS
andConvertVelocityRPSToValueRPM
functions. 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 theDxlErrorToString
function 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.
@@ -965,15 +967,15 @@ DxlError Dynamixel::ProcessReadCommunication( | |||
dxl_comm_result = group_sync_read->txPacket(); | |||
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.
read_data_list_.size(), dxl_comm_result); | ||
return DxlError::SYNC_READ_FAIL; | ||
} | ||
} else { | ||
dxl_comm_result = group_bulk_read->txPacket(); | ||
if (dxl_comm_result != COMM_SUCCESS) { | ||
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.
@@ -989,15 +991,15 @@ DxlError Dynamixel::ProcessReadCommunication( | |||
dxl_comm_result = group_sync_read->rxPacket(); | |||
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.
read_data_list_.size(), dxl_comm_result); | ||
return DxlError::SYNC_READ_FAIL; | ||
} | ||
} else { | ||
dxl_comm_result = group_bulk_read->rxPacket(); | ||
if (dxl_comm_result != COMM_SUCCESS) { | ||
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.
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.