This is the error i am getting for launch cartographer pkg

user:~/ros2_ws/src/cartographer_slam/launch$ ros2 launch cartographer_slam cartographer.launch.py
file ‘cartographer.launch.py’ was not found in the share directory of package ‘cartographer_slam’ which is at '/home/user/ros2_ws/install/cartographer_slam/share/cartographer_slam’

PLease help!!

I have found the issue myself. I need to add the path to launch and config folders in data_files field in the setup.py.

Hello @dhanaprakaashg ,

Glad you found it by yourself!