Trossen Robotics Pincher can't connect to Matlab

조회 수: 4 (최근 30일)
Stephen Wilkerson
Stephen Wilkerson 2017년 12월 27일
댓글: Walter Roberson 2019년 3월 4일
I have the libraries from Peter Corke installed, but when I start it tells meopen failed. Has anyone seen this: >> arb=Arbotix("port", "/dev/cu.usbserial-AL03ERRI", "nservos", 5); open failed ans = 'Open failed: Port: is not available. Available ports: /dev/tty.Bluetooth-Incoming-Port, /dev/cu.Bluetooth-Incoming-Port, /dev/tty.usbserial-AL03ERRI, /dev/cu.usbserial-AL03ERRI. Use INSTRFIND to determine if other instrument objects are connected to the requested device.'

답변 (2개)

Walter Roberson
Walter Roberson 2017년 12월 27일
Check the permissions on the device. Os-x and Linux default to having the dev tty devices available only to root.
You might need to sudo chmod or sudo chown the device. But changes made this way usually do not survive reboot;the way to make them persistent depend on your os

Jason
Jason 2019년 3월 4일
You probably have a fix for this but I had the same error. I just replaced "/dev/cu.usbserial-AL03ERRI" (which I have no idea what it was trying to do) with the actual COM port I was using. Like "COM7".
I'm actually having some issues using Corke's "Using the Robotics Toolbox with a real robot" document. The inverse kinematics dies when I try it saying the DOF is not sufficient. I'm using the exact same matlab code as he did. I'm guessing something must have changed.
Good Luck
Jason
  댓글 수: 1
Walter Roberson
Walter Roberson 2019년 3월 4일
/dev/cu.usbserial-AL03ERRI is Linux convention for an automatically created device name for a virtual serial port that is interfacing to a USB emulated serial port for a device with identifier AL03ERRI . On Windows, emulated serial ports appear as COM* devices.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 ROS Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by