说明:
步骤:
ros2 launch walking_bringup robot.launch.py
启动windows 10
新打开一个cmd命令提示符窗口,执行以下命令
使用call命令设置环境
call C:\opt\ros\foxy\x64\local_setup.bat
set ROS_DOMAIN_ID=2
- ros2 topic list
-
- /active
- /cmd_vel
- /cmd_vel_mux/input/default
- /cmd_vel_mux/input/joystick
- /cmd_vel_mux/input/keyop
- /cmd_vel_mux/input/navigation
- /cmd_vel_mux/input/remote
- /cmd_vel_mux/input/webapp
- /dynamic_joint_states
- /imu
- /imu/data_raw
- /imu/mag
- /joint_states
- /odom
- /parameter_events
- /robot_description
- /robot_velocity
- /rosout
- /tf
- /tf_static
ros2 run teleop_twist_keyboard teleop_twist_keyboard
- This node takes keypresses from the keyboard and publishes them
- as Twist messages. It works best with a US keyboard layout.
- ---------------------------
- Moving around:
- u i o
- j k l
- m , .
-
- For Holonomic mode (strafing), hold down the shift key:
- ---------------------------
- U I O
- J K L
- M < >
-
- t : up (+z)
- b : down (-z)
-
- anything else : stop
-
- q/z : increase/decrease max speeds by 10%
- w/x : increase/decrease only linear speed by 10%
- e/c : increase/decrease only angular speed by 10%
-
- CTRL-C to quit
-
- currently: speed 0.5 turn 1.0
