フィルターのクリア

Problem in building up the Matlab-Carla Interface

18 ビュー (過去 30 日間)
Zhanhao Liang
Zhanhao Liang 2021 年 11 月 8 日
編集済み: Alexander 2024 年 7 月 13 日 22:14
Hi everyone,
I tried to build up the two-directional Simulink-Carla Interface and so started on setting up the Carla-to-Matlab interface to have a look on it.
So i started with this project: https://github.com/darkscyla/MATLAB-Carla-Interface#proof-of-concept.
I followed the tutorial video in it to connect Carla with Matlab, but i can’t get this step done so far(in video 1:58):
On my laptop it always shows:
Or
I have tried the solution here: http://coding-guru.com/easy_install-on-windows/, it doesn’t work:
  1. setuptools is installed as shown;
  2. Path setting for python is good:
Does anyone know another way to install the .egg file?
Or if someone also works on the Simulink-Carla interface and has some tipps, please feel free to share.
Thanks a lot.
  2 件のコメント
Ashiqur Rahaman MOLLA
Ashiqur Rahaman MOLLA 2022 年 7 月 15 日
編集済み: Ashiqur Rahaman MOLLA 2022 年 7 月 15 日
First check up the Versions of Python Compatible with MATLAB Products by Release then check (put) the installed python address in your environment variable (its important) and restart your computer. I hope the issue will be resolved. More can be found here Configure Your System to Use Python and How to Call Python from MATLAB | MATLAB and Python Together, Part 1 and part 2.
As i can see the python 3.10 is not supported for this. So please install lower version of python (3.7 or 3.8).
In the next part, when you run the examples they provided, let me know that how you resolved "Unable to resolve the name py.carla.Client" problem in matlab?
Alexander
Alexander 2024 年 7 月 13 日 22:13
編集済み: Alexander 2024 年 7 月 13 日 22:14
Hello Ashiqur,
To resolve the "Unable to resolve the name py.carla.Client" problem you must make sure that your .egg file and carla folder are added to path. Otherwise the python installation you loaded into Matlab will not find the Carla module and therefore cannot call Carla.client. Make sure you restart Matlab and reload your python version using the pyenv command after doing this.

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

回答 (0 件)

カテゴリ

Help Center および File ExchangePython Package Integration についてさらに検索

製品


リリース

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by