0
$\begingroup$

Historically I always did apt install ros-humble-<package_name> but for some reason the package I am wanting is not available.

I can download the package from github and compile it using colcon but I'm having issues using its messages in other packages(can't find source file) and in general I don't want to source it every time.

How do I install the package with the folder like I would using apt install?

$\endgroup$
4
  • $\begingroup$ May I ask which is the problem of sourcing it every time? You could just create a workspace with only that package and set it up into the bashrc in order to just source that package. $\endgroup$
    – ÁngeLoGa
    Apr 3 at 6:08
  • $\begingroup$ what's the package you want to install? if it's not an "official" Ros package it won't be available through apt. You'll have to compile it manually. As @ÁngeLoGa suggested, you can the source command in your bashrc. $\endgroup$
    – ejalaa12
    Apr 4 at 1:25
  • $\begingroup$ But where do I put it? Where do apt-get packages get installed? $\endgroup$ Apr 4 at 5:42
  • $\begingroup$ You should consider not mixing packages installed with apt, and others that weren't installed that way. Normally, you would use apt for packages that you won't be modifying and just want to call them. If you are planning to make modifications or develop anything, a better sugestion is to create a workspace in your root directory and installing the package on it, and source it each time you start a terminal. This can be done automatically as @Suchetan suggested editing the bashrc. apt-get are installed in the main install of ros /opt/ros/<version>/ $\endgroup$
    – ÁngeLoGa
    Apr 8 at 6:04

1 Answer 1

1
$\begingroup$

If you don't want to go through the manual process of sourcing the workspace everytime, you could consider adding it to your .bashrc or your .zshrc. It would look something like this. echo "source ~/your_ws/install/setup.bash" >> ~/.bashrc

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.