1
0
Fork 0
mirror of https://github.com/lopsided98/nix-ros-overlay.git synced 2025-07-14 14:10:37 +03:00

Initial ROS 2 support.

The basic packages build, but there is no guarantee that they work correctly.
This commit is contained in:
Ben Wolsieffer 2019-09-05 22:43:33 -04:00
parent 93e359c810
commit 40ccc530bb
14 changed files with 436 additions and 8 deletions

View file

@ -0,0 +1,16 @@
isAmentPackage() {
[ -d "$1/share/ament_index" ]
}
declare -gA _amentPackagesSeen
_findAmentPackages() {
local pkg="$1"
# Deduplicate the packages
if [ -z "${_amentPackagesSeen["$pkg"]}" ] && isAmentPackage "$pkg"; then
addToSearchPath AMENT_PREFIX_PATH "$pkg"
fi
_amentPackagesSeen["$pkg"]=1
}
addEnvHooks "$hostOffset" _findAmentPackages