2024-09-11 11:32:54 +08:00
|
|
|
# Keyboard Input
|
|
|
|
|
|
|
|
This node will read the keyboard input and publish a control_input_msgs/Input message.
|
|
|
|
|
2024-09-20 15:39:50 +08:00
|
|
|
Tested environment:
|
|
|
|
* Ubuntu 24.04
|
|
|
|
* ROS2 Jazzy
|
|
|
|
* Ubuntu 22.04
|
|
|
|
* ROS2 Humble
|
|
|
|
|
2024-09-11 14:01:07 +08:00
|
|
|
```bash
|
|
|
|
cd ~/ros2_ws
|
|
|
|
colcon build --packages-up-to keyboard_input
|
|
|
|
```
|
|
|
|
|
|
|
|
```bash
|
|
|
|
source ~/ros2_ws/install/setup.bash
|
|
|
|
ros2 run keyboard_input keyboard_input
|
|
|
|
```
|
|
|
|
|
2024-09-20 15:39:50 +08:00
|
|
|
## 1. Use Instructions for Unitree Guide
|
2024-09-11 11:32:54 +08:00
|
|
|
### 1.1 Control Mode
|
|
|
|
* Passive Mode: Keyboard 1
|
|
|
|
* Fixed Stand: Keyboard 2
|
|
|
|
* Free Stand: Keyboard 3
|
|
|
|
* Trot: Keyboard 4
|
2024-09-30 15:10:08 +08:00
|
|
|
* SwingTest: Keyboard 5
|
|
|
|
* Balance: Keyboard 6
|
2024-09-11 11:32:54 +08:00
|
|
|
### 1.2 Control Input
|
|
|
|
* WASD IJKL: Move robot
|
|
|
|
* Space: Reset Speed Input
|