Skip to content

Commit e3c8283

Browse files
authored
ROS 2 Jazzy対応 (#80)
* update 1 launch file to migrate from Ignition to Gazebo * update APIs in "empty_world.sdf" to migrate from Ignition to Gazebo * update APIs in "color_objects_world.sdf" to migrate from Ignition to Gazebo * fix: missed updates in "color_objects_world.sdf" for migration from Ignition to Gazebo * update APIs in "line_follower_field1.sdf" to migrate from Ignition to Gazebo * update "ROS_DISTRO" in "industrial_ci.yml" to migrate from Humble to Juzzy * update APIs in "lakehouse.sdf" to migrate from Ignition to Gazebo * replace "ignition-gui" to "gz-gui" in "gui.config" to from Ignition to Gazebo * Update README files for Jazzy * Add Author * Change CI syntax * Add CI settings with rosinstall * Add supplements * Add "$" for commands * Add note for other distoributions * Add notes for samples * Fix link * Adapted Jazzy code style * Updated Copyright years * Add Author * Fix Indent and replace .h with .hpp for visibility_control * Removed the '$' symbol at the beginning of the command. * Replaced the branch name in the command from 'ros2' to 'jazzy'
1 parent 73b465e commit e3c8283

18 files changed

+298
-247
lines changed

.github/workflows/.ci.rosinstall

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
- git:
2+
uri: https://github.com/rt-net/raspimouse_description.git
3+
local-name: raspimouse_description
4+
version: jazzy

.github/workflows/industrial_ci.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,23 @@ on:
1010
- 'docs/**'
1111
- '**.md'
1212
schedule:
13-
- cron: "0 1 * * 2" # Weekly on Tuesdays at 01:00(GMT)
13+
- cron: "0 2 * * 0" # Weekly on Sundays at 02:00
14+
15+
env:
16+
UPSTREAM_WORKSPACE: .github/workflows/.ci.rosinstall
1417

1518
jobs:
1619
industrial_ci:
1720
strategy:
21+
fail-fast: false
1822
matrix:
19-
env:
20-
- { ROS_DISTRO: humble, ROS_REPO: ros }
23+
ROS_DISTRO: [jazzy]
24+
ROS_REPO: [main]
25+
2126
runs-on: ubuntu-latest
2227
steps:
2328
- uses: actions/checkout@v4
2429
- uses: "ros-industrial/industrial_ci@master"
25-
env: ${{ matrix.env }}
30+
env:
31+
ROS_DISTRO: ${{matrix.ROS_DISTRO}}
32+
ROS_REPO: ${{matrix.ROS_REPO}}

README.en.md

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,44 +2,45 @@
22

33
# raspimouse_sim
44

5+
[![industrial_ci](https://github.com/rt-net/raspimouse_sim/actions/workflows/industrial_ci.yml/badge.svg?branch=ros2)](https://github.com/rt-net/raspimouse_sim/actions/workflows/industrial_ci.yml)
6+
57
ROS 2 package suite for Raspberry Pi Mouse Simulator runs on Gazebo
68

79
![](https://rt-net.github.io/images/raspberry-pi-mouse/raspimouse_sim_color_objects_world.png)
810

9-
## ROS 2 Package Status
11+
**This branch is intended for ROS 2 Jazzy. For other distributions, please refer to the corresponding branches listed below.**
12+
13+
- ROS 2 Humble ([humble](https://github.com/rt-net/raspimouse_sim/tree/humble))
1014

11-
| main develop<br>(ros2)|Humble + Ubuntu Jammy<br>(humble-devel)|
12-
|:---:|:---:|
13-
|[![industrial_ci](https://github.com/rt-net/raspimouse_sim/workflows/industrial_ci/badge.svg?branch=ros2)](https://github.com/rt-net/raspimouse_sim/actions?query=branch%3Aros2+workflow%3Aindustrial_ci)|[![industrial_ci](https://github.com/rt-net/raspimouse_sim/workflows/industrial_ci/badge.svg?branch=humble-devel)](https://github.com/rt-net/raspimouse_sim/actions?query=branch%3Ahumble-devel+workflow%3Aindustrial_ci)|
1415

1516
## Requirements
1617

1718
requires the following to run:
1819

1920
* Ubuntu
20-
* Ubuntu Jammy Jellyfish 22.04.*
21+
* Ubuntu 24.04 Noble Numbat
2122
* ROS 2
22-
* ROS Humble Hawksbill
23+
* ROS 2 Jazzy Jalisco
2324
* Gazebo
24-
* Ignition Gazebo 6.x
25+
* Gazebo Sim 8.x
2526
* ROS 2 Package
26-
* ros-humble-desktop-full
27+
* ros-jazzy-desktop-full
2728

2829
## Installation
2930

3031
Download this ROS 2 package.
3132

3233
```sh
3334
cd ~/ros2_ws/src
34-
git clone -b ros2 https://github.com/rt-net/raspimouse_sim.git
35+
git clone -b jazzy https://github.com/rt-net/raspimouse_sim.git
3536
```
3637

3738
Download the dependent ROS 2 packages.
3839

3940
```sh
4041
cd ~/ros2_ws/src
4142
git clone https://github.com/rt-net/raspimouse_ros2_examples.git
42-
git clone -b ros2 https://github.com/rt-net/raspimouse_description.git
43+
git clone -b jazzy https://github.com/rt-net/raspimouse_description.git
4344
rosdep install -r -y -i --from-paths raspimouse*
4445
```
4546

@@ -61,6 +62,8 @@ ros2 launch raspimouse_gazebo raspimouse_with_emptyworld.launch.py
6162

6263
## Examples
6364

65+
These exsamples require [raspimouse_ros2_examples](https://github.com/rt-net/raspimouse_ros2_examples) to operate.
66+
6467
### Joystick Controll
6568

6669
Terminal 1:
@@ -93,7 +96,7 @@ ros2 launch raspimouse_ros2_examples object_tracking.launch.py mouse:=false use_
9396

9497
![](https://rt-net.github.io/images/raspberry-pi-mouse/raspimouse_sim_object_tracking.gif)
9598

96-
### camera_line_follower
99+
### camera_line_follower
97100

98101
Terminal 1:
99102

@@ -124,6 +127,8 @@ For information on parameters in camera line follower, click [here](https://gith
124127

125128
### SLAM & Navigation
126129

130+
This exsample requires [raspimouse_slam_navigation_ros2](https://github.com/rt-net/raspimouse_slam_navigation_ros2) to operate.
131+
127132
#### SLAM
128133

129134
Terminal 1:
@@ -191,7 +196,7 @@ The dae file is edited in Blender 4.0.
191196

192197
## License
193198

194-
This repository is licensed under the MIT license, see [LICENSE]( ./LICENSE ).
199+
This repository is licensed under the MIT license, see [LICENSE]( ./LICENSE ).
195200
Unless attributed otherwise, everything in this repository is under the MIT license.
196201

197202
### Acknowledgements

README.md

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,37 @@
11
[English](README.en.md) | [日本語](README.md)
22

3-
# raspimouse_sim
3+
# raspimouse_sim
4+
5+
[![industrial_ci](https://github.com/rt-net/raspimouse_sim/actions/workflows/industrial_ci.yml/badge.svg?branch=ros2)](https://github.com/rt-net/raspimouse_sim/actions/workflows/industrial_ci.yml)
46

57
Gazebo上でシミュレートできるRaspberry Pi MouseのROS 2パッケージです。
68

79
![](https://rt-net.github.io/images/raspberry-pi-mouse/raspimouse_sim_color_objects_world.png)
810

9-
## ROS 2 Package Status
11+
**本ブランチはROS 2 Jazzy向けです。他のディストリビューションについては、以下にリストされた対応するブランチを参照してください。**
1012

11-
| main develop<br>(ros2)|Humble + Ubuntu Jammy<br>(humble-devel)|
12-
|:---:|:---:|
13-
|[![industrial_ci](https://github.com/rt-net/raspimouse_sim/workflows/industrial_ci/badge.svg?branch=ros2)](https://github.com/rt-net/raspimouse_sim/actions?query=branch%3Aros2+workflow%3Aindustrial_ci)|[![industrial_ci](https://github.com/rt-net/raspimouse_sim/workflows/industrial_ci/badge.svg?branch=humble-devel)](https://github.com/rt-net/raspimouse_sim/actions?query=branch%3Ahumble-devel+workflow%3Aindustrial_ci)|
13+
- ROS 2 Humble ([humble](https://github.com/rt-net/raspimouse_sim/tree/humble))
1414

1515
## 動作環境
1616

1717
以下の環境を前提として動作確認しています。
1818

1919
* Ubuntu
20-
* Ubuntu Jammy Jellyfish 22.04.*
20+
* Ubuntu 24.04 Noble Numbat
2121
* ROS 2
22-
* ROS Humble Hawksbill
22+
* ROS 2 Jazzy Jalisco
2323
* Gazebo
24-
* Ignition Gazebo 6.x
24+
* Gazebo Sim 8.x
2525
* ROS 2 Package
26-
* ros-humble-desktop-full
26+
* ros-jazzy-desktop-full
2727

2828
## インストール方法
2929

3030
このROS 2パッケージをダウンロードします。
3131

3232
```sh
3333
cd ~/ros2_ws/src
34-
git clone -b ros2 https://github.com/rt-net/raspimouse_sim.git
34+
git clone -b jazzy https://github.com/rt-net/raspimouse_sim.git
3535
```
3636

3737
依存しているROS 2パッケージをインストールします。
@@ -40,7 +40,7 @@ git clone -b ros2 https://github.com/rt-net/raspimouse_sim.git
4040
cd ~/ros2_ws/src
4141
git clone https://github.com/rt-net/raspimouse_ros2_examples.git
4242
git clone https://github.com/rt-net/raspimouse_slam_navigation_ros2.git
43-
git clone -b ros2 https://github.com/rt-net/raspimouse_description.git
43+
git clone -b jazzy https://github.com/rt-net/raspimouse_description.git
4444
rosdep install -r -y -i --from-paths raspimouse*
4545
```
4646

@@ -62,6 +62,8 @@ ros2 launch raspimouse_gazebo raspimouse_with_emptyworld.launch.py
6262

6363
## サンプル動作例
6464

65+
各サンプルの動作には、[raspimouse_ros2_examples](https://github.com/rt-net/raspimouse_ros2_examples)が必要です。
66+
6567
### ジョイスティックコントローラによる操縦サンプル
6668

6769
端末1で次のコマンドを実行すると、Gazeboシミュレータが起動します。
@@ -122,6 +124,8 @@ ros2 topic pub --once /switches raspimouse_msgs/msg/Switches "{switch0: true, sw
122124

123125
### LiDARを用いたSLAMとNavigationのサンプル
124126

127+
本サンプルの動作には、[raspimouse_slam_navigation_ros2](https://github.com/rt-net/raspimouse_slam_navigation_ros2) が必要です。
128+
125129
#### SLAM
126130

127131
端末1で次のコマンドを実行すると、`Lake House`のモデルが配置されたワールドが表示されます。
@@ -193,10 +197,10 @@ daeファイルはBlender 4.0で編集しています。
193197

194198
## ライセンス
195199

196-
このリポジトリはMITライセンスに基づいて公開されています。
200+
このリポジトリはMITライセンスに基づいて公開されています。
197201
MITライセンスについては[LICENSE]( ./LICENSE )を確認してください。
198202

199-
※このソフトウェアは基本的にオープンソースソフトウェアとして「AS IS」(現状有姿のまま)で提供しています。本ソフトウェアに関する無償サポートはありません。
203+
※このソフトウェアは基本的にオープンソースソフトウェアとして「AS IS」(現状有姿のまま)で提供しています。本ソフトウェアに関する無償サポートはありません。
200204
バグの修正や誤字脱字の修正に関するリクエストは常に受け付けていますが、それ以外の機能追加等のリクエストについては社内のガイドラインを優先します。
201205

202206
### 謝辞

raspimouse_fake/include/raspimouse_fake/fake_raspimouse_component.hpp

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// The MIT License (MIT)
22
//
3-
// Copyright 2023 RT Corporation <support@rt-net.jp>
3+
// Copyright 2023-2024 RT Corporation <support@rt-net.jp>
44
//
55
// Permission is hereby granted, free of charge, to any person obtaining a copy of
66
// this software and associated documentation files (the "Software"), to deal in
@@ -19,12 +19,12 @@
1919
// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
2020
// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
2121

22-
2322
#ifndef RASPIMOUSE_FAKE__FAKE_RASPIMOUSE_COMPONENT_HPP_
2423
#define RASPIMOUSE_FAKE__FAKE_RASPIMOUSE_COMPONENT_HPP_
2524

2625
#include <memory>
27-
#include "raspimouse_fake/visibility_control.h"
26+
27+
#include "raspimouse_fake/visibility_control.hpp"
2828
#include "rclcpp/rclcpp.hpp"
2929
#include "rclcpp_lifecycle/lifecycle_node.hpp"
3030
#include "rclcpp_lifecycle/lifecycle_publisher.hpp"
@@ -42,16 +42,16 @@ class Raspimouse : public rclcpp_lifecycle::LifecycleNode
4242
private:
4343
rclcpp::Service<std_srvs::srv::SetBool>::SharedPtr motor_power_service_;
4444

45-
rclcpp_lifecycle::node_interfaces::LifecycleNodeInterface::CallbackReturn
46-
on_configure(const rclcpp_lifecycle::State &);
47-
rclcpp_lifecycle::node_interfaces::LifecycleNodeInterface::CallbackReturn
48-
on_activate(const rclcpp_lifecycle::State &);
49-
rclcpp_lifecycle::node_interfaces::LifecycleNodeInterface::CallbackReturn
50-
on_deactivate(const rclcpp_lifecycle::State &);
51-
rclcpp_lifecycle::node_interfaces::LifecycleNodeInterface::CallbackReturn
52-
on_cleanup(const rclcpp_lifecycle::State &);
53-
rclcpp_lifecycle::node_interfaces::LifecycleNodeInterface::CallbackReturn
54-
on_shutdown(const rclcpp_lifecycle::State &);
45+
rclcpp_lifecycle::node_interfaces::LifecycleNodeInterface::CallbackReturn on_configure(
46+
const rclcpp_lifecycle::State &);
47+
rclcpp_lifecycle::node_interfaces::LifecycleNodeInterface::CallbackReturn on_activate(
48+
const rclcpp_lifecycle::State &);
49+
rclcpp_lifecycle::node_interfaces::LifecycleNodeInterface::CallbackReturn on_deactivate(
50+
const rclcpp_lifecycle::State &);
51+
rclcpp_lifecycle::node_interfaces::LifecycleNodeInterface::CallbackReturn on_cleanup(
52+
const rclcpp_lifecycle::State &);
53+
rclcpp_lifecycle::node_interfaces::LifecycleNodeInterface::CallbackReturn on_shutdown(
54+
const rclcpp_lifecycle::State &);
5555

5656
void handle_motor_power(
5757
const std::shared_ptr<rmw_request_id_t> request_header,

raspimouse_fake/include/raspimouse_fake/visibility_control.h renamed to raspimouse_fake/include/raspimouse_fake/visibility_control.hpp

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// The MIT License (MIT)
22
//
3-
// Copyright 2023 RT Corporation <support@rt-net.jp>
3+
// Copyright 2023-2024 RT Corporation <support@rt-net.jp>
44
//
55
// Permission is hereby granted, free of charge, to any person obtaining a copy of
66
// this software and associated documentation files (the "Software"), to deal in
@@ -19,9 +19,8 @@
1919
// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
2020
// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
2121

22-
23-
#ifndef RASPIMOUSE_FAKE__VISIBILITY_CONTROL_H_
24-
#define RASPIMOUSE_FAKE__VISIBILITY_CONTROL_H_
22+
#ifndef RASPIMOUSE_FAKE__VISIBILITY_CONTROL_HPP_
23+
#define RASPIMOUSE_FAKE__VISIBILITY_CONTROL_HPP_
2524

2625
#ifdef __cplusplus
2726
extern "C"
@@ -63,4 +62,4 @@ extern "C"
6362
}
6463
#endif
6564

66-
#endif // RASPIMOUSE_FAKE__VISIBILITY_CONTROL_H_
65+
#endif // RASPIMOUSE_FAKE__VISIBILITY_CONTROL_HPP_

raspimouse_fake/src/fake_raspimouse_component.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// The MIT License (MIT)
22
//
3-
// Copyright 2023 RT Corporation <support@rt-net.jp>
3+
// Copyright 2023-2024 RT Corporation <support@rt-net.jp>
44
//
55
// Permission is hereby granted, free of charge, to any person obtaining a copy of
66
// this software and associated documentation files (the "Software"), to deal in
@@ -19,11 +19,10 @@
1919
// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
2020
// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
2121

22-
2322
#include "raspimouse_fake/fake_raspimouse_component.hpp"
2423

25-
#include "rclcpp/rclcpp.hpp"
2624
#include "lifecycle_msgs/srv/change_state.hpp"
25+
#include "rclcpp/rclcpp.hpp"
2726
#include "std_srvs/srv/set_bool.hpp"
2827

2928
using namespace std::chrono_literals;

0 commit comments

Comments
 (0)