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

Unable to build rosbag2_storage #706

Closed
FullMetalNicky opened this issue Apr 1, 2021 · 2 comments
Closed

Unable to build rosbag2_storage #706

FullMetalNicky opened this issue Apr 1, 2021 · 2 comments
Labels
bug Something isn't working

Comments

@FullMetalNicky
Copy link

FullMetalNicky commented Apr 1, 2021

Description

I have ROS2 Foxy build from source, and everything works fine there.
I created a new workspace for rosbag2, as suggested in the readme.
I cloned foxy-future and tried to build the package with colcon build --merge-instal
I did the same with the master branch too

Expected Behavior

I expected the packaged to be built, so I can use the python-API for rosbag2

Actual Behavior

The build failed on rosbag2_storage (see additional context)

To Reproduce

** Steps to reproduce the behavior, e.g.

  1. git clone rosbag2 from foxy-future or master
  2. colcon build --merge-install

System (please complete the following information)

  • OS: Ubuntu 20.4
  • ROS 2 Distro: Foxy

Additional context

Terminal output:
Starting >>> sqlite3_vendor
Starting >>> shared_queues_vendor
Starting >>> rosbag2_test_common
Starting >>> zstd_vendor
Finished <<< sqlite3_vendor [0.10s]                                   
Finished <<< rosbag2_test_common [0.11s]
Starting >>> rosbag2_storage
Finished <<< zstd_vendor [0.12s]
Finished <<< shared_queues_vendor [0.13s]
--- stderr: rosbag2_storage                              
/home/nickybones/Code/rosbag2_ws/src/rosbag2/rosbag2_storage/src/rosbag2_storage/metadata_io.cpp: In member function ‘virtual rosbag2_storage::BagMetadata rosbag2_storage::MetadataIo::read_metadata(const string&)’:
/home/nickybones/Code/rosbag2_ws/src/rosbag2/rosbag2_storage/src/rosbag2_storage/metadata_io.cpp:236:53: error: could not convert ‘& metadata.rosbag2_storage::BagMetadata::bag_size’ from ‘uint64_t*’ {aka ‘long unsigned int*’} to ‘rcutils_allocator_t’
  236 |       rcutils_calculate_directory_size(uri.c_str(), &metadata.bag_size, allocator))
      |                                                     ^~~~~~~~~~~~~~~~~~
      |                                                     |
      |                                                     uint64_t* {aka long unsigned int*}
make[2]: *** [CMakeFiles/rosbag2_storage.dir/build.make:63: CMakeFiles/rosbag2_storage.dir/src/rosbag2_storage/metadata_io.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:129: CMakeFiles/rosbag2_storage.dir/all] Error 2
make: *** [Makefile:141: all] Error 2
---
Failed   <<< rosbag2_storage [0.53s, exited with code 2]

Summary: 4 packages finished [0.77s]
  1 package failed: rosbag2_storage
  1 package had stderr output: rosbag2_storage
  10 packages not processed
@FullMetalNicky FullMetalNicky added the bug Something isn't working label Apr 1, 2021
@emersonknapp
Copy link
Collaborator

master is the Rolling / Galactic source branch - it is not expected to build against a Foxy installation. Additionally - foxy-future is not yet implemented, if you would like to try building it now, please check out the branch from the PR #687

So - this behavior is currently as expected - I will close this ticket.

@narutojxl
Copy link

narutojxl commented Mar 10, 2022

Hello all,
after git checkout foxy-future, build OK. So, how to use let ros2 bag play [ros2_bag] play the /clock topic.
My OS is ubuntu20.04, installed foxy by debian. I want to play ros2 bag offline to test a slam and localization system. /clock topic is not published by anyone.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants