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

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.

 Réponse acceptée

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

1 commentaire

This also solved the issue I was having when using the Robotics System Toobox and ROS Toolbox.
The command rosinit was returning a similar error, like:
Invalid default value for property 'RandomSource' in class 'ros.internal.Global': Unable to resolve the name 'robotics.internal.Random'.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

Community Treasure Hunt

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

Start Hunting!

Translated by