-
Notifications
You must be signed in to change notification settings - Fork 458
Fix start_type_description_service
param handling
#2897
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
Conversation
can you fix the DCO ? afterwards I will start the CI run. @fujitatomoya can you have a second look, I seem to miss a lot currently ;-) |
@jmachowinski linted, squashed and signed. Thank you for the review :) |
Pulls: #2897 |
Pulls: #2897 |
@fujitatomoya please wait, I noticed one thing I still want to fix. We get two different exceptions depending on whether we use What happens now: ASSERT_THROW(
{
auto node = std::make_shared<rclcpp::Node>("node", "ns", node_options);
(void) node;
}, rclcpp::exceptions::InvalidParameterTypeException);
ASSERT_THROW(
{
node_options.automatically_declare_parameters_from_overrides(true);
auto node = std::make_shared<rclcpp::Node>("node", "ns", node_options);
(void) node;
}, std::invalid_argument); |
With c2ca00d, I made both cases
This message, in one of the two codepaths, is generated by: rclcpp/rclcpp/src/rclcpp/node_interfaces/node_parameters.cpp Lines 299 to 311 in c2ca00d
but unfortunately this method is static, so I copied the snipped here inline, so that when I manually throw, the same exact text is generated. |
Pulls: #2897 |
@jmachowinski are those unrelated failures, right? |
@fujitatomoya @jmachowinski friendly ping on this, is it ok for merge? |
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.
@roncapat thanks for letting me know, lgtm.
@Mergifyio rebase |
Signed-off-by: Patrick Roncagliolo <[email protected]>
Signed-off-by: Patrick Roncagliolo <[email protected]>
Signed-off-by: Patrick Roncagliolo <[email protected]>
Signed-off-by: Patrick Roncagliolo <[email protected]>
Signed-off-by: Patrick Roncagliolo <[email protected]>
✅ Branch has been successfully rebased |
Pulls: #2897 |
security related failures are unrelated to this PR. |
@Mergifyio backport kilted jazzy |
✅ Backports have been created
|
* Fix `start_type_description_service` param handling Signed-off-by: Patrick Roncagliolo <[email protected]> * Add test Signed-off-by: Patrick Roncagliolo <[email protected]> * Demonstrate different exceptions depending on node options Signed-off-by: Patrick Roncagliolo <[email protected]> * Same exact exception and `what()` message in both cases Signed-off-by: Patrick Roncagliolo <[email protected]> * Uncrustify Signed-off-by: Patrick Roncagliolo <[email protected]> --------- Signed-off-by: Patrick Roncagliolo <[email protected]> (cherry picked from commit 4fb558a)
* Fix `start_type_description_service` param handling Signed-off-by: Patrick Roncagliolo <[email protected]> * Add test Signed-off-by: Patrick Roncagliolo <[email protected]> * Demonstrate different exceptions depending on node options Signed-off-by: Patrick Roncagliolo <[email protected]> * Same exact exception and `what()` message in both cases Signed-off-by: Patrick Roncagliolo <[email protected]> * Uncrustify Signed-off-by: Patrick Roncagliolo <[email protected]> --------- Signed-off-by: Patrick Roncagliolo <[email protected]> (cherry picked from commit 4fb558a)
* Fix `start_type_description_service` param handling * Add test * Demonstrate different exceptions depending on node options * Same exact exception and `what()` message in both cases * Uncrustify --------- (cherry picked from commit 4fb558a) Signed-off-by: Patrick Roncagliolo <[email protected]> Co-authored-by: Patrick Roncagliolo <[email protected]>
* Fix `start_type_description_service` param handling * Add test * Demonstrate different exceptions depending on node options * Same exact exception and `what()` message in both cases * Uncrustify --------- (cherry picked from commit 4fb558a) Signed-off-by: Patrick Roncagliolo <[email protected]> Co-authored-by: Patrick Roncagliolo <[email protected]>
Closes #2892 by using the same exact strategy for declaring
use_sim_time
.rclcpp/rclcpp/src/rclcpp/time_source.cpp
Lines 254 to 274 in 7ebc9e4
Tested (you can try to define
start_type_description_service
like so, and pass it to Nav2 bt_navigator or diagnostic_aggregator):whithout the patch, it crashes like ros/diagnostics#519.
Did you use Generative AI?
No