-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcmd_setup.bash
More file actions
87 lines (75 loc) · 2.94 KB
/
cmd_setup.bash
File metadata and controls
87 lines (75 loc) · 2.94 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
#!/usr/bin/env bash
# =============================================================
# ROS1 NOETIC NAVIGATION STACK INSTALL SCRIPT
# Target: Raspberry Pi / Ubuntu (Headless OK)
# =============================================================
set -e
ROS_DISTRO=noetic
echo "=============================================="
echo " Installing ROS1 Navigation Requirements"
echo " ROS Distro: $ROS_DISTRO"
echo "=============================================="
# -------------------------------------------------------------
# 1. Update system
# -------------------------------------------------------------
echo "[1/7] Updating system..."
sudo apt update && sudo apt upgrade -y
# -------------------------------------------------------------
# 2. Core ROS navigation packages
# -------------------------------------------------------------
echo "[2/7] Installing core navigation packages..."
sudo apt install -y \
ros-$ROS_DISTRO-navigation \
ros-$ROS_DISTRO-move-base \
ros-$ROS_DISTRO-map-server \
ros-$ROS_DISTRO-amcl
# -------------------------------------------------------------
# 3. Local planners (TEB recommended for mecanum)
# -------------------------------------------------------------
echo "[3/7] Installing local planners..."
sudo apt install -y \
ros-$ROS_DISTRO-teb-local-planner
# -------------------------------------------------------------
# 4. SLAM (for mapping)
# -------------------------------------------------------------
echo "[4/7] Installing SLAM packages..."
sudo apt install -y \
ros-$ROS_DISTRO-gmapping
# -------------------------------------------------------------
# 5. Sensors & TF utilities
# -------------------------------------------------------------
echo "[5/7] Installing sensor & TF packages..."
sudo apt install -y \
ros-$ROS_DISTRO-rplidar-ros \
ros-$ROS_DISTRO-robot-state-publisher \
ros-$ROS_DISTRO-tf2-ros \
ros-$ROS_DISTRO-tf2-tools \
ros-$ROS_DISTRO-xacro \
ros-$ROS_DISTRO-rosbridge-suite
# -------------------------------------------------------------
# 6. Visualization & Dev tools
# -------------------------------------------------------------
echo "[6/7] Installing visualization & dev tools..."
sudo apt install -y \
ros-$ROS_DISTRO-rviz \
tmux \
git \
python3-rosdep \
python3-catkin-tools
# -------------------------------------------------------------
# 7. rosdep init (safe to rerun)
# -------------------------------------------------------------
echo "[7/7] Initializing rosdep..."
sudo rosdep init 2>/dev/null || true
rosdep update
# -------------------------------------------------------------
# Final message
# -------------------------------------------------------------
echo "=============================================="
echo " Installation complete ✅"
echo " Next steps:"
echo " 1) Create catkin workspace"
echo " 2) Build your mecanum packages"
echo " 3) Run navigation stack via tmux"
echo " 4) Open RViz from remote PC (SSH -X / VNC)"
echo "=============================================="