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

Update curl_client.h #571

Merged
merged 1 commit into from May 10, 2024
Merged

Update curl_client.h #571

merged 1 commit into from May 10, 2024

Conversation

mrob-lab
Copy link
Contributor

Fixed bug with project building with catkin_make on ROS Melodic.

Related Issues & PRs

Hello! We were unable to build the project for ROS Melodic with catkin_make. We have made a suggestion for a change for the following lines of code to make catkin_make be possible to build it. Thank you!

Summary of Changes

Changed string concatenation in file curl_client.h.

Validation

Build is valid in docker nvidia/cudagl:11.4.2-runtime-ubuntu18.04 image with installed ROS Melodic and ouster packages.

Fixed bug with project building with catkin_make on ROS Melodic.
@Samahu Samahu self-requested a review November 27, 2023 16:08
Copy link
Collaborator

@Samahu Samahu left a comment

Choose a reason for hiding this comment

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

Sounds reasonable to me!

@twslankard twslankard self-requested a review November 27, 2023 16:53
@twslankard
Copy link
Collaborator

Thanks for the PR, @mrob-lab.

Just curious - what was the build error you encountered? This change looks fine to me, but it will probably fail our internal CI because of the (perhaps needlessly) strict clang-format rules we have.

Cheers,
Tom

Staff Engineer
Ouster Inc.

@Samahu
Copy link
Collaborator

Samahu commented Nov 27, 2023

@twslankard please refer to my comment on what the user is complaining about ouster-lidar/ouster-ros#249 (comment)

@Samahu
Copy link
Collaborator

Samahu commented Nov 27, 2023

@twslankard please refer to my comment on what the user is complaining about ouster-lidar/ouster-ros#249 (comment)

The main of the issue is that we used the new formatting functionality from spdlog which the Ubuntu 18.04 does not support. This PR simply is undoing the change that was made in SDK 0.10 to this file.

@twslankard
Copy link
Collaborator

@Samahu unless I'm missing something, this change isn't removing the use of spdlog formatting. I'm seeing a removal of a string concatenation.

@Samahu
Copy link
Collaborator

Samahu commented Nov 27, 2023

@Samahu unless I'm missing something, this change isn't removing the use of spdlog formatting. I'm seeing a removal of a string concatenation.

It is probably then that the using of std::string instead of const char* (for the warn method) that is causing the build to fail on Ubuntu 18.04.

@Samahu Samahu assigned Samahu and unassigned Samahu May 10, 2024
@Samahu Samahu merged commit 6f39cb0 into ouster-lidar:master May 10, 2024
1 check failed
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.

None yet

3 participants