Simon 3 долоо хоног өмнө
parent
commit
92804f44d2

BIN
docs/安装开发环境和功能包.docx


+ 19 - 0
scripts/cartographer_install.sh

@@ -0,0 +1,19 @@
+						#!/bin/bash
+# Warning: This script is ONLY for ROS2 Humble in ubuntu 22.04
+# set -x
+set -e
+
+if [ -d "~/smc/cartographer_ws/src" ]; then
+    echo " cartographer workspace already exists, skip creating."
+else
+    echo "Creating cartographer_ws workspace"
+	source /opt/ros/humble/setup.bash
+	mkdir -p ~/smc/cartographer_ws/src
+	cd ~/smc/cartographer_ws/src
+	git clone http://hualiyun.cc:7000/ros2/cartographer
+	git clone http://hualiyun.cc:7000/ros2/cartographer_ros
+	cd ..
+	echo "Building cartographer_ws..."
+	colcon build
+	echo "source ~/smc/cartographer_ws/install/setup.bash" >> ~/.bashrc
+fi

+ 4 - 0
scripts/ros2_humble_install.sh

@@ -119,6 +119,9 @@ sudo apt upgrade -y
 
 # Install ROS
 echo "Installing ROS2 Humble..."
+if [ $(uname -m) = "aarch64" ]; then
+    sudo apt install libicu70=70.1-2 -y
+fi
 # ROS Desktop Install(ROS, RViz, demos, tutorials)
 sudo apt install ros-humble-desktop -y
 # ROS Base Install(Communication libraries, message packages, command line tools but no GUI tools)
@@ -129,6 +132,7 @@ sudo apt install ros-dev-tools -y
 sudo apt install ros-humble-nav2-common ros-humble-navigation2 -y
 # Install build tool
 sudo apt install python3-colcon-common-extensions -y
+sudo apt install ros-humble-pcl-* -y
 
 # Environment setup
 if ! grep -q "source /opt/ros/humble/setup.bash" ~/.bashrc; then

+ 41 - 0
scripts/slam_sdk_install.sh

@@ -0,0 +1,41 @@
+						#!/bin/bash
+# Warning: This script is ONLY for ROS2 Humble in ubuntu 22.04
+# set -x
+set -e
+set -e
+
+if [ -d "~/smc/cartographer_ws/src" ]; then
+    echo " cartographer workspace already exists, skip creating."
+else
+    echo "Creating cartographer_ws workspace"
+	source /opt/ros/humble/setup.bash
+	mkdir -p ~/smc/cartographer_ws/src
+	cd ~/smc/cartographer_ws/src
+	git clone http://hualiyun.cc:7000/ros2/cartographer
+	git clone http://hualiyun.cc:7000/ros2/cartographer_ros
+	cd ..
+	echo "Building cartographer_ws..."
+	colcon build
+	echo "source ~/smc/cartographer_ws/install/setup.bash" >> ~/.bashrc
+fi
+
+if [ -d "~/smc/colcon_ws/src" ]; then
+    echo " colcon_ws workspace already exists, skip creating."
+else
+    echo "Creating colcon_ws workspace"
+	source /opt/ros/humble/setup.bash
+	mkdir -p ~/smc/colcon_ws/src
+	cd ~/smc/colcon_ws/src
+	git clone http://hualiyun.cc:7000/ros2/huali_nav2
+	git clone http://hualiyun.cc:7000/ros2/agv_desc
+	git clone http://hualiyun.cc:7000/ros2/slam
+	git clone http://hualiyun.cc:7000/ros2/teleop_joystick
+	git clone http://hualiyun.cc:7000/ros2/free_lidar
+	git clone http://hualiyun.cc:7000/ros2/robot_pose_publisher_ros2
+	git clone http://hualiyun.cc:7000/ros2/dsm
+	git clone http://hualiyun.cc:7000/ros2/MobileRobot-ROS
+	cd ..
+	echo "Building colcon_ws..."
+	colcon build
+	echo "source ~/smc/colcon_ws/install/setup.bash" >> ~/.bashrc
+fi

+ 26 - 0
scripts/work_package_install.sh

@@ -0,0 +1,26 @@
+						#!/bin/bash
+# Warning: This script is ONLY for ROS2 Humble in ubuntu 22.04
+# set -x
+set -e
+
+
+if [ -d "~/smc/colcon_ws/src" ]; then
+    echo " colcon_ws workspace already exists, skip creating."
+else
+    echo "Creating colcon_ws workspace"
+	source /opt/ros/humble/setup.bash
+	mkdir -p ~/smc/colcon_ws/src
+	cd ~/smc/colcon_ws/src
+	git clone http://hualiyun.cc:7000/ros2/huali_nav2
+	git clone http://hualiyun.cc:7000/ros2/agv_desc
+	git clone http://hualiyun.cc:7000/ros2/slam
+	git clone http://hualiyun.cc:7000/ros2/teleop_joystick
+	git clone http://hualiyun.cc:7000/ros2/free_lidar
+	git clone http://hualiyun.cc:7000/ros2/robot_pose_publisher_ros2
+	git clone http://hualiyun.cc:7000/ros2/dsm
+	git clone http://hualiyun.cc:7000/ros2/MobileRobot-ROS
+	cd ..
+	echo "Building colcon_ws..."
+	colcon build
+	echo "source ~/smc/colcon_ws/install/setup.bash" >> ~/.bashrc
+fi