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

Schema in Package.xml prevents writing rosbag #1897

Open
SegfaultCreator opened this issue Jan 14, 2025 · 0 comments
Open

Schema in Package.xml prevents writing rosbag #1897

SegfaultCreator opened this issue Jan 14, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@SegfaultCreator
Copy link

SegfaultCreator commented Jan 14, 2025

Description

XML Schema reference in /opt/ros/jazzy/share/rosbag2_storage_mcap/Package.xml prevents from writing Rosbag

Expected Behavior

Using ros galactic, we could write data into a rosbag as follows:

rosbag2_cpp::Writer rosWriter;

rosWriter.open(file.toStdString());

std_msgs::msg::String testmsg;
testmsg.data = "test";

rosWriter.write(testmsg, "TestMsg", rclcpp::Time(0));    

Actual Behavior

Executing the same code in ros jazzy leads to the following errors

[ERROR] [1736858572.767223751] [pluginlib.ClassLoader]: Could not find a root element for package manifest at /opt/ros/jazzy/share/rosbag2_storage_mcap/package.xml.
[ERROR] [1736858572.767244212] [pluginlib.ClassLoader]: Could not find package manifest (neither package.xml or deprecated manifest.xml) at same directory level as the plugin XML file /opt/ros/jazzy/share/rosbag2_storage_mcap/plugin_description.xml. Plugins will likely not be exported properly.
)
[ERROR] [1736858572.767315553] [pluginlib.ClassLoader]: Could not find a root element for package manifest at /opt/ros/jazzy/share/rosbag2_storage_mcap/package.xml.
[ERROR] [1736858572.767318877] [pluginlib.ClassLoader]: Could not find package manifest (neither package.xml or deprecated manifest.xml) at same directory level as the plugin XML file /opt/ros/jazzy/share/rosbag2_storage_mcap/plugin_description.xml. Plugins will likely not be exported properly.
)
[ERROR] [1736858572.767428272] [rosbag2_storage]: Unable to load plugin 'mcap': ament_index_cpp::get_resource() resource name must not be empty
[ERROR] [1736858572.767432314] [rosbag2_storage]: Could not load/open plugin with storage id 'mcap'

Further actions taken to track down the root cause

  1. Commenting out this XML Schema reference in the storage_mcap/package.xml fixes the issue:
    <?xml-model href="http://download.ros.org/schema/package_format3.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?>
  2. The issue persists when downloading the schema and referencing the local schema.
  3. XML is valid using xmllint

System (please complete the following information)

  • OS: Ubuntu 24.04.1 LTS
  • ROS 2 Distro: jazzy
  • Install Method: APT
  • Version: I didn't find the exact version (Edit: rosbag2_storage_mcap version 0.26.6)
@SegfaultCreator SegfaultCreator added the bug Something isn't working label Jan 14, 2025
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

1 participant