Closed RishabhGarg108 closed 2 years ago
There's a setup.zsh
in the same folder, you should be using that one instead.
IIUC, the two files are needed because there isn't a way to get the source file directory that is compatible with both bash and zsh.
If this doesn't solve the issue, please let me know and we can reopen the ticket.
After running
source devel/setup.bash
, I encountered the following errorI did some digging and I found out that
command is setting
_CATKIN_SETUP_DIR
to the directory from which I run thesource devel/setup.bash
command.I found on internet that for
zsh
,${0:A:h}
gives the directory of the source file. Then I tried the following command and it worked correctly for me:I am not sure whether the earlier script was intended only for bash terminals or I did something wrong. Anyways, I thought it might be helpful to share this :)