说明:
步骤:
call C:\opt\ros\foxy\x64\local_setup.bat
ros2 run turtlesim turtlesim_node
- [INFO] [1653896660.703960000] [turtlesim]: Starting turtlesim with node name /turtlesim
- [INFO] [1653896660.708254800] [turtlesim]: Spawning turtle [turtle1] at x=[5.544445], y=[5.544445], theta=[0.000000]
call C:\opt\ros\foxy\x64\local_setup.bat
ros2 run turtlesim turtle_teleop_key
- Reading from keyboard
- ---------------------------
- Use arrow keys to move the turtle.
- Use G|B|V|C|D|E|R|T keys to rotate to absolute orientations. 'F' to cancel a rotation.
- 'Q' to quit.
- ↑ 是向前走
- ↓ 是向后走
- ← 是向左转
- → 是向右转
-
- G 是转向东方
- B 是转向东南方
- V 是转向南方
- C 是转向西南方
- D 是转向西方
- E 是转向西北方
- R 是转向北方
- T 是转向东北方
-
- F 是停止转动
- Q 是退出
