Error while using webots matlab controller

hello!
im trying to conduct a robot controlller using webots simulater , but i get this error while using matlab
what should i do?

9 件のコメント

Olivier Michel
Olivier Michel 2020 年 4 月 27 日
Please try to use the latest version of Webots R2020a revision 2 (nighlty build) which you can download from https://github.com/cyberbotics/webots/releases and let me know if the problem persists. This new version improves the support for MATLAB in Webots.
Mohammad Adeeb
Mohammad Adeeb 2020 年 4 月 27 日
Im already using it , still the same error
Mohammad Adeeb
Mohammad Adeeb 2020 年 4 月 27 日
The proplem in the matlab software , i mean the error appears in matlab
Olivier Michel
Olivier Michel 2020 年 4 月 29 日
Which version of MATLAB are you using?
Walter Roberson
Walter Roberson 2020 年 4 月 29 日
I do not think R2017a had that install add-ons feature.
You could try installing whatever file it is trying to install, and then commenting out that line.
Mohammad Adeeb
Mohammad Adeeb 2020 年 4 月 29 日
編集済み: Mohammad Adeeb 2020 年 4 月 29 日
I dont know which add-on its trying to find or install
Walter Roberson
Walter Roberson 2020 年 4 月 29 日
It appears that you have a startup.m file on your MATLAB path that is trying to find the installed add-ons, using a function that did not exist in R2017a. Perhaps you had a newer version installed and somehow the startup.m for it got used. Or perhaps you have a third-party toolbox that has its own startup.m .
Test with using
restoredefaultpath; rehashtoolboxcache; savepath
Then exit and re-enter MATLAB and see if the problem still shows up. If it does then it will be necessary to track down which startup it is doing.
Mohammad Adeeb
Mohammad Adeeb 2020 年 4 月 29 日
編集済み: Mohammad Adeeb 2020 年 4 月 29 日
Ok , thank u for ur effort i will try and then i’ll tell u the result
Michael Currie
Michael Currie 2020 年 5 月 19 日
Hi Mohammad Adeeb,
It seems that Cyberbotics have made new directories in the R2020a version which have not been updated in their header file and matlab launcher file. I fixed this issue on my machine (Windows) by doing the following:
In the launcher.m file (..\Webots\lib\controller\matlab):
  • Change each line containing 'lib/matlab' to 'lib/controller/matlab'
  • It's lines 15, 23 and 132
In allincludes.h (..\Webots\lib\controller\matlab):
  • Change each include path so that it goes back a further directory
  • eg: #include "../../../include/controller/c/webots/accelerometer.h"
Should work after that. I'm still receiving errors regarding a remote control library, but I haven't looked into that yet.

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

回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeStartup and Shutdown についてさらに検索

製品

リリース

R2017a

質問済み:

2020 年 4 月 24 日

コメント済み:

2020 年 5 月 19 日

Community Treasure Hunt

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

Start Hunting!

Translated by