ROS2 Package using both C++ and Python
How can I configure a ROS2 package that contains both C++ and python code for installation? I am aware of a previous question here, but the answer does not provide an example. I tried following the tutorial here, but I get No executable found
when trying to run my python script with ros2 run
(the C++ executables run without issue).
How do I configure my CMakeLists.txt to install python scripts so that ros2 run
can find them?
Edit: I have also tried the call to install(FILES <script.py> DESTINATION share/${PROJECT_NAME})
used here to no avail.
Hi,
have you tried adding launch.py in CMakelist.txt and launch the nodes pass the test. I have migrated .test files from ros1 to launch.py in ros2 but not able to add it in CMakelist.txt. With ros1, we can do with rostest.
Thanks, Poonam
@poonam1120 I've already asked you to not use answers to ask questions. Please use comments.
@William, My apologies.
No worries, just try to use comments unless it's actually an answer :)