Skip to content

Commit 4acf74a

Browse files
Shuhei KozasaTiryoh
andauthored
Humble対応 (#48)
* Adds namespace * Adds Humble to industrial ci * Changes the order of the libraries * Removes the Foxy distribution from the CI * Updates link * Removes the icon and link. Will replace after the packages gets released * Update GitHub Actions settings (#47) * Updates build farm information and requirements Co-authored-by: Daisuke Sato <daisuke.sato@rt-net.jp>
1 parent ce12d2c commit 4acf74a

File tree

7 files changed

+20
-14
lines changed

7 files changed

+20
-14
lines changed

.github/workflows/add-tag.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
runs-on: ubuntu-latest
88
steps:
99
- name: checkout
10-
uses: actions/checkout@v2
10+
uses: actions/checkout@v3
1111
- name: Add tag
1212
if: startsWith(github.event.pull_request.title, 'Release') && github.event.pull_request.merged == true
1313
env:

.github/workflows/industrial_ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ jobs:
1717
strategy:
1818
matrix:
1919
env:
20-
- { ROS_DISTRO: foxy, ROS_REPO: ros }
20+
- { ROS_DISTRO: humble, ROS_REPO: ros }
2121
runs-on: ubuntu-latest
2222
steps:
23-
- uses: actions/checkout@v2
23+
- uses: actions/checkout@v3
2424
- uses: "ros-industrial/industrial_ci@master"
2525
env: ${{ matrix.env }}

README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ ROS 2 node for the Raspberry Pi Mouse.
1111
[![industrial_ci](https://github.com/rt-net/raspimouse2/workflows/industrial_ci/badge.svg?branch=master)](https://github.com/rt-net/raspimouse2/actions?query=workflow%3Aindustrial_ci+branch%3Amaster)
1212

1313
### Source Build Status on ROS2 Buildfarm
14-
#### Foxy + Focal ([`foxy-devel`](https://github.com/rt-net/raspimouse2/tree/foxy-devel))
1514

16-
| raspimouse | raspimouse_msgs |
17-
|:---:|:---:|
18-
| [![Build Status](https://build.ros2.org/view/Fsrc_uF/job/Fsrc_uF__raspimouse__ubuntu_focal__source/badge/icon)](https://build.ros2.org/view/Fsrc_uF/job/Fsrc_uF__raspimouse__ubuntu_focal__source/) | [![Build Status](https://build.ros2.org/view/Fsrc_uF/job/Fsrc_uF__raspimouse_msgs__ubuntu_focal__source/badge/icon)](https://build.ros2.org/view/Fsrc_uF/job/Fsrc_uF__raspimouse_msgs__ubuntu_focal__source/) |
15+
| ROS 2 + Ubuntu | raspimouse | raspimouse_msgs |
16+
|:---:|:---:|:---:|
17+
| Foxy + Focal ([`foxy-devel`](https://github.com/rt-net/raspimouse2/tree/foxy-devel)) | [![Build Status](https://build.ros2.org/view/Fsrc_uF/job/Fsrc_uF__raspimouse__ubuntu_focal__source/badge/icon)](https://build.ros2.org/view/Fsrc_uF/job/Fsrc_uF__raspimouse__ubuntu_focal__source/) | [![Build Status](https://build.ros2.org/view/Fsrc_uF/job/Fsrc_uF__raspimouse_msgs__ubuntu_focal__source/badge/icon)](https://build.ros2.org/view/Fsrc_uF/job/Fsrc_uF__raspimouse_msgs__ubuntu_focal__source/) |
18+
| Humble + Jammy ([`humble-devel`](https://github.com/rt-net/raspimouse2/tree/humble-devel)) | **TODO** | **TODO** |
1919

2020
## Requirements
2121

@@ -29,6 +29,7 @@ ROS 2 node for the Raspberry Pi Mouse.
2929
- [rt-net/RaspberryPiMouse](https://github.com/rt-net/RaspberryPiMouse)
3030
- ROS
3131
- [Foxy Fitzroy](https://index.ros.org/doc/ros2/Installation/Foxy/Linux-Install-Debians/)
32+
- [Humble Hawksbill](https://docs.ros.org/en/humble/Installation/Ubuntu-Install-Debians.html)
3233

3334
## Installation
3435

raspimouse/include/raspimouse/raspimouse_component.hpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,21 +53,23 @@ extern "C" {
5353
} // extern "C"
5454
#endif
5555

56+
#include <tf2_ros/transform_broadcaster.h>
57+
#include <tf2/LinearMath/Quaternion.h>
58+
59+
#include <memory>
60+
5661
#include <rclcpp/rclcpp.hpp>
5762
#include <rclcpp_lifecycle/lifecycle_node.hpp>
5863
#include <rclcpp_lifecycle/lifecycle_publisher.hpp>
5964
#include <rclcpp/time.hpp>
6065
#include <std_msgs/msg/int16.hpp>
6166
#include <std_srvs/srv/set_bool.hpp>
6267
#include <nav_msgs/msg/odometry.hpp>
63-
#include <tf2_ros/transform_broadcaster.h>
64-
#include <tf2/LinearMath/Quaternion.h>
6568

6669
#include <raspimouse_msgs/msg/leds.hpp>
6770
#include <raspimouse_msgs/msg/switches.hpp>
6871
#include <raspimouse_msgs/msg/light_sensors.hpp>
6972

70-
#include <memory>
7173

7274
namespace raspimouse
7375
{

raspimouse/launch/raspimouse.launch.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828

2929
def generate_launch_description():
3030
mouse_node = LifecycleNode(
31+
namespace='',
3132
name='raspimouse',
3233
package='raspimouse', executable='raspimouse', output='screen',
3334
parameters=[os.path.join(get_package_share_directory(

raspimouse/src/raspimouse.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
#include <rclcpp/rclcpp.hpp>
16-
#include <memory>
17-
1815
#include "raspimouse/raspimouse_component.hpp"
1916

17+
#include <memory>
18+
#include <rclcpp/rclcpp.hpp>
19+
2020
int main(int argc, char * argv[])
2121
{
2222
rclcpp::init(argc, argv);

raspimouse/src/raspimouse_component.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,20 @@
1414

1515
#include "raspimouse/raspimouse_component.hpp"
1616

17-
#define _USE_MATH_DEFINES
1817
#include <cmath>
1918
#include <chrono>
2019
#include <fstream>
2120
#include <functional>
2221
#include <limits>
2322
#include <memory>
2423
#include <string>
24+
2525
#include "rclcpp/rclcpp.hpp"
2626
#include "rosidl_runtime_cpp/message_initialization.hpp"
2727
#include "lifecycle_msgs/msg/transition.hpp"
2828

29+
#define _USE_MATH_DEFINES
30+
2931
using namespace std::chrono_literals;
3032
using CallbackReturn = rclcpp_lifecycle::node_interfaces::LifecycleNodeInterface::CallbackReturn;
3133

0 commit comments

Comments
 (0)