RobotExMachina / Machina.NET

A library for real-time robot control.
MIT License
86 stars 33 forks source link

ConnectionTest ERROR (kuka-online) #22

Closed trtku closed 2 years ago

trtku commented 2 years ago

Hi, team Machina, thank you for keeping this amazing repository public! I am currently working with KUKA robot (kr10-r1100-2 and kr10-r900) and trying to move it online via Machina. Both of the controllers are KRC4.

My goal is to move the robot online (eventually from grasshopper without exporting KRL), and I've found Arastoo's demo video.

I’ve just tried to build Machina.NET application, and “EXAMPLE_OfflineCodeGeneration” worked perfectly! Now, trying to run EXAMPLE_ConnectionCheck to get a online communication, however, I’ve got stacked for the moment… (I also tried Machina-Bridge, but it always crashes when I press “CONNECT” button…, maybe it's under development for kuka?)

I understand that this kind of question is annoying for developers, but would be glad if you could give me a hint to proceed. I wrote the process down below and thanks in advance.


  1. Cloned github repository of Machina.NET, kuka_online branch
  2. For connection check with KRC4, tried below in windows command prompt
    
    C:\Users\name>ping 192.168.2.147

Pinging 192.168.2.147 with 32 bytes of data: Reply from 192.168.2.147: bytes=32 time<1ms TTL=64 Reply from 192.168.2.147: bytes=32 time<1ms TTL=64 Reply from 192.168.2.147: bytes=32 time<1ms TTL=64 Reply from 192.168.2.147: bytes=32 time<1ms TTL=64

Ping statistics for 192.168.2.147: Packets: Sent = 4, Received = 4, Lost = 0 (0% loss), Approximate round trip times in milli-seconds: Minimum = 0ms, Maximum = 0ms, Average = 0ms

3. In Visual Studio 2019, Build Batch, Start EXAMPLE_ConnectionCheck
4. got below

Initializing Connection Check Program ConnectionTest DEBUG: Waiting for intialization data from controller... ConnectionTest DEBUG: Started TCP client listener for KUKA robot communication ConnectionTest DEBUG: Started TCP client sender for KUKA robot communication ConnectionTest ERROR: Timeout when waiting for initialization data from the controller ConnectionTest ERROR: Cannot connect to device

Press any key to DISCONNECT... ConnectionTest INFO: Disconnected from KUKA robot "ConnectionTest"

Press any key to EXIT...



----------

That's it so far.
I will keep trying to figure this out and keep you updated.

Sincerely,
Ko