ros2genmsg folder path validation error line 197
Mostra commenti meno recenti
Going through the tutorials for both examples for custom ROS2 generation ROS2CustomMessagesExample and CreateShareableROS2CustomMessageExample yield this same error on 2 different computers.
Both are running MSVS 2019, one used python 3.8, the other 3.9 and the python environment was setup from the Matlab preferences. Matlab\Simulink Coders are installed. Microsoft Windows 10 Enterprise Version 10.0 (Build 19044), Java 1.8.0_202-b08 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode
It looks like a Linux/Windows mishap based on the / vs \
ros2genmsg(folderPath)
Identifying message files in folder 'C:/Users/223/Documents/MATLAB/Examples/R2023a/ros/ROS2CustomMessagesExample/custom'..Validating message files in folder 'C:/Users/223/Documents/MATLAB/Examples/R2023a/ros/ROS2CustomMessagesExample/custom'..Done.
Done.
Error using ros.ros2.internal.validateMsg
Invalid message format, package, or structure found during validation.
Error in ros2genmsg (line 197)
ros.ros2.internal.validateMsg(folderPath);
Caused by:
/usr/bin/bash: C:/Program: No such file or directory
1 Commento
Risposta accettata
Più risposte (1)
Josh Chen
il 14 Set 2023
0 voti
Hi CB,
Which location are you trying to generate these messages to? It seems somewhere under "C:/Program Files/..."? Would it work if you change it to somewhere else?
When this happened, is there any "log" folder got generated? If yes, please share it with us. Please also attach the support file generated by the following command:
ros.internal.generateSupportFile
This will help us to understand the system setup on your machine and better trouble this issue.
Thanks,
Josh
1 Commento
CB
il 15 Set 2023
Categorie
Scopri di più su ROS 2 Network Access in Simulink in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!