Skip to content

Commit

Permalink
Using urdf/model.hpp for rolling and urdf/model.h for jazzy or humble
Browse files Browse the repository at this point in the history
  • Loading branch information
nakul-py committed Jan 8, 2025
1 parent 7ddaf83 commit 3d8e951
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,13 @@
#include "joint_state_broadcaster_parameters.hpp"
#include "realtime_tools/realtime_publisher.hpp"
#include "sensor_msgs/msg/joint_state.hpp"

#include "rclcpp/version.h"
#if RCLCPP_VERSION_GTE(29, 0, 0)
#include "urdf/model.hpp"
#else
#include "urdf/model.h"
#endif

namespace joint_state_broadcaster
{
Expand Down

0 comments on commit 3d8e951

Please sign in to comment.