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 c19b32f..1b3f59d 100755 --- a/firstTimeInstall.sh +++ b/firstTimeInstall.sh @@ -111,4 +111,25 @@ echo "export GST_PLUGIN_PATH=$GST_PLUGIN_PATH" >> $GSTREAMER_DIR/setupGstreamer. echo "Finished building GStreamer" -source ~/.bashrc \ No newline at end of file +source ~/.bashrc + +echo "Downloading ZED SDK ..." +cd /tmp +if [ "$(uname -m)" == "aarch64" ]; then +curl -L https://stereolabs.sfo2.cdn.digitaloceanspaces.com/zedsdk/4.2/ZED_SDK_Tegra_L4T36.4_v4.2.2.zstd.run -o zed_sdk_installer.run +else +curl -L https://download.stereolabs.com/zedsdk/4.2/cu12/ubuntu22 -o zed_sdk_installer.run +fi +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