Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ROS python script] Forest grow after python scripts changes #48

Open
lucacovizzi opened this issue Jun 20, 2022 · 1 comment
Open

[ROS python script] Forest grow after python scripts changes #48

lucacovizzi opened this issue Jun 20, 2022 · 1 comment

Comments

@lucacovizzi
Copy link

System Info

  • OS: Ubuntu Focal [20.04.4 LTS x86_64]
  • Kernel: 5.13.0-51-generic
  • ros distro: noetic

Report

In the CMakeList.txt I added the following statement in order to ensure that the python script gets installed properly:

catkin_install_python(PROGRAMS scripts/<my_script.py>
  DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
)

Instead of running forest grow <my_pkg> only once, I've to repeat that command after every changes in the python script. This has to be done before launching the node with rosrun <my_pkg> <my_script.py>

@MarcoRuzzon
Copy link
Collaborator

From https://nu-msr.github.io/me495_site/lecture02_catkin.html

The devel space is configured to access python scripts directly from the src. This means you don't need to rebuild every time your python code changes. With the install space, you would need to run catkin_make after every change.

As of now, Forest does not have a devel space and its install space behaves in the same way as catkin's: you would need to run forest grow after every change.

For sure, it would be useful to support an editable install for python scripts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants