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
151 stars 47 forks source link

no response from LBRServer #188

Open Miftahur92 opened 5 months ago

Miftahur92 commented 5 months ago

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

mhubii commented 5 months ago

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.

Miftahur92 commented 5 months ago

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

mhubii commented 5 months ago

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
Miftahur92 commented 5 months ago

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

mhubii commented 5 months ago

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?

Miftahur92 commented 5 months ago

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 commented 5 months ago

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.

mhubii commented 5 months ago

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

Miftahur92 commented 5 months ago

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