lbr_fri_ros2_stack icon indicating copy to clipboard operation
lbr_fri_ros2_stack copied to clipboard

no response from LBRServer

Open Miftahur92 opened this issue 1 year ago • 9 comments

Hi all, seeking help to connect a KMR omnimove 200 LBR iiwa 14 with ROS2 using FRI.

I tried to replicate the example in the readme. The IP address is different for me, instead of 172.31.1.147 it is 172.31.1.10. Whenever I select the LBRServer application on KUKA controller, nothing happens. Also I get failure message in the terminal as well. I have no idea what is going on. Screenshot 2024-06-06 141558 Screenshot 2024-06-06 114643 1717776176674 1717776176688 1717776176704 1717776176717

Miftahur92 avatar Jun 07 '24 16:06 Miftahur92

hi @Miftahur92 , thanks for the feedback.

Your IP configuration should be fine and seems consistent.

2 questions

  1. Run the application Simple question first: Did you run the LBRServer application? See below

lbr_server_run

  1. Configure IP in application Since your PC's IP is 172.31.1.11, you will have to change this in the LBRServer application:

https://github.com/lbr-stack/fri/blob/0a5e17a643b53dbcced8bd17c16027f71511a11a/server_app/LBRServer.java#L35

Please let me know if any of this helps.

mhubii avatar Jun 08 '24 10:06 mhubii

Thank you @mhubii for answering.

for 1. I have tried to run the application by pressing the enabling switch and pressing the play button. However, nothing happens. for 2. I have changed the IP address as indicated.

There is a safety controller warning. Still, I can move the robot manually with the KUKA controller. 1718032471402

Miftahur92 avatar Jun 10 '24 15:06 Miftahur92

I can suggest you to try and

  1. Ping the robot (ping 172.31.1.10)
  2. Check the FRI version (yours should be 1.16)
  3. Run any of KUKA's plain demos: https://github.com/lbr-stack/fri?tab=readme-ov-file#build
  4. Check firewall: https://github.com/lbr-stack/lbr_fri_ros2_stack/issues/67#issuecomment-1479794623

mhubii avatar Jun 10 '24 16:06 mhubii

Hi @mhubii thank you again for your quick response. I was able to run the application. The problem was with the calibration and mastering. However, I am still unable to connect with ros2 properly because of time mismatch between the laptop and KUKA controller. I tried to find a solution but the kuka controller interface is different in all the tutorials and guidelines. Do you have any suggestion for changing the time in kuka controller? 1718103498490

Miftahur92 avatar Jun 11 '24 11:06 Miftahur92

okay, great, progress!

don't have experience with changing the time, however, if you connect a screen, a keyboard, and a mouse to the KUKA controller, you can use it like any other Windows PC. Maybe that's how you can set the time?

mhubii avatar Jun 11 '24 11:06 mhubii

Hi, I couldn,t fix the time. But, I was able to run one of the plain demos you mentioned (https://github.com/lbr-stack/fri?tab=readme-ov-file#build) Next i tried to run lbr_demos_py. In the KUKA smartpad I can see the connection was established. But, there was no motion from the robot and in the Rviz, the robot was not properly displayed. Screenshot from 2024-06-13 13-18-46 Screenshot from 2024-06-13 13-18-00

Miftahur92 avatar Jun 13 '24 12:06 Miftahur92

Hi @mhubii. I have found a solution to make it work. I changed the value of "use_sim_time" from false to true in real.launch.py. Now, I can move the kuka iiwa14 with moveit.

Miftahur92 avatar Jun 13 '24 12:06 Miftahur92

hi @Miftahur92, thank you for returning to this. Could you please share where you changed that value?

use_sim_time should be false for the hardware, hence a little surprised

mhubii avatar Jun 13 '24 13:06 mhubii

line 26 of real.launch.py (robot_description=robot_description, use_sim_time=False) from lbr_bringup package.

Miftahur92 avatar Jun 13 '24 13:06 Miftahur92