How to specify the path to ROS package in VM

3 ビュー (過去 30 日間)
Van Chuong Nguyen
Van Chuong Nguyen 2021 年 2 月 8 日
コメント済み: Van Chuong Nguyen 2021 年 2 月 8 日
Hi,
I follow the tutorial from here to create custom messages from ROS package
My ROS package is in my project in VM - Ubuntu, and my host computer is Win 7.
In Matlab in Win 7, I want to enter the folder path of the ROS package in VM, but don't know how to get this path because it is in the VM, not in the host computer.
Could you please help me figure out this issue?
Thank you

採用された回答

Abhijeet Gadkari
Abhijeet Gadkari 2021 年 2 月 8 日
Hello Van,
You cannot build the custom message on the remote device, in this case your Ubuntu VM.
The message definitions must be accessible through MATLAB, in this case your Win 7 host computer.
Please copy the message definitions to the host computer from Ubuntu VM and the provide that folder path to rosgenmsg command.
-Abhijeet
  1 件のコメント
Van Chuong Nguyen
Van Chuong Nguyen 2021 年 2 月 8 日
Thanks Abhijeet,
I just copied the packages from VM to the host computer, and set the folderpath as
folderpath='C:\Program Files\MATLAB\R2020b\custom_msgs\packages';
However, after I run rosgenmsg(folderpath), it shows the error
I checked inside the msg folder here, I realize that the .msg files are already exists
So it really makes me confused with this issue.
Could you please help me figure out this issue?
Thank you for your advice!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeCustom Message Support についてさらに検索

製品


リリース

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by