Skip to content

Commit d57c8d1

Browse files
authored
[Raspberry Pi Mouse]ROS 2 Jazzyのインストールコマンドの置き換え (#43)
1 parent 68386fd commit d57c8d1

File tree

3 files changed

+16
-56
lines changed

3 files changed

+16
-56
lines changed

docs/raspimouse/ros/package-install.md

+2-28
Original file line numberDiff line numberDiff line change
@@ -75,36 +75,10 @@ robot: Raspberry Pi Mouse
7575
* [rt_usb_9axisimu_driver](https://github.com/rt-net/rt_usb_9axisimu_driver/tree/ros2-devel) : 9軸IMU制御パッケージ
7676

7777
=== "ROS 2 Jazzy"
78-
Raspberry Piとノートパソコン等のPCそれぞれで、次のコマンドを実行します。
79-
80-
Raspberry Pi Mouseのパッケージをダウンロードします。
81-
82-
```sh
83-
$ source /opt/ros/jazzy/setup.bash
84-
$ mkdir -p ~/ros2_ws/src
85-
$ cd ~/ros2_ws/src
86-
87-
# Download packages
88-
$ git clone -b $ROS_DISTRO https://github.com/rt-net/raspimouse2.git
89-
$ git clone -b $ROS_DISTRO https://github.com/rt-net/raspimouse_ros2_examples.git
90-
$ git clone -b $ROS_DISTRO https://github.com/rt-net/raspimouse_slam_navigation_ros2.git
91-
92-
# Install dependencies
93-
$ rosdep install -r -y --from-paths . --ignore-src
94-
```
95-
96-
Raspberry Pi Mouseのパッケージをビルドします。Raspberry Pi MouseとPCでコマンドが異なります。
78+
Raspberry Piとノートパソコン等のPCそれぞれで次のコマンドを実行します。
9779

9880
```sh
99-
# Raspberry Pi Mouseの場合
100-
$ cd ~/ros2_ws
101-
$ MAKEFLAGS=-j1 colcon build --symlink-install
102-
$ source ~/ros2_ws/install/setup.bash
103-
104-
# PCの場合
105-
$ cd ~/ros2_ws
106-
$ colcon build --symlink-install
107-
$ source ~/ros2_ws/install/setup.bash
81+
$ sudo apt install ros-jazzy-raspimouse-slam-navigation
10882
```
10983

11084
これにより、以下のパッケージがインストールされます。

docs/raspimouse/ros/samples.md

+2-6
Original file line numberDiff line numberDiff line change
@@ -50,22 +50,18 @@ robot: Raspberry Pi Mouse
5050

5151
=== "ROS 2 Humble"
5252
[ROS 2サンプル集(rt-net/raspimouse_ros2_examples)](https://github.com/rt-net/raspimouse_ros2_examples){target=_blank rel=noopener}
53-
のサンプルを実行する場合は下記コマンドを実行し、
54-
ROS 2とパッケージを読み込んでください。
53+
のサンプルを実行する場合は下記コマンドを実行し、ROS 2の設定を読み込んでください。
5554

5655
```sh
5756
$ source /opt/ros/humble/setup.bash
58-
$ source ~/ros2_ws/install/setup.bash
5957
```
6058

6159
=== "ROS 2 Jazzy"
6260
[ROS 2サンプル集(rt-net/raspimouse_ros2_examples)](https://github.com/rt-net/raspimouse_ros2_examples){target=_blank rel=noopener}
63-
のサンプルを実行する場合は下記コマンドを実行し、
64-
ROS 2とパッケージを読み込んでください。
61+
のサンプルを実行する場合は下記コマンドを実行し、ROS 2の設定を読み込んでください。
6562

6663
```sh
6764
$ source /opt/ros/jazzy/setup.bash
68-
$ source ~/ros2_ws/install/setup.bash
6965
```
7066

7167
## Raspberry PiとPC間のROSネットワークを接続する {: #network}

docs/raspimouse/simulator/install.md

+12-22
Original file line numberDiff line numberDiff line change
@@ -61,50 +61,40 @@ Raspberry Pi Mouse Simulator([rt-net/raspimouse_sim](https://github.com/rt-net
6161
シミュレータパッケージのインストール
6262

6363
```sh
64-
sudo apt install ros-$ROS_DISTRO-raspimouse-sim
64+
sudo apt install ros-humble-raspimouse-sim
6565
```
6666

6767
サンプルパッケージのインストール
6868

6969
```sh
70-
sudo apt install ros-$ROS_DISTRO-raspimouse-slam-navigation
70+
sudo apt install ros-humble-raspimouse-slam-navigation
7171
```
7272

7373
キーボードで操作するためのパッケージをインストール
7474

7575
```sh
76-
sudo apt install ros-$ROS_DISTRO-teleop-twist-keyboard
76+
sudo apt install ros-humble-teleop-twist-keyboard
7777
```
7878

7979
=== "ROS 2 Jazzy"
8080
次のコマンドを実行します。
81-
82-
シミュレータパッケージとサンプルパッケージのダウンロードとインストール
83-
84-
```sh
85-
$ source /opt/ros/jazzy/setup.bash
86-
$ mkdir -p ~/ros2_ws/src
87-
$ cd ~/ros2_ws/src
8881

89-
# Download packages
90-
$ git clone -b $ROS_DISTRO https://github.com/rt-net/raspimouse_sim.git
91-
$ git clone -b $ROS_DISTRO https://github.com/rt-net/raspimouse2.git
92-
$ git clone -b $ROS_DISTRO https://github.com/rt-net/raspimouse_ros2_examples.git
93-
$ git clone -b $ROS_DISTRO https://github.com/rt-net/raspimouse_slam_navigation_ros2.git
82+
シミュレータパッケージのインストール
9483

95-
# Install dependencies
96-
$ rosdep install -r -y --from-paths . --ignore-src
84+
```sh
85+
sudo apt install ros-jazzy-raspimouse-sim
86+
```
9787

98-
# make & install
99-
$ cd ~/ros2_ws
100-
$ colcon build --symlink-install
101-
$ source ~/ros2_ws/install/setup.bash
88+
サンプルパッケージのインストール
89+
90+
```sh
91+
sudo apt install ros-jazzy-raspimouse-slam-navigation
10292
```
10393

10494
キーボードで操作するためのパッケージをインストール
10595

10696
```sh
107-
sudo apt install ros-$ROS_DISTRO-teleop-twist-keyboard
97+
sudo apt install ros-jazzy-teleop-twist-keyboard
10898
```
10999

110100
## 動作確認(キーボードで操縦) {: #teleop}

0 commit comments

Comments
 (0)