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

Updates to compile against Humble. #388

Merged
merged 4 commits into from
Jan 2, 2025
Merged

Conversation

clalancette
Copy link
Collaborator

There are 5 main changes in here:

  1. Humble does not support type hashes. Rather than change all of the liveliness token handling (which will make backports in the future harder), we just remove the code that computes it, and instead set it to a constant string.
  2. The definition of RMW_GID_STORAGE_SIZE in Humble is wonky, and set to 24 for some ancient historical reasons. We don't actually want to do that, so just hard-code 16.
  3. Some of the events in modern ROS 2 aren't supported in Humble, so remove the code for handling them.
  4. There are a few APIs dealing with dynamic messages that aren't supported in Humble.
  5. There is at least one QOS policy (best available) which doesn't exist in Humble.

With all of these changes in, I'm able to compile and run basic programs against Humble.

This takes many of the changes from #335, cleans them up, and rebases them onto the latest. Thanks @YuanYuYuan for starting that!

There are 5 main changes in here:
1.  Humble does not support type hashes.  Rather than change
all of the liveliness token handling (which will make backports
in the future harder), we just remove the code that computes it,
and instead set it to a constant string.
2.  The definition of RMW_GID_STORAGE_SIZE in Humble is wonky,
and set to 24 for some ancient historical reasons.  We don't
actually want to do that, so just hard-code 16.
3.  Some of the events in modern ROS 2 aren't supported in Humble,
so remove the code for handling them.
4.  There are a few APIs dealing with dynamic messages that aren't
supported in Humble.
5.  There is at least one QOS policy (best available) which doesn't
exist in Humble.

With all of these changes in, I'm able to compile and run basic
programs against Humble.

Signed-off-by: Chris Lalancette <[email protected]>
clalancette and others added 3 commits January 2, 2025 21:05
Signed-off-by: Chris Lalancette <[email protected]>
Signed-off-by: Chris Lalancette <[email protected]>
Signed-off-by: Yadunund <[email protected]>
Copy link
Member

@Yadunund Yadunund left a comment

Choose a reason for hiding this comment

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

Thanks a lot for working on this!
Do you think it makes sense to include a #define RMW_GID_STORAGE_SIZE 16u somewhere as opposed to replace with 16?

@clalancette
Copy link
Collaborator Author

Do you think it makes sense to include a #define RMW_GID_STORAGE_SIZE 16u somewhere as opposed to replace with 16?

So the problem with that is the RMW_GID_STORAGE_SIZE is defined on Humble, but it is defined to 24. So this would be a "multiple definition" problem during compilation. We could change the name (RMW_ZENOH_GID_STORAGE_SIZE or something), but I'm not sure it is worth it. What do you feel like?

@Yadunund
Copy link
Member

Yadunund commented Jan 2, 2025

Ah nvm then, I think the changes here are great.

@Yadunund Yadunund merged commit e2780c2 into humble Jan 2, 2025
4 checks passed
@Yadunund Yadunund deleted the clalancette/fix-humble branch January 2, 2025 21:39
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