TechmanRobotInc / tmr_ros2

TM Robots supporting ROS2 drivers and some extended external applications. (experimental) (not support the new TM S-Series)
Other
37 stars 21 forks source link

[TM_WARN] TM_COM: Connection timeout #7

Closed victorbillaud closed 2 years ago

victorbillaud commented 3 years ago

Hello,

I have a problem with my connexion, i don't understand, im following all the tutorial (https://github.com/TechmanRobotInc/tmr_ros2) and my connexion doesn't work. Can you explain me ?

image

guanyewtan commented 3 years ago

Hi! I usually face this error when I forget to run the TM program, is the TM program running in the listen node? If you see the line 'data table is correct' but with the connection error:

image

It probably means your connection is set up correctly but the TM program isn't started/is not in the listen node.

If the 'data table is correct' line isn't there then it might be an issue with the connection setup.

victorbillaud commented 3 years ago

Thanks for your answer, I don't see anything like that on log. Im working on ros-dashing.

I will send you a screenshot soon.

victorbillaud commented 3 years ago

Look my log this morning. Im retrying on ros-melodic. image

daan-schepers commented 3 years ago

These are the exact same issues i'm running up against. The connection is made, I'm able to ping the cobot's address and can also use the image_talker node.

But my hardware is a Raspberry Pi 4, so I thought it has something to do with the arm-processor. Currently testing with a Ubuntu based laptop, but have not had any succes either...

guanyewtan commented 3 years ago

Not sure if this helps but my Ethernet cable is connected here: 2C9DF033-C0BB-42C9-8012-28FCFFC56A63

I'm using a virtual machine to run Linux but I had to change the ipv4 setting in windows network settings. Next week I'm gonna be setting up another Linux system so I'll take note of the steps I took and see if I encounter the same problem 😅

daan-schepers commented 3 years ago

@guanyewtan is right, you need to connect through that specific ethernetport because it is configured for Modbus. Some commando's (like setting IO's) go via modbus, thus they won't work on the other point. (except when you give the commando's via socket only)

But @victorbillaud, The trick is to configure all the network setting like in the tutorial, then restart the cobot, then start the tm_driver node. In my setup it works every time like this. Sadly kind of a hassle, but the cobot needs to start up with your ROS machine in the same network lane.

janandries commented 3 years ago

are you sure that the Modbus / Ethernet Slave is enabled in the TM Flow (Settings >> Connection >> Modus Slave or Ethernet Slave)? I have the problem that the robot doesn't always start up with that enabled, i think when it can't find a ethernet connection during boot, it will turn it off.