Skip to content

Commit

Permalink
Minimal changes to build+test for Foxy
Browse files Browse the repository at this point in the history
Signed-off-by: Emerson Knapp <eknapp@amazon.com>
  • Loading branch information
Emerson Knapp committed Feb 17, 2021
1 parent 6007920 commit e5c7951
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 10 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/test.yml
Expand Up @@ -29,7 +29,8 @@ jobs:
sqlite3_vendor
rosbag2_test_common
rosbag2_tests
target-ros2-distro: rolling
target-ros2-distro: foxy
vcs-repo-file-url: ""
- uses: actions/upload-artifact@v1
with:
name: colcon-logs
Expand Down
2 changes: 1 addition & 1 deletion rosbag2/package.xml
Expand Up @@ -14,7 +14,7 @@
<exec_depend>rosbag2_compression</exec_depend>
<exec_depend>rosbag2_converter_default_plugins</exec_depend>
<exec_depend>rosbag2_cpp</exec_depend>
<exec_depend>rosbag2_py</exec_depend>
<!-- <exec_depend>rosbag2_py</exec_depend> -->
<exec_depend>rosbag2_storage</exec_depend>
<exec_depend>rosbag2_storage_default_plugins</exec_depend>
<exec_depend>rosbag2_transport</exec_depend>
Expand Down
Expand Up @@ -67,7 +67,7 @@ void SequentialCompressionReader::preprocess_current_file()
* Because we have no way to check whether the bag was written correctly,
* check for the existence of the prefixed file as a fallback.
*/
const rcpputils::fs::path base{base_folder_};
rcpputils::fs::path base{base_folder_};
const rcpputils::fs::path relative{get_current_file()};
const auto resolved = base / relative;
if (!resolved.exists()) {
Expand Down
1 change: 1 addition & 0 deletions rosbag2_cpp/src/rosbag2_cpp/writers/sequential_writer.cpp
Expand Up @@ -110,6 +110,7 @@ void SequentialWriter::open(
}

bool dir_created = rcpputils::fs::create_directories(db_path);
dir_created &= db_path.is_directory();
if (!dir_created) {
std::stringstream error;
error << "Failed to create database directory (" << db_path.string() << ").";
Expand Down
Empty file added rosbag2_py/COLCON_IGNORE
Empty file.
7 changes: 1 addition & 6 deletions rosbag2_storage/src/rosbag2_storage/metadata_io.cpp
Expand Up @@ -232,12 +232,7 @@ BagMetadata MetadataIo::read_metadata(const std::string & uri)
YAML::Node yaml_file = YAML::LoadFile(get_metadata_file_name(uri));
auto metadata = yaml_file["rosbag2_bagfile_information"].as<rosbag2_storage::BagMetadata>();
rcutils_allocator_t allocator = rcutils_get_default_allocator();
if (RCUTILS_RET_OK !=
rcutils_calculate_directory_size(uri.c_str(), &metadata.bag_size, allocator))
{
throw std::runtime_error(
std::string("Exception on calculating the size of directory :") + uri);
}
metadata.bag_size = rcutils_calculate_directory_size(uri.c_str(), allocator);
return metadata;
} catch (const YAML::Exception & ex) {
throw std::runtime_error(std::string("Exception on parsing info file: ") + ex.what());
Expand Down
2 changes: 1 addition & 1 deletion rosbag2_transport/CMakeLists.txt
Expand Up @@ -166,7 +166,7 @@ function(create_tests_for_rmw_implementation)
rosbag2_transport_add_gmock(test_record_regex
test/rosbag2_transport/test_record_regex.cpp
LINK_LIBS rosbag2_transport
AMENT_DEPS test_msgs rosbag2_test_common
AMENT_DEPS test_msgs rosbag2_cpp rosbag2_test_common
${SKIP_TEST})

rosbag2_transport_add_gmock(test_play
Expand Down

0 comments on commit e5c7951

Please sign in to comment.