ValerioMagnago / robotiq_tcp

C++ interface for robotiq epick gripper
MIT License
8 stars 1 forks source link

the error shows:'connection failed:operation now in progress #1

Open robint-XNF opened 3 years ago

robint-XNF commented 3 years ago

hello! thanks for your share, i use my epick with UR3, and try to control it by your approach, and i set the Modbug ip address as same as the code, however, when i roslaunch the launch file, the error shows:'connection failed:operation now in progress. could you pleasea tell me why or the steps that i might ignored? thanks very much!

ValerioMagnago commented 3 years ago

Hello robint-XNF, I was quite surprised reading your email because the repository was a quick hack done sometime ago to have things running. Anyway I am happy if this can help others!

Unfortunately now I do not have any robotiq gripper to test the repository but as far as I can understand the problem is at this line https://github.com/ValerioMa/robotiq_tcp/blob/45891abd454c3e5bc1bf75ebf151256d5a283d5d/robotiq_epick_control/include/robotiq_modbus_tcp/tcp_manager.h#L86 and I think you need to check the libmodbus library documentation to have more information on the error ( https://libmodbus.org/docs/v3.0.7/libmodbus.html).

First ideas that comes to my mind is that maybe you have some firewall preventing the communication? Or did you also tried to use other ports e.g. 1502 ?

Best regards, Valerio

Il giorno lun 19 lug 2021 alle ore 15:16 robint-XNF < @.***> ha scritto:

hello! thanks for your share, i use my epick with UR3, and try to control it by your approach, and i set the Modbug ip address as same as the code, however, when i roslaunch the launch file, the error shows:'connection failed:operation now in progress. could you pleasea tell me why or the steps that i might ignored? thanks very much!

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/ValerioMa/robotiq_tcp/issues/1, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEJ4WCUZ4HPIOTKS4DRTUD3TYQQUPANCNFSM5ATV4W7A .

safarve commented 3 years ago

Hello ValerioMa, I am also trying to control the epick gripper using your driver. I faced the same issue robint-XNF faced. I had to manually change the rosparam ip to my target IP. I am able to establish connection but upon initializing, I am getting this warning: FAILED TO WRITE. I am fairly new to modbus communication and data transfer in general. If you can please provide a brief procedure that I can follow, in-order to use this driver., that would help me alot. Thanks.