-
Notifications
You must be signed in to change notification settings - Fork 732
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
image_proc::CropDecimateNode: parameter handle #978
base: rolling
Are you sure you want to change the base?
Conversation
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.
2 general questions:
- Which formatting?
- Note to self: https://github.com/uncrustify/uncrustify (cause for failed build?)
- Where are uncrustify configurations?
- Are tests wanted?
rcl_interfaces::msg::SetParametersResult result; | ||
result.successful = true; | ||
for (const auto & param : parameters) { | ||
if (param.get_name() == "offset_x") { |
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.
- Should other parameters be handled as well?
- Are additional checks on set desired?
- Introduce parameter name as members?
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.
you can also add decimation_x_
, decimation_y_
and target_frame_id_
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.
uncrustify is failing https://build.ros2.org/job/Rpr__image_pipeline__ubuntu_noble_amd64/6/testReport/junit/image_proc/uncrustify/src_crop_decimate_cpp/
you can fix this with:
ament_uncrustify --reformat <path to file>
rcl_interfaces::msg::SetParametersResult result; | ||
result.successful = true; | ||
for (const auto & param : parameters) { | ||
if (param.get_name() == "offset_x") { |
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.
you can also add decimation_x_
, decimation_y_
and target_frame_id_
Refers to #967.
Thank you @ahcorde for kindly offering review of this PR. I'll review my main questions shortly.