Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ jobs:
apt update
apt upgrade -y
apt-get update
apt install -y python3-colcon-metadata python3-pip cmake
apt install -y python3-colcon-metadata python3-pip cmake rsync
rosdep update --rosdistro ${{ env.ROS_DISTRO }}
rosdep install --rosdistro ${{ env.ROS_DISTRO }} -y --from-paths src --ignore-src -y

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -690,7 +690,7 @@ jobs:
apt update
apt upgrade -y
# Install last version of CMake
apt install -y apt-transport-https ca-certificates gnupg software-properties-common wget
apt install -y apt-transport-https ca-certificates gnupg software-properties-common wget rsync
if [ $(lsb_release -sr) = "22.04" ]; then
echo "Using Ubuntu mainline CMake"
else
Expand Down
10 changes: 9 additions & 1 deletion config/generate_lib/generic/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ BUILD_DIR=$FW_TARGETDIR/build
pushd $FW_TARGETDIR/mcu_ws >/dev/null

rm -rf build install log

colcon build \
--merge-install \
--packages-ignore-regex=.*_cpp \
Expand Down Expand Up @@ -50,4 +50,12 @@ pushd $FW_TARGETDIR/mcu_ws >/dev/null
cp -R $FW_TARGETDIR/mcu_ws/install/include $BUILD_DIR/; \
cd ..; rm -rf libmicroros;

######## Fix include paths ########
INCLUDE_ROS2_PACKAGES=$(colcon list | awk '{print $1}' | awk -v d=" " '{s=(NR==1?s:s d)$0}END{print s}')

for var in ${INCLUDE_ROS2_PACKAGES}; do
rsync -r $BUILD_DIR/include/${var}/${var}/* $BUILD_DIR/include/${var}/
rm -rf $BUILD_DIR/include/${var}/${var}/
done

popd >/dev/null