Hi All
I was creating my first launch file in the Unit 2.6 and I get:
user:~/ros2_ws$ colcon build
Starting >>> my_package
Finished <<< my_package [1.13s]
Summary: 1 package finished [1.32s]
user:~/ros2_ws$ source ~/ros2_ws/install/setup.bash
ROS_DISTRO was set to ‘foxy’ before. Please make sure that the environment does not mix paths from different distributions.
ROS_DISTRO was set to ‘noetic’ before. Please make sure that the environment does not mix paths from different distributions.
user:~/ros2_ws$ ros2 launch my_package my_package_launch_file.launch.py
file ‘my_package_launch_file.launch.py’ was not found in the share directory of package ‘my_package’ which is at ‘/home/user/ros2_ws/install/my_package/share/my_package’
I have repeated all steps and seems ok. May it be the message before to source?
Thanks.