lbr-stack / lbr_fri_ros2_stack

ROS 1/2 integration for KUKA LBR IIWA 7/14 and Med 7/14
https://lbr-stack.readthedocs.io/en/latest/
Apache License 2.0
121 stars 34 forks source link

New package with our own robot setup. #134

Open Shenwei0 opened 8 months ago

Shenwei0 commented 8 months ago

Hi

We have used your bringup system as a means to create a simulation of our own dual-arm setup (currently there's only one arm). We have created our own 'package' called 'left_arm_moveit_config' which is a copy of your 'iiwa7_moveit_config', but changed all necessary parameters in all necessary files (we think so...) to suit ours (see image NewPackage.png). NewPackage

We have also created a new URDF directory containing our URDF in the lbr_description directory(see image OurURDF.png), and changed all the files (we think so...) where URDF is called with our own URDF.

We then run 'ros2 launch lbr_bringup bringup.launch.py model:=left_arm sim:=true rviz:=true moveit:=true'. However, in the motion planning panel, there is no content in the 'Move Group Namespace', which we assume is why we are unable to plan&execute (see DualArmRviz.png). DualArmRviz

We can also see using rqt_graph, that some nodes and connections are missing, compared to when running your iiwa7 simulation (see images OurRQTgraph2.png and YourRQTgraph.png). As you can see, we are missing the action connected from the node /lbr/position_trajectory_controller, and also our /lbr/move_group node is only connected to /lbr_display_planned_path, as compared to yours which connected to several other actions. yourRQTgraph OurRQTgraph2

Can you help? Have me missed any steps? Any help is appreciated.

mhubii commented 7 months ago

hi @Shenwei1234 , thanks for coming back. Could you please share the code repository then I can have a look

Shenwei0 commented 7 months ago

Sorry for the very late response!

We eventually found that this behaviour could be fixed be changing the "Move Group Namespace" that was shown in Rviz directly from the moveit.rviz file in the custom moveit config package instead of the GUI. This seems to have fixed the error. Although I still don't understand why this couldn't be done from the GUI 🤔 Disclaimer: This solution is by @TheMipmap (we work together), and this is written on his behalf:)

mhubii commented 7 months ago

okay glad you were able to find this solution, maybe let me re-open it, as it is definitely still an issue

In fact, this is one of the only packages that namespaces the Move Group, and I believe there are a couple of errors that arise from that.

Just to highlight for others. What you probably changed is the Move Group Namespace in the RViZ config:

https://github.com/lbr-stack/lbr_fri_ros2_stack/blob/688c8bac9cdea496f55db394a32054f99a04504b/lbr_moveit_config/iiwa7_moveit_config/config/moveit.rviz#L41

Could you please confirm that real quick @Shenwei1234. Thank you so much!

Shenwei0 commented 7 months ago

Yes that is correct:)