From d80b92b0c8ad6055dfc1016184a11af9d04baff8 Mon Sep 17 00:00:00 2001 From: ConnorNeed <129120300+ConnorNeed@users.noreply.github.com> Date: Sun, 15 Dec 2024 20:25:08 +0000 Subject: [PATCH] chore: fix build errors --- build.sh | 5 +++++ firstTimeInstall.sh | 19 ++++++++++++++++++- src/description/CMakeLists.txt | 2 +- .../{rover_localization => localization} | 0 4 files changed, 24 insertions(+), 2 deletions(-) create mode 100755 build.sh rename src/localization/resource/{rover_localization => localization} (100%) diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..c338b4f --- /dev/null +++ b/build.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +rosdep install --from-paths src -i -r -y + +colcon build --symlink-install --continue-on-error --cmake-args=-DCMAKE_BUILD_TYPE=Release --parallel-workers $(nproc) \ No newline at end of file diff --git a/firstTimeInstall.sh b/firstTimeInstall.sh index 35c6132..6131f8a 100755 --- a/firstTimeInstall.sh +++ b/firstTimeInstall.sh @@ -101,4 +101,21 @@ echo GST_PLUGIN_PATH=$GST_PLUGIN_PATH >> $GSTREAMER_DIR/setupGstreamer.sh echo "Finished building GStreamer" -source ~/.bashrc \ No newline at end of file +source ~/.bashrc + +echo "Downloading ZED SDK ..." +cd /tmp +curl -L https://download.stereolabs.com/zedsdk/4.2/l4t36.4/jetsons?_gl=1*1x76wtq*_gcl_au*MTkzMjE2NTcwLjE3MzQyOTE5OTg -o zed_sdk_installer.run +chmod +x zed_sdk_installer.run +./zed_sdk_installer.run -- silent +echo "Finished downloading ZED SDK ..." + +echo "Building Kindr ..." +cd /tmp +git clone https://github.com/ANYbotics/kindr.git +cd kindr/ +mkdir build +cd build +cmake .. -DUSE_CMAKE=true +sudo make install +echo "Finished building Kindr ..." \ No newline at end of file diff --git a/src/description/CMakeLists.txt b/src/description/CMakeLists.txt index b974ed3..f07254a 100644 --- a/src/description/CMakeLists.txt +++ b/src/description/CMakeLists.txt @@ -10,7 +10,7 @@ find_package(velocity_controllers REQUIRED) find_package(xacro REQUIRED) install( - DIRECTORY config launch meshes urdf robots + DIRECTORY config launch robots DESTINATION share/${PROJECT_NAME} ) diff --git a/src/localization/resource/rover_localization b/src/localization/resource/localization similarity index 100% rename from src/localization/resource/rover_localization rename to src/localization/resource/localization