-
Notifications
You must be signed in to change notification settings - Fork 690
Fix parameter passing in generate_state_database.cpp #3545
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
base: main
Are you sure you want to change the base?
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -54,8 +54,8 @@ static const std::string ROBOT_DESCRIPTION = "robot_description"; | |||||
|
|
||||||
| static const std::string CONSTRAINT_PARAMETER = "constraints"; | ||||||
|
|
||||||
| static bool getUintParameterOr(const rclcpp::Node::SharedPtr& node, const std::string& param_name, | ||||||
| size_t&& result_value, const size_t default_value) | ||||||
| static bool get_uint_parameter_or(const rclcpp::Node::SharedPtr& node, const std::string& param_name, | ||||||
| unsigned int& result_value, const size_t default_value) | ||||||
|
||||||
| unsigned int& result_value, const size_t default_value) | |
| unsigned int& result_value, const unsigned int default_value) |
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.
Thanks for the suggestion! You’re right—I’ll unify all related types in the function signature to unsigned int, including the default value type. I’ll verify everything locally tomorrow and then immediately update the branch and push a new PR. Thank you again for your guidance, and I look forward to any further feedback!
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.
Thanks for the suggestion! I’ve unified the types to unsigned int (including the default value) and pushed the update. Please take another look.
Uh oh!
There was an error while loading. Please reload this page.