install ros2 package without cloning
So let's say that I developed a ros2 package and it's on github. One way to use it in my workspace is to clone it, build it, and use it, e.g. launching a node from it. Is there any other way to install it in my workspace? For instance by executing a command that gets the git repo, builds it (or just simply downloads an already built version of the package), and installs the built package in the install
folder in my workspace (or whatever folder ros reads packages from. I'm not quite sure how it works internally). I assume there must be a way because in the global workspace (/opt/ros/galactic/lib
) there are a lot of built ros2 packages like std_msg
, and I use these packages in my workspace without re-building them.