-
Notifications
You must be signed in to change notification settings - Fork 1
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
45bb9cd
commit 38ef6cc
Showing
2 changed files
with
33 additions
and
4 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,31 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -ex | ||
|
||
# ROS環境をセットアップ | ||
# 既にインストールされていたら実行しない | ||
if command -v ros2 >/dev/null 2>&1; then | ||
echo "ROS2 command found. Skipping ROS installation" | ||
else | ||
echo "ROS2 not found. Install ROS ..." | ||
sudo apt update | ||
sudo apt upgrade -y | ||
sudo apt install software-properties-common curl -y | ||
sudo curl -sSL https://raw.githubusercontent.com/ros/rosdistro/master/ros.key -o /usr/share/keyrings/ros-archive-keyring.gpg | ||
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/ros-archive-keyring.gpg] http://packages.ros.org/ros2/ubuntu $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/ros2.list >/dev/null | ||
sudo apt update | ||
sudo apt install ros-jazzy-desktop | ||
echo "source /opt/ros/jazzy/setup.bash" >>~/.bashrc | ||
fi | ||
|
||
# aptでインストール可能なパッケージをインストール | ||
sudo apt install python3-colcon-mixin mold ccache cpplint clang-format cmake-format doxygen python3-rosdep yamllint npm just pipx | ||
colcon mixin add default https://raw.githubusercontent.com/colcon/colcon-mixin-repository/master/index.yaml | ||
colcon mixin update default | ||
|
||
# pipxでインストール可能なパッケージをインストール | ||
pipx install rosdoc2 pre-commit | ||
pipx inject rosdoc2 sphinxcontrib-mermaid | ||
|
||
# 依存関係の解消 | ||
just deps |