Skip to content
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

Fix up warnings and errors from latest Rolling releases. #99

Merged
merged 2 commits into from
Apr 13, 2022
Merged

Fix up warnings and errors from latest Rolling releases. #99

merged 2 commits into from
Apr 13, 2022

Conversation

clalancette
Copy link
Contributor

This cleans up two problems:

  1. rclcpp no longer accepts bare "declare_parameters" without
    a type, so add an empty string by default.
  2. The tf2_geometry_msgs headers all should now use the .hpp
    suffix, so fix that as well.

This should allow this package to build without warnings on the
buildfarm.

Signed-off-by: Chris Lalancette [email protected]

This should fix the failing builds, like in https://build.ros2.org/view/Rbin_uJ64/job/Rbin_uJ64__ros2_ouster__ubuntu_jammy_amd64__binary/

This cleans up two problems:

1.  rclcpp no longer accepts bare "declare_parameters" without
a type, so add an empty string by default.
2.  The tf2_geometry_msgs headers all should now use the .hpp
suffix, so fix that as well.

This should allow this package to build without warnings on the
buildfarm.

Signed-off-by: Chris Lalancette <[email protected]>
@@ -48,8 +48,8 @@ OusterDriver::OusterDriver(
this->declare_parameter("proc_mask", std::string("IMG|PCL|IMU|SCAN"));

// Declare parameters used across ALL _sensor_ implementations
this->declare_parameter("lidar_ip");
this->declare_parameter("computer_ip");
this->declare_parameter("lidar_ip", std::string(""));
Copy link
Member

@SteveMacenski SteveMacenski Apr 13, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I intentionally don't want a default, is there not an API that sets the type without setting the value to something? I would like it to crash immediately if its not provided with a valid set of IPs. I don't want to even attempt to connect to a bogus address since the networking aspects of sensors are generally limited and I'm not sure it would successfully exit as invalid.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hm, maybe. Let me play around with setting the type via templating to see if that is happier.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, that works. See 3dbecf1 .

Signed-off-by: Chris Lalancette <[email protected]>
@SteveMacenski SteveMacenski merged commit 2d36cbd into ros-drivers:ros2 Apr 13, 2022
@SteveMacenski
Copy link
Member

Thanks!

@SteveMacenski
Copy link
Member

I'll run a sync with Rolling on Friday with some other packages. I haven't done a full sync across Nav2 in a long time now

@clalancette
Copy link
Contributor Author

I'll run a sync with Rolling on Friday with some other packages. I haven't done a full sync across Nav2 in a long time now

Perfect, thanks!

@clalancette clalancette deleted the clalancette/fix-api-removals branch April 13, 2022 19:53
shrijitsingh99 pushed a commit to moss-ag/ros2_ouster_drivers that referenced this pull request Nov 22, 2022
)

* Fix up warnings and errors from latest Rolling releases.

This cleans up two problems:

1.  rclcpp no longer accepts bare "declare_parameters" without
a type, so add an empty string by default.
2.  The tf2_geometry_msgs headers all should now use the .hpp
suffix, so fix that as well.

This should allow this package to build without warnings on the
buildfarm.

Signed-off-by: Chris Lalancette <[email protected]>

* Feedback from review.

Signed-off-by: Chris Lalancette <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants