|
|
@@ -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
|