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:
parent
93e359c810
commit
40ccc530bb
14 changed files with 436 additions and 8 deletions
16
ament-cmake-core-setup-hook.sh
Normal file
16
ament-cmake-core-setup-hook.sh
Normal 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
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue