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

Add back rosbag2_cpp::StorageOptions as deprecated #563

Merged
merged 1 commit into from
Nov 30, 2020

Conversation

jacobperron
Copy link
Member

The struct was removed in #493, but in order
to avoid a hard-break for users coming from Foxy I've added it back with a deprecation
warning.

The struct was removed in #493, but in order
to avoid a hard-break for users coming from Foxy I've added it back with a deprecation
warning.

Signed-off-by: Jacob Perron <jacob@openrobotics.org>
@jacobperron jacobperron requested a review from a team as a code owner November 18, 2020 23:05
@jacobperron jacobperron requested review from thomas-moulard and emersonknapp and removed request for a team November 18, 2020 23:05
@agutenkunst
Copy link

So I was cloning and building package from source using the instructions in the Readme.md . It both fails on master and on this PR with:

--- stderr: rosbag2_storage_default_plugins                                                                                                        
In file included from /home/alex/ros2_ws_slam/src/rosbag2/rosbag2_storage_default_plugins/test/rosbag2_storage_default_plugins/sqlite/storage_test_fixture.hpp:36,
                 from /home/alex/ros2_ws_slam/src/rosbag2/rosbag2_storage_default_plugins/test/rosbag2_storage_default_plugins/sqlite/test_sqlite_wrapper.cpp:27:
/home/alex/ros2_ws_slam/src/rosbag2/rosbag2_storage_default_plugins/include/rosbag2_storage_default_plugins/sqlite/sqlite_storage.hpp:52:28: error: ‘StorageOptions’ in namespace ‘rosbag2_storage’ does not name a type
   52 |     const rosbag2_storage::StorageOptions & storage_options,
      |                            ^~~~~~~~~~~~~~
In file included from /home/alex/ros2_ws_slam/src/rosbag2/rosbag2_storage_default_plugins/test/rosbag2_storage_default_plugins/sqlite/storage_test_fixture.hpp:36,
                 from /home/alex/ros2_ws_slam/src/rosbag2/rosbag2_storage_default_plugins/test/rosbag2_storage_default_plugins/sqlite/test_sqlite_storage.cpp:29:
/home/alex/ros2_ws_slam/src/rosbag2/rosbag2_storage_default_plugins/include/rosbag2_storage_default_plugins/sqlite/sqlite_storage.hpp:52:28: error: ‘StorageOptions’ in namespace ‘rosbag2_storage’ does not name a type
   52 |     const rosbag2_storage::StorageOptions & storage_options,


[...]

Full:
err.txt

Could be I am missing something trivial as well....

@agutenkunst
Copy link

Seems that sqlite_storage.hpp is missing

#include "rosbag2_storage/storage_options.hpp"

but this is not the only thing...

Copy link
Collaborator

@Karsten1987 Karsten1987 left a comment

Choose a reason for hiding this comment

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

works for me with CI.

@Karsten1987
Copy link
Collaborator

@agutenkunst are you building this on a foxy overlay or are you building all of ros2 from source? This sounds like as if you have a rosbag2 debian installation in your path as well. The storage options are available in the rosbag2_storage package, yet it looks like your include paths are pointing so something else.

@agutenkunst
Copy link

Hi @Karsten19

So I am pretty new at ROS2 (as you might figured) I thought that something like this could be the issue, yet if I check the AMENT_PREFIX_PATH it states

/home/alex/ros2_ws_slam/install/rosbag2:/home/alex/ros2_ws_slam/install/ros2bag:/home/alex/ros2_ws_slam/install/rosbag2_transport:/home/alex/ros2_ws_slam/install/rosbag2_compression:/home/alex/ros2_ws_slam/install/zstd_vendor:/home/alex/ros2_ws_slam/install/rosbag2_storage_default_plugins:/opt/ros/foxy

which looks fine at first glance but maybe I am missing something here?

I do not mean to hold the PR!

@Karsten1987
Copy link
Collaborator

@agutenkunst as you can see you have /opt/ros/foxy within your path. I wouldn't be surprised if you have the Foxy installation of rosbag2 found first and don't use the include directories of the overlay. Please also be aware that there's no guarantee that a master build of rosbag2 works on a Foxy underlay installation.

You could try to deinstall your Foxy rosbag2 installation, but that's definitely not a supported use-case. If you still encounter that problem, I would recommend you open a separate ticket or ask the question on ros-answers.

@jacobperron
Copy link
Member Author

  • Linux Build Status
  • Linux-aarch64 Build Status
  • macOS Build Status
  • Windows Build Status

@emersonknapp emersonknapp merged commit 5956681 into master Nov 30, 2020
@delete-merged-branch delete-merged-branch bot deleted the jacob/deprecated_cpp_storage branch November 30, 2020 22:34
emersonknapp pushed a commit that referenced this pull request Feb 2, 2021
The struct was removed in #493, but in order
to avoid a hard-break for users coming from Foxy I've added it back with a deprecation
warning.

Signed-off-by: Jacob Perron <jacob@openrobotics.org>
emersonknapp pushed a commit that referenced this pull request Feb 17, 2021
The struct was removed in #493, but in order
to avoid a hard-break for users coming from Foxy I've added it back with a deprecation
warning.

Signed-off-by: Jacob Perron <jacob@openrobotics.org>
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.

None yet

5 participants