Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds config file for DUALSHOCK4 #36

Merged
merged 1 commit into from
Nov 18, 2021
Merged

Adds config file for DUALSHOCK4 #36

merged 1 commit into from
Nov 18, 2021

Conversation

shu-13
Copy link
Contributor

@shu-13 shu-13 commented Nov 4, 2021

What does this implement/fix?

PS4用のゲームパッド、DUALSHOCK4でRaspberry Pi Mouse V3を操作できます。

Does this close any currently open issues?

No

Related PR: rt-net/raspimouse_ros_examples#38

How has this been tested?

使用した機材はこちら

  • Raspberry Pi Mouse V3
    • Raspberry Pi 4 Model B
  • PlayStation DUALSHOCK4
    • 有線接続

以下のUbuntuマシンで、必要なROS 2ノードを起動し、ゲームパッドで操作できることを確認しました。

$ uname -a
Linux ubuntu 5.4.0-1045-raspi #49-Ubuntu SMP PREEMPT Wed Sep 29 17:49:16 UTC 2021 aarch64 aarch64 aarch64 GNU/Linux

実行したコマンドはこちら。

$ ros2 launch raspimouse_ros2_examples teleop_joy.launch.py joydev:="/dev/input/js0" joyconfig:=dualshock4 mouse:=true

Any other comments?

dmesgのログはこちら。DUALSHOCK4は有線で接続しています。

[ 2400.171314] input: Sony Interactive Entertainment Wireless Controller Touchpad as /devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.1/1-1.1:1.3/0003:054C:09CC.0009/input/input25
[ 2400.171721] input: Sony Interactive Entertainment Wireless Controller Motion Sensors as /devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.1/1-1.1:1.3/0003:054C:09CC.0009/input/input26
[ 2400.231306] input: Sony Interactive Entertainment Wireless Controller as /devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.1/1-1.1:1.3/0003:054C:09CC.0009/input/input24
[ 2400.231919] sony 0003:054C:09CC.0009: input,hidraw2: USB HID v81.11 Gamepad [Sony Interactive Entertainment Wireless Controller] on usb-0000:01:00.0-1.1/input3

Checklists

  • I have read the CONTRIBUTING guidelines.
  • I have checked to ensure there aren't other open Pull Requests for the same change.

@shu-13 shu-13 requested a review from Tiryoh November 4, 2021 06:21
@Tiryoh Tiryoh self-assigned this Nov 4, 2021
Copy link
Contributor

@Tiryoh Tiryoh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM
DUALSHOCK4をUSBケーブルでRaspberry Piに接続して動作確認しました

@Tiryoh Tiryoh merged commit 50b6384 into master Nov 18, 2021
@Tiryoh Tiryoh deleted the feature/add-ds4-config branch November 18, 2021 08:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants