Skip to content

feat: add cartographer patch #47

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

Merged
merged 4 commits into from
Apr 18, 2025

Conversation

wep21
Copy link
Contributor

@wep21 wep21 commented Apr 18, 2025

add patch for cartographer because abseil update breaks its build.

wep21 added 2 commits April 18, 2025 09:20
@wep21 wep21 marked this pull request as draft April 18, 2025 03:55
@wep21
Copy link
Contributor Author

wep21 commented Apr 18, 2025

@Tobias-Fischer @traversaro cartographer is marked as skipped, but built in ci. Has vinca behavior changed after RoboStack/vinca#67?

@Tobias-Fischer
Copy link
Contributor

My best guess is that’s a transitive dependency of another package - I’m only on my phone so can’t look in detail

@traversaro
Copy link
Member

My best guess is that’s a transitive dependency of another package - I’m only on my phone so can’t look in detail

I think it is a transitive dependency of the turtlebot3 package.

@traversaro
Copy link
Member

By bringing the patch from https://github.com/RoboStack/ros-humble/blob/main/patch/ros-humble-cartographer-ros.patch, I was able to get a different error:

-- Found ZLIB: /home/traversaro/ros-jazzy/output/bld/rattler-build_ros-jazzy-cartographer-ros_1744988768/host_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/lib/libz.so (found version "1.3.1")
CMake Error at /home/traversaro/ros-jazzy/output/bld/rattler-build_ros-jazzy-cartographer-ros_1744988768/host_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/lib/cmake/protobuf/protobuf-targets.cmake:42 (message):
  Some (but not all) targets in this export set were already defined.

  Targets Defined: protobuf::libprotobuf-lite, protobuf::libprotobuf,
  protobuf::libprotoc, protobuf::protoc

  Targets not yet defined: protobuf::libupb, protobuf::protoc-gen-upb,
  protobuf::protoc-gen-upbdefs, protobuf::protoc-gen-upb_minitable

Call Stack (most recent call first):
  /home/traversaro/ros-jazzy/output/bld/rattler-build_ros-jazzy-cartographer-ros_1744988768/host_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/lib/cmake/protobuf/protobuf-config.cmake:16 (include)
  CMakeLists.txt:53 (find_package)

@traversaro
Copy link
Member

@Tobias-Fischer @traversaro cartographer is marked as skipped, but built in ci. Has vinca behavior changed after RoboStack/vinca#67?

Sorry, I think there was a bit of confusion. cartographer is skipped as it is built in conda-forge, what is being built (as a transitive dependency of turtlebot3) is cartographer_ros.

@traversaro
Copy link
Member

By bringing the patch from https://github.com/RoboStack/ros-humble/blob/main/patch/ros-humble-cartographer-ros.patch, I was able to get a different error:

-- Found ZLIB: /home/traversaro/ros-jazzy/output/bld/rattler-build_ros-jazzy-cartographer-ros_1744988768/host_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/lib/libz.so (found version "1.3.1")
CMake Error at /home/traversaro/ros-jazzy/output/bld/rattler-build_ros-jazzy-cartographer-ros_1744988768/host_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/lib/cmake/protobuf/protobuf-targets.cmake:42 (message):
  Some (but not all) targets in this export set were already defined.

  Targets Defined: protobuf::libprotobuf-lite, protobuf::libprotobuf,
  protobuf::libprotoc, protobuf::protoc

  Targets not yet defined: protobuf::libupb, protobuf::protoc-gen-upb,
  protobuf::protoc-gen-upbdefs, protobuf::protoc-gen-upb_minitable

Call Stack (most recent call first):
  /home/traversaro/ros-jazzy/output/bld/rattler-build_ros-jazzy-cartographer-ros_1744988768/host_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeh/lib/cmake/protobuf/protobuf-config.cmake:16 (include)
  CMakeLists.txt:53 (find_package)

In the patch there was a spurious find_package(Protobuf CONFIG) that I am not sure why it was there. By removing, it seems that it is building fine.

@traversaro traversaro marked this pull request as ready for review April 18, 2025 17:35
@traversaro
Copy link
Member

The CI seems happy, if the Windows one is also happy I will merge to hopefully fix #43 and #44 .

@Tobias-Fischer
Copy link
Contributor

I’d be happy to merge despite the Windows failure and tackle it afterwards?

@traversaro
Copy link
Member

I’d be happy to merge despite the Windows failure and tackle it afterwards?

Ok! At this stage anything that builds some more packages is good to go!

@traversaro traversaro merged commit d6e75e6 into RoboStack:main Apr 18, 2025
4 of 5 checks passed
@wep21 wep21 deleted the add-cartographer-patch branch April 18, 2025 22:21
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