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

Galactic build error #2

Open
DaniGarciaLopez opened this issue Sep 13, 2021 · 3 comments
Open

Galactic build error #2

DaniGarciaLopez opened this issue Sep 13, 2021 · 3 comments

Comments

@DaniGarciaLopez
Copy link

When building in galactic it throws several errors, any idea how to fix them?

/home/dani/support_ws/src/ros2_leg_detector/src/leg_detector/src/local_occupancy_grid_mapping.cpp:106:49: error: ‘Buffer’ is not a member of ‘tf2_ros’
  106 |             buffer_ = std::make_shared<tf2_ros::Buffer>(this->get_clock());
             ^~
/home/dani/support_ws/src/ros2_leg_detector/src/leg_detector/src/laser_processor.cpp:95:30:   required from here
/usr/include/c++/9/bits/stl_tree.h:780:8: error: static assertion failed: comparison object must be invocable as const
  780 |        is_invocable_v<const _Compare&, const _Key&, const _Key&>,
      |        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Thanks!

@ShelyH
Copy link

ShelyH commented Nov 13, 2023

Hi, have you solved the problem?

@DaniGarciaLopez
Copy link
Author

Hi @ShelyH. No, I couldn't find time to look for a cause, and I stopped using the repo, so I guess the error is still there.

@ShelyH
Copy link

ShelyH commented Nov 14, 2023

es, this problem still exists when galactic is used, but by looking at the error message, I think the problem is at
https://github.com/mowito/ros2_leg_detector/blob/b4be35a2f540c0e72cb8718e99fd9a23dc31f501/src/leg_detector/src/detect_leg_clusters.cpp#L341C25-L341C25

I modified this line of code to:
bool operator()(const leg_detector_msgs::msg::Leg &a, const leg_detector_msgs::msg::Leg &b) const

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

No branches or pull requests

2 participants