无法使用键盘控制程序控制机器人的移动

添加完ROS主从配置并刷新后,输入了roslaunch robot_sim_demo robot_spawn.launch 启动gazebo,然后输入rosrun robot_sim_demo robot_keyboard_teleop.py,出现以下:

Control The Robot!

Moving around:
u i o
j k l
m , .

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%
space key, k : force stop
anything else : stop smoothly

CTRL-C to quit

currently: speed 0.2 turn 1

然后我窗口也切到键盘控制程序的终端这边了,就是按u i o等键时仿真页面都没有反应,这个是怎么回事呢?

Unable to register with master node [http://127.0.0.1:11311]: master may not be running yet. Will keep trying.

输入rosrun robot_sim_demo robot_keyboard_teleop.py后,现在出现了如上提示。

看起来要先启动 roscore,启动了么?

主从设置不对,重新设置一下吧。