-
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.
* added installation scripts * updated readme to lower difficulty of installation * enhance installation script
- Loading branch information
1 parent
dd341d2
commit 52c6807
Showing
3 changed files
with
71 additions
and
42 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,37 @@ | ||
#!/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 | ||
sudo apt install -y ros-humble-v4l2-camera ros-humble-image-transport-plugins | ||
sudo apt install ros-humble-rqt* | ||
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