运行命令 "rosbag play example.bag" 时出错。找不到与插件 rosbag/NoEncryptor 对应的库

Error occurs when I run command "rosbag play example.bag". Could not find library corresponding to plugin rosbag/NoEncryptor

本文关键字:rosbag NoEncryptor 插件 example play 命令 bag 运行 出错 找不到      更新时间:2023-10-16

我目前正在学习如何使用rosbag,但是当我运行命令"rosbag play D:\summer_project\20200619_123634.bag"时,我收到以下错误:

C:WindowsSystem32>rosbag play D:summer_project20200619_123634.bag
[ INFO] [1593471808.789562700]: Opening D:summer_project20200619_123634.bag
[FATAL] [1593471809.093414800]: Could not find library corresponding to plugin rosbag/NoEncryptor. Make sure the plugin description XML file has the correct name of the library and that the library actually exists.

我在网上做了一些研究,我需要用NoEncryptor做一些事情。这是我找到的链接:http://wiki.ros.org/pluginlib; https://docs.ros.org/melodic/api/rosbag_storage/html/c++/classrosbag_1_1NoEncryptor.html;

我从未使用过c语言,所以我对设置过程一无所知。我需要如何处理.cpp文件和 .h 文件?如果有人能给我一些想法或建议,将不胜感激!

我已经通过在WSL中使用Ubuntu 18.04解决了同样的问题。我建议在WSL中构建ROS,而不是尝试使用本机Windows ROS构建。它仍然太不稳定,无法在不遇到错误的情况下完成任何工作,浪费太多时间。

以下是这个: WSL Developement with VSCode

这是 WSL 上的 ROS 教程:WSL 上的 ROS