Closed Timple closed 5 years ago
Thank you @Timple for the the report, I could not respond sooner due to summer vacation.
Could the sourcing of the devel space be done relative the the workspace maybe? Because the root is always the workspace. So {workspace}/devel/setup.bash should be fine. Or make an option to select a setup.bash file.
Very good idea. The only problem with hard coding {workspace}/devel/setup.bash
is:
.bash
, there could be another shell in use (another open bug)devel
, there could be another catkin profile in useHowever, we can:
.catkin_tools
is foundcatkin locate -d
in this directorycatkin build --this
Version 1.5.2 contains the described solution.
@Timple, please feel free to re-open this issue if it does not work for you!
Seems to work, great thanks!
Output
In this case I have a symlink to
mypkg
in thecatkin_ws
folder. Normal catkin operation works. Also catkin build --this works fine in a terminal.However catkin locate gives the absolute path instead of the symlinked version. There doesn't seem to be a nice python solution to get the symbolic link. (Otherwise I've would have opened a PR there).
Could the sourcing of the devel space be done relative the the workspace maybe? Because the root is always the workspace. So
{workspace}/devel/setup.bash
should be fine. Or make an option to select a setup.bash file.