2024-09-13 16:41:58 +08:00
|
|
|
# Joystick Input
|
|
|
|
|
|
|
|
This node will listen to the joystick topic and publish a control_input_msgs/Input message.
|
|
|
|
|
2024-09-20 15:39:50 +08:00
|
|
|
Tested environment:
|
|
|
|
* Ubuntu 24.04
|
|
|
|
* ROS2 Jazzy
|
|
|
|
* Logitech F310 Gamepad
|
|
|
|
|
2024-09-13 16:41:58 +08:00
|
|
|
```bash
|
|
|
|
cd ~/ros2_ws
|
|
|
|
colcon build --packages-up-to joystick_input
|
|
|
|
```
|
|
|
|
|
|
|
|
```bash
|
|
|
|
source ~/ros2_ws/install/setup.bash
|
2024-09-18 22:19:37 +08:00
|
|
|
ros2 launch joystick_input joystick.launch.py
|
2024-09-13 16:41:58 +08:00
|
|
|
```
|
|
|
|
|
2024-09-20 15:39:50 +08:00
|
|
|
## 1. Use Instructions for Unitree Guide
|
2024-09-13 16:41:58 +08:00
|
|
|
|
|
|
|
### 1.1 Control Mode
|
|
|
|
|
|
|
|
* Passive Mode: LB + B
|
|
|
|
* Fixed Stand: LB + A
|
|
|
|
* Free Stand: LB + X
|
2024-09-30 15:10:08 +08:00
|
|
|
* Trot: LB + Y
|
|
|
|
* SwingTest: LT + B
|
|
|
|
* Balance: LT + A
|
2024-09-13 16:41:58 +08:00
|
|
|
|
|
|
|
### 1.2 Control Input
|
|
|
|
|
|
|
|
* WASD IJKL: Move robot
|
|
|
|
* Space: Reset Speed Input
|