jiuyewxy / weloveinterns

PLCT Lab ❤️ Interns!
https://plctlab.org
Creative Commons Attribution Share Alike 4.0 International
4 stars 0 forks source link

任务26:社区待解决任务——joystick_drivers:需要增加cwiid-devel的包(紧急,可与其他任务同时接) #28

Open jiuyewxy opened 3 months ago

jiuyewxy commented 3 months ago
1724751522607
discodyer commented 2 months ago

accept

discodyer commented 2 months ago

https://gitee.com/codygua/cwiid

cwiid现在可以在EulerMaker上正常出包(x86_64和aarch64)

https://eulermaker.compass-ci.openeuler.openatom.cn/package/download?osProject=openEuler-24.03:x86_64:joystick_drivers:cwiid&packageName=cwiid

测试了这几个rpm包的安装和卸载,其中的两个二进制程序 lswm 和 wminput 可以正常显示帮助信息和版本信息,暂时未作进一步测试

discodyer commented 2 months ago

在本地打包成功,可以出包 ros-humble-wiimote-3.1.0-1.x86_64.rpm

图片

需要修改wiimote.spec中第40行,BuildRequires: cwiid-dev -> BuildRequires: cwiid-devel

图片

discodyer commented 2 months ago

需要修改wiimote.spec中第27行,Requires: libbluetooth -> bluez ,不然安装的时候提示找不到依赖

测试了 ros2 run wiimote 提供的三个节点,运行没有异常退出,只是没有wii控制器暂时无法进一步测试

修改补丁如下

diff --git a/wiimote.spec b/wiimote.spec
index 55244d3..0d54eb0 100644
--- a/wiimote.spec
+++ b/wiimote.spec
@@ -24,7 +24,7 @@ Requires: ros-%{ros_distro}-sensor-msgs
 Requires: ros-%{ros_distro}-std-msgs
 Requires: ros-%{ros_distro}-std-srvs
 Requires: ros-%{ros_distro}-wiimote-msgs
-Requires: libbluetooth
+Requires: bluez
 Requires: cwiid
 Requires: ros-%{ros_distro}-ros-workspace

@@ -37,7 +37,7 @@ BuildRequires: ros-%{ros_distro}-std-msgs
 BuildRequires: ros-%{ros_distro}-std-srvs
 BuildRequires: ros-%{ros_distro}-wiimote-msgs
 BuildRequires: bluez-devel
-BuildRequires: cwiid-dev
+BuildRequires: cwiid-devel
 BuildRequires: ros-%{ros_distro}-ament-cmake
 BuildRequires: ros-%{ros_distro}-ament-cmake-auto
 BuildRequires: ros-%{ros_distro}-ros-workspace