Skip to content

Deprecate c headers#25

Merged
ahcorde merged 2 commits intoros-perception:ros2from
CursedRock17:deprecate_c_headers
Dec 27, 2024
Merged

Deprecate c headers#25
ahcorde merged 2 commits intoros-perception:ros2from
CursedRock17:deprecate_c_headers

Conversation

@CursedRock17
Copy link
Copy Markdown
Contributor

Related to this pull request in geometry2 in which we deprecated the .h style headers in favor of .hpp.

CursedRock17 and others added 2 commits October 28, 2024 23:13
Signed-off-by: CursedRock17 <mtglucas1@gmail.com>
#define TF2_SENSOR_MSGS_H

#include <tf2/convert.h>
#include <tf2/convert.hpp>
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

we should really wrap this with an if/else so that the branch continues to compile on older systems (since I expect this change to tf2 will only be released into rolling and later at this point):

#if __has_include(<tf2/convert.hpp>)
#include <tf2/convert.hpp>
#else
#include <tf2/convert.h>
#endif   

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This PR was meant to be preemptive one, that being said I'll probably do some backwards compatibility in which earlier branches like Humble will have the .h files include the .hpp files without a warning to prevent this from happening. In that case syntax like this shouldn't be needed.



#include <tf2/LinearMath/Quaternion.h>
#include <tf2/LinearMath/Quaternion.hpp>
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

same as above - let the branch work on multiple distros

@CursedRock17
Copy link
Copy Markdown
Contributor Author

With the recent backports merged, this PR should be good for review.

@mikeferguson
Copy link
Copy Markdown
Member

This branch supports Humble, Jazzy and Rolling - current status of tf2 headers:

  • Rolling - released in 0.40.0 - which is staged but not yet synced
  • Jazzy - merged, but not yet released (next release will be 0.36.7)
  • Humble - released in 0.25.10 - which is staged but not yet synced

@ahcorde
Copy link
Copy Markdown
Contributor

ahcorde commented Dec 26, 2024

humble release ros/rosdistro#44053

@ahcorde ahcorde merged commit 396a9ce into ros-perception:ros2 Dec 27, 2024
@ahcorde
Copy link
Copy Markdown
Contributor

ahcorde commented Dec 27, 2024

@mikeferguson I thought I had permissions here but I don't, we just need to make the release, I already did the tag

bloom-release --rosdistro rolling --track rolling imu_pipeline

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.

3 participants