使用turtlebot3仿真slam建图时,启动键盘报错。

使用turtlebot3仿真slam建图时,启动键盘报错。

新终端,启动键盘节点

roslaunch turtlebot3_gazebo turtlebot3_house.launch

ImportError: No module named yaml
[turtlebot3_teleop_keyboard-1] process has died [pid 19147, exit code 1, cmd /home/cx123/turtlebot_ws/src/turtlebot3/turtlebot3_teleop/nodes/turtlebot3_teleop_key __name:=turtlebot3_teleop_keyboard __log:=/home/cx123/.ros/log/e37cc342-bc8f-11ec-bac4-df576860a7ee/turtlebot3_teleop_keyboard-1.log]
log file: /home/cx123/.ros/log/e37cc342-bc8f-11ec-bac4-df576860a7ee/turtlebot3_teleop_keyboard-1*log
all processes on machine have died, roslaunch will exit
shutting down processing monitor
shutting down processing monitor complete
done

尝试了其他博主的方法,重装,再进行键盘操作,结果相同。

键盘可以操作小车在 Gazebo中运动,Riiz 有建图结果