ArduPilot / ardupilot_ros

ArduPilot ROS integration
GNU General Public License v3.0
15 stars 9 forks source link

Added Joy Controller Teleoperation Node #20

Closed SantamRC closed 9 months ago

Ryanf55 commented 9 months ago

Occasionally, I get this crash:

Traceback (most recent call last):
  File "/home/ryan/.local/lib/python3.10/site-packages/pynput/_util/__init__.py", line 228, in inner
    return f(self, *args, **kwargs)
  File "/home/ryan/.local/lib/python3.10/site-packages/pynput/_util/xorg.py", line 470, in _handler
    self._handle(self._display_stop, event)
  File "/home/ryan/.local/lib/python3.10/site-packages/pynput/keyboard/_xorg.py", line 564, in _handle
    self.on_press(key)
  File "/home/ryan/.local/lib/python3.10/site-packages/pynput/_util/__init__.py", line 144, in inner
    if f(*args) is False:
  File "/home/ryan/Dev/ros2_ws/./src/ardupilot_ros/ardupilot_ros/joy_controller.py", line 24, in on_press
    if key.char == "w":
AttributeError: 'Key' object has no attribute 'char'
Ryanf55 commented 9 months ago

Please rebase this on top of upstream/humble. If you need help rebasing on upstreams to fix the merge conflicts, feel free to reach out on here or discord.