ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Furthermore to your answer, if you need to install a python package that goes with your myscript.py then you can also use ament to properly install it:

find_package(ament_cmake_python REQUIRED)
   ...
ament_python_install_package(my_package)

Where the my_package argument is a directory is alongside the CMakeLists.txt file with an __init__.py file in it.