lbr-stack / lbr_fri_ros2_stack

ROS 2 integration for KUKA LBR IIWA 7/14 and Med 7/14
https://lbr-stack.readthedocs.io/en/latest/lbr_fri_ros2_stack/lbr_fri_ros2_stack/doc/lbr_fri_ros2_stack.html
Apache License 2.0
140 stars 42 forks source link

FRI Session Could Not Be Established #24

Closed MrstupidJ closed 1 year ago

MrstupidJ commented 1 year ago

Hi we have followed all the steps to conenct the robot controller to the windows PC to setup the LBR Server application in the controller. Now we are trying to establish a connection between the robot and the linux computer running ROS2 application. However, when we start the LBR server from the Kuka Smart Pad we are getting the following error which points to that the error is coming due to configuration issues. We have gone over the network configuration multiple times and they all seem correct. Are we meant to run a certain version of the sunrise software? We are currently running Sunrise Workbench - Med 1.15.

We do not have access to your school's sharepoint to look at any of the additional resources. We are able to successfully ping the robot controller from the linux computer.

Screenshot from 2022-11-15 11-26-32

Please look at this image of the error we get from the smart pad. It is pointing at this line

error_page1 error_page2

Any help here would be greatly appreciated.

mhubii commented 1 year ago

hey @MrstupidJ , are you sure you configured the network correctly? From the image above, it seems there are issues with pinging the robot, ie DUP!. The robot has 2 ethernet ports, KONI under 192.170.10.2 and the non real-time one under X66, 172.31.1.147. Where did you plug in the ethernet cable? I would also recommend you to run the robot in T1 mode rather than AUT mode for now

mhubii commented 1 year ago

on another note, in the launch file here, chrt is a linux command to launch an executable with real-time priority. This might not work on windows and cause the hardware interface not to be launched. In order to work on linux, you have to edit the real-time priority of your user. So you might want to comment that out for now. We are working on making this optional in the launch file, but are also busy doing research, so pull-requests are always welcomed. Thank you for the feedback

mhubii commented 1 year ago

also you set the the Client command mode to NO_COMMAND_MODE. This defines what the commands you send to the robot. To begin with, select POSITION

MrstupidJ commented 1 year ago

Thanks for your reply @mhubii !

I commented out the line you mentioned and it worked!

Just to clarify, the DUP! thing is normal when you try to Ping the KUKA FRI. It seems like it means to do so to achieve high frequency real-time data exchange. And yes it is a good and safe practice to run in T1 mode first,

mhubii commented 1 year ago

great, thank you for the feedback!