-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
dd341d2
commit 0521c11
Showing
3 changed files
with
58 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
#!/bin/bash | ||
###################################################################################### | ||
# ROS2 | ||
# | ||
# This stack will consist of ROS2 install | ||
# | ||
# To install | ||
# ./pc_install.sh | ||
###################################################################################### | ||
|
||
# Update package lists | ||
cd ~ | ||
sudo apt update | ||
|
||
# Install ROS 2 Humble setup scripts | ||
if ! [ -d "ros2_setup_scripts_ubuntu" ]; then | ||
git clone https://github.com/Tiryoh/ros2_setup_scripts_ubuntu.git | ||
fi | ||
~/ros2_setup_scripts_ubuntu/ros2-humble-ros-base-main.sh | ||
source /opt/ros/humble/setup.bash | ||
|
||
# Create ROS 2 workspace and clone Mini Pupper ROS repository | ||
mkdir -p ~/ros2_ws/src | ||
cd ~/ros2_ws/src | ||
if ! [ -d "mini_pupper_ros" ]; then | ||
git clone https://github.com/mangdangroboticsclub/mini_pupper_ros.git -b ros2-dev mini_pupper_ros | ||
fi | ||
vcs import < mini_pupper_ros/.minipupper.repos --recursive | ||
|
||
# Install dependencies and build the ROS 2 packages | ||
cd ~/ros2_ws | ||
rosdep install --from-paths src --ignore-src -r -y | ||
sudo apt install ros-humble-teleop-twist-keyboard ros-humble-teleop-twist-joy | ||
pip3 install simple_pid | ||
colcon build --symlink-install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters