how to generate the custom message
4 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
I am trying to creat a message for ros in maltab.
the .msg filein the folder (/home/bikebot/catkin_ws/src/kinova-ros-master/kinova_msgs/msg) and under the folder there are multiple .msg files.
then I used the funciton rosgenmsg and got followign error.
folderpath ='/home/bikebot/catkin_ws/src/kinova-ros-master/kinova_msgs'
rosgenmsg(folderpath)
Identifying message files in folder '/home/bikebot/catkin_ws/src/kinova-ros-master/kinova_msgs'..Done.
Validating message files in folder '/home/bikebot/catkin_ws/src/kinova-ros-master/kinova_msgs'..Done.
[0/0] Generating MATLAB interfaces for custom message packages... Done.
Error using rosgenmsg (line 332)
No packages with '.msg' files found under
/home/bikebot/catkin_ws/src/kinova-ros-master/kinova_msgs. Each message package directory must
contain a directory named 'msg' that then contains '.msg' files.
Hope someone can help with this.
0 commentaires
Réponse acceptée
Cam Salzberger
le 16 Fév 2021
3 commentaires
Cam Salzberger
le 24 Fév 2021
Modifié(e) : Cam Salzberger
le 24 Fév 2021
I'm not sure what you mean by the custom message package not being able to be installed in R2020b. The vast majority of message definitions should work with either R2020a or R2020b. Off the top of my head, the only issues I can think of that would be usable in 20a but not 20b is if the message definition uses a reserved C++ keyword as a message or field name.
Can you provide more detail? Maybe with your message definition(s) if you can share it?
Plus de réponses (1)
can ren
le 25 Mai 2021
Did you encountered the following problems?
1 commentaire
Cam Salzberger
le 25 Mai 2021
Modifié(e) : Cam Salzberger
le 25 Mai 2021
For up to and including R2020b, ROS Toolbox only supports Visual Studio 2017 for custom message generation on Windows. For R2021a, it also supports Visual Studio 2019. Assuming you are using an earlier release of MATLAB, install VS2017 and use mex -setup to point to it. Or update to R2021a.
-Cam
Voir également
Catégories
En savoir plus sur Custom Message Support dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!