ros2 launch autocomplete only finds some launch files
I have a package for launch files, with the following CMakeLists.txt:
cmake_minimum_required(VERSION 3.8)
project(launch_package)
if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
add_compile_options(-Wall -Wextra -Wpedantic)
endif()
# find dependencies
find_package(ament_cmake_auto REQUIRED)
ament_auto_find_build_dependencies()
ament_auto_package(INSTALL_TO_SHARE
launch
)
and the following launch xml file:
<?xml version="1.0"?>
<?xml-model href="http://download.ros.org/schema/package_format3.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?>
<package format="3">
<name>launch_package</name>
<version>0.0.0</version>
<description>Launch packages</description>
<maintainer email="my@email.com">name</maintainer>
<license>MIT</license>
<buildtool_depend>ament_cmake</buildtool_depend>
<test_depend>ament_lint_auto</test_depend>
<test_depend>ament_lint_common</test_depend>
<exec_depend>ros2launch</exec_depend>
<exec_depend>package1</exec_depend>
<exec_depend>package2</exec_depend>
<exec_depend>package3</exec_depend>
<exec_depend>package4</exec_depend>
<export>
<build_type>ament_cmake</build_type>
</export>
</package>
Further, I have a launch
folder with different launch files.
After I build and source the workspace, I run ros2 launch launch_package
and press tab for autocomplete, I see 2 of the launch files. All other launch files are not recognized from autocomplete. However, I can still run the launch files by typing the names by hand. I also find all the files in the install
folder. What coul be the reason that I do not see parts of the launch files in autocomplete, even though they reside in the same folder?