When using rosbag() to open a file, get error: Unable to resolve the name 'robotics.​internal.v​alidation.​findFilePa​th'

6 次查看(过去 30 天)
I am running Matlab R2023a on Ubuntu 20.04 with the ROS Toolbox and Robotics System Toolbox installed. I have added the path to the toolboxes, including all of their subfolders, to the "Set Path" dialog. My command is very simple:
bag = rosbag("/home/user/bagfile.bag")
I get only the error:
Unable to resolve the name 'robotics.internal.validation.findFilePath'.
The file path listed in the error does not exist in the Toolbox folder on disk. Should it? I am not sure how to begin resolving the error.

采纳的回答

Matt Boyd
Matt Boyd 2023-5-31
For anyone else who has this issue, it turns out you need to include the path to the Toolbox "shared" folder, and subfolders, in the "Set Path" dialog.
For me that was:
/usr/local/MATLAB/R2023a/toolbox/shared

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 ROS Log Files and Transformations 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by