I have an ament_cmake package that is mostly c++ but it also contains a python script in the "package_dir/script" folder (following the ROS1 directory convention). My expectation is that the script could be invoked using "ros2 run" and also could be referenced from launch files as an executable node.
Would it be possible to install this python file as an executable script from this ament_cmake package? If that is possible, what would be the cmake "install" function I should use for the python file or the scripts directory?
Should I instead create another separated ament_python package for that single script?
Post score: 1