Matlab connection to Lego Ev3 fails on Apple OS Sierra: 'legoev3io​:build:Leg​oev3USBFai​led'

1 回表示 (過去 30 日間)
Fuzzy
Fuzzy 2016 年 12 月 26 日
コメント済み: Sudarshan Kolar 2017 年 1 月 3 日
On my apple Mac mini with OS Sierra I cannot establish a connection to the Lego EV3 brick. I have the Matlab Home Edition of R2016b installed and I followed the instructions for installing the Matlab support package.
The Lego provided software can interact with the robot without an issue, both over USB and Bluetooth. But creating the legoev3 object fails:
>> mylego = legoev3('usb')
Error using error Unable to load a message catalog 'legoev3io:build'. Please check the file location and format.
Error in legoev3 (line 300) error(message('legoev3io:build:Legoev3USBFailed'));
When stepping through the legoev3.m function with the debugger I reach the "mwhidapi" java function call in commUSB where the error is triggered. For Bluetooth I cannot connect either.
Could this be a configuration issue of java?

回答 (1 件)

Sudarshan Kolar
Sudarshan Kolar 2016 年 12 月 29 日
  2 件のコメント
Fuzzy
Fuzzy 2016 年 12 月 30 日
Hi Sudarshan
Yes, I had tried this. For bluetooth the error then happens with CommSerial, similar error capture with the following output:
>> myev3=legoev3('Bluetooth','/dev/tty.EV3-SerialPort') Error using error Unable to load a message catalog 'legoev3io:build'. Please check the file location and format.
Error in legoev3 (line 185) error(message('legoev3io:build:Legoev3BluetoothFailed'));
The error message catalogue legoev3io:build seems to be missing, could that be an indication?
Regards Fortunat
Sudarshan Kolar
Sudarshan Kolar 2017 年 1 月 3 日
Use myev3=legoev3(‘bt’,’<hardwareID>’) to setup the Bluetooth connection instead of using myev3=legoev3(‘bluetooth’,’<COMPort>’). [HardwareID can be obtained from the brick setup available on the EV3 brick]
Note that this workaround requires ICT toolbox to be installed.

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

カテゴリ

Help Center および File ExchangeMATLAB Support Package for LEGO MINDSTORMS EV3 Hardware についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by