Problem facing in hardware interfacing between robotic arm and ROS..

asked 2021-02-17 13:24:35 -0500

HASSAN ISMAIL gravatar image

Hello..! I am working on a 6 DOF robotic arm whose servo motor has based on UART communication. Basically I am using Lewansoul robotic arm You can check the description of the arm from here and I am cloning this Package of the robotic arm. After I connected my robotic arm with the ubuntu 18.04 and then run the following command. The following error came

robotics:~/catkin_ws$ rosrun lewansoul_xarm xArm-ros.py Traceback (most recent call last): File "/home/robotics/catkin_ws/src/lewansoul-xarm/scripts/xArm-ros.py", line 42, in <module> ros_main() File "/home/robotics/catkin_ws/src/lewansoul-xarm/scripts/xArm-ros.py", line 16, in ros_main controller = lewansoul_xarm.controller() File "/home/robotics/catkin_ws/src/lewansoul-xarm/src/lewansoul_xarm/controller.py", line 59, in __init__ raise Exception('no device detected, make sure the arm is powered, connected and you have read-write permissions on /dev/hidraw') Exception: no device detected, make sure the arm is powered, connected and you have read-write permissions on /dev/hidraw closing xArm controller Exception AttributeError: "'controller' object has no attribute '_arms'" in <bound method="" controller.__del__="" of="" <lewansoul_xarm.controller.controller="" object="" at="" 0x7f9b4a4e2510="">> ignored

I installed the hidapi by using the following commands.

sudo apt-get install libhidapi-hidraw0 libhidapi-libusb0
pip install --user hid
sudo apt-get install python-dev libusb-1.0-0-dev libudev-dev
sudo pip install --upgrade setuptools
sudo pip install hidapi

clonning the hidapi From here from here and after that I used the following commands

sudo apt-get install libudev-dev libusb-1.0-0-dev libfox-1.6-dev
sudo apt-get install autotools-dev autoconf automake libtool
./bootstrap
./configure
make
sudo make install

but still the error came again and again. Please help me in this regard.

edit retag flag offensive close merge delete