
Ubuntu虚拟机下ROS2例程wpr_simulation2打开Gazebo仿真出错误ros2 launch wpr_simulation2 wpb_simple.launch.py错误如下部分[spawn_entity.py-5] [INFO] [1784869600.182806017] [spawn_entity]: Waiting for service /spawn_entity[spawn_entity.py-4] [ERROR] [1784869612.948464485] [spawn_entity]: Spawn service failed. Exiting.[ERROR] [spawn_entity.py-4]: process has died [pid 27871, exit code 1, cmd /opt/ros/humble/lib/gazebo_ros/spawn_entity.py -topic robot_description -entity wpb_home -x -6.0 -y -0.5 -Y 0.0 --ros-args].[ERROR] [spawn_entity.py-5]: process has died [pid 29403, exit code 1, cmd /opt/ros/humble/lib/gazebo_ros/spawn_entity.py -file /home/mjw/wprws/install/wpr_simulation2/share/wpr_simulation2/models/bookshelft.model -entity bookshelft_01 -x 3.0 -y 0.0 -Y 3.1415926 --ros-args -r __node:spawn_entity -r __ns:/].重装系统、ros2、wpr多遍后无法解决。无意发现是虚拟机设置有问题虚拟机的处理器数目不能是1改成4后一切正常了。