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

Use urdf/model.hpp for rolling #1473

Merged
merged 1 commit into from
Jan 7, 2025
Merged

Conversation

nakul-py
Copy link
Contributor

@nakul-py nakul-py commented Jan 7, 2025

Description

  • Replaced deprecated urdf/model.h with conditional includes using urdf/model.hpp for Rolling.
  • Maintained compatibility for Humble and Jazzy using rclcpp/version.h.

fixes #1469

@christophfroehlich christophfroehlich changed the title Using urdf/model.hpp for rolling. Use urdf/model.hpp for rolling Jan 7, 2025
Copy link
Member

@saikishor saikishor left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@bmagyar bmagyar left a comment

Choose a reason for hiding this comment

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

thank you!

@saikishor saikishor merged commit 7ddaf83 into ros-controls:master Jan 7, 2025
25 checks passed
Copy link
Contributor

@christophfroehlich christophfroehlich left a comment

Choose a reason for hiding this comment

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

You missed joint_state_broadcaster.hpp

could you please remove the include from the cpp and fix the header in a new PR? And then check the outputs of a clean build, if something like this is really gone ;)
2025-01-07T10:12:42.3908397Z �[01m�[K/opt/ros/rolling/include/urdf/urdf/model.h:35:2:�[m�[K �[01;35m�[Kwarning: �[m�[K#warning This header is obsolete, please include urdf/model.hpp instead [�[01;35m�[K-Wcpp�[m�[K]

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.

Use urdf/model.hpp instead of deprecated urdf/model.h
4 participants