jkaniuka / magician_ros2

ROS 2 control stack for Dobot Magician educational manipulator.
MIT License
34 stars 11 forks source link

Not able to connect Dobot #7

Closed VijayAnand-Kandaswamy closed 6 months ago

VijayAnand-Kandaswamy commented 6 months ago

After following the command when I connect I am getting error , " Dobot is disconnected and check if USB cable and power adapter are plugged in"

I request you to help to solve the above erroe

jkaniuka commented 6 months ago

Hi @VijayAnand-Kandaswamy, please connect Dobot Magician to computer via USB, power it up and then execute lsusb command in terminal. You should see a device named Silicon Labs CP210x UART Bridge. Which operating system are you using btw?

VijayAnand-Kandaswamy commented 6 months ago

Thank you for your reply When i gave lsusb , I didn't get Silicon Labs CP210x UART Bridge I am using Ubuntu 22.0.4 LTS . Please see the screenshot for more info.. Screenshot from 2024-03-02 11-13-47 Screenshot from 2024-03-02 11-13-36

VijayAnand-Kandaswamy commented 6 months ago

I followed all the step and I connected the DOBOT with USB and power on, but still its not working , Please let me know what is the mistake ...

VijayAnand-Kandaswamy commented 6 months ago

I think instead of Silicon Labs CP210x UART Bridge. I am getting Qinheng Electronics USB single Serial ....as the port connected for DOBOT. Please check the screenshot ....

jkaniuka commented 6 months ago

Hi @VijayAnand-Kandaswamy, I thoroughly investigated your issue and came across the following forums on the internet:

Both of them mention the QinHeng Electronics chip. Maybe these chips were mounted in older Dobot models? I've added a patch (https://github.com/jkaniuka/magician_ros2/commit/3b903ef0bf2db9dc2e1dcf16001dab02e8d36e0c) that should allow you to launch the control system. Let me know if this resolves your problem :wink:

hemachandiran14 commented 6 months ago

hi @jkaniuka , I'm an associate of @VijayAnand-Kandaswamy Thanks for the solution, now the serial communication is happening but we couldn't install the pyKDL module Screenshot from 2024-03-05 14-40-43

jkaniuka commented 6 months ago

Hi @hemachandiran14, I will verify it tomorrow, but as for now I think that you can ignore installing PyKDL from requirements.txt and just install it using sudo apt install python3-pykdl :wink:

jkaniuka commented 6 months ago

Hi @hemachandiran14 , I fixed it in https://github.com/jkaniuka/magician_ros2/commit/761776968aef4bf6c8fd596b3871da49adc87c82. Thanks for reporting this issue :+1:

hemachandiran14 commented 6 months ago

hi @jkaniuka ,thanks for the response we have installed pyKDL and yet we facing an another problem Screenshot from 2024-03-07 12-49-01

jkaniuka commented 6 months ago

Hi @hemachandiran14, after adding yourself to dialout group please reboot your computer :wink:

hemachandiran14 commented 6 months ago

Just changed the ttyUSB0 to ttyACM0 . worked out finally..!! thanks for all your support :smirk: