rosgenmsg error in line333 MATLAB2020b

26 visualizaciones (últimos 30 días)
Holden Dwight
Holden Dwight el 29 de Dic. de 2020
Comentada: Momtaz Abadir el 24 de Sept. de 2022
I copied the packages used in ROS to Windows, and wanted to use rosgenmsg to create custom defined messages. The commands:
>> folderpath='D:\matlab2020b\S_Ch\msgs\control_msgs';
>> rosgenmsg(folderpath)
But it has errors:
error in rosgenmsg (line 333)
No packages with '.msg' files found under D:\matlab2020b\S_Ch\msgs\control_msgs. Each message package directory must
contain a directory named 'msg' that then contains '.msg' files.
Howerer, there is a folder named ‘msg’ in it which contains some ‘.msg’ files.
  1 comentario
Walter Roberson
Walter Roberson el 29 de Dic. de 2020
Your .msg files appear to be inside a MSG directory inside of control_msgs_msg . The .msg files need to be directly in msg directory.

Iniciar sesión para comentar.

Respuestas (1)

Cam Salzberger
Cam Salzberger el 4 de En. de 2021
Hello Holden,
You are providing the "package" folder to rosgenmsg, when instead it requires the parent folder of that. This is because there are commonly multiple message packages, each with their own package folder, inside a single location. In this case, you should be providing the path to the "msgs" folder to rosgenmsg.
See here for more details on the expected folder structure.
-Cam
  3 comentarios
Cam Salzberger
Cam Salzberger el 24 de Sept. de 2021
Jeen, what file path are you providing to "rosgenmsg"?
Momtaz Abadir
Momtaz Abadir el 24 de Sept. de 2022
Agree, it is folderpath='D:\matlab2020b\S_Ch\msgs';

Iniciar sesión para comentar.

Categorías

Más información sobre Custom Message Support en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by