小鱼 ROS 2 新书上线!点击链接查看, 新书配套视频点击链接查看。
提问前必看的发帖注意事项—— 提问前必看!不符合要求的问题拒绝回答!!
社区使用指南—如何添加标签修改密码
gazebo报错,exit code 134
-
环境是ros1-melodic,gazebo11,一直是这个报错,在gazebo9时也是。
-
-
zhang@zhang-virtual-machine:~/a工作$ roslaunch gazebo_ros empty_world.launch
... logging to /home/zhang/.ros/log/fc5663cc-aaa1-11ed-a845-000c2919b3b3/roslaunch-zhang-virtual-machine-27785.log
Checking log directory for disk usage. This may take a while.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.Error in sitecustomize; set PYTHONVERBOSE for traceback:
AttributeError: module 'sys' has no attribute 'setdefaultencoding'
Error in sitecustomize; set PYTHONVERBOSE for traceback:
AttributeError: module 'sys' has no attribute 'setdefaultencoding'
started roslaunch server http://zhang-virtual-machine:35989/SUMMARY
PARAMETERS
- /gazebo/enable_ros_network: True
- /rosdistro: melodic
- /rosversion: 1.14.13
- /use_sim_time: True
NODES
/
gazebo (gazebo_ros/gzserver)
gazebo_gui (gazebo_ros/gzclient)auto-starting new master
process[master]: started with pid [27802]
ROS_MASTER_URI=http://localhost:11311setting /run_id to fc5663cc-aaa1-11ed-a845-000c2919b3b3
process[rosout-1]: started with pid [27820]
started core service [/rosout]
process[gazebo-2]: started with pid [27824]
process[gazebo_gui-3]: started with pid [27832]
terminate called after throwing an instance of 'std::runtime_error'
what(): locale::facet::_S_create_c_locale name not valid
terminate called after throwing an instance of 'std::runtime_error'
what(): locale::facet::_S_create_c_locale name not valid
Aborted (core dumped) //这往下是报错
[gazebo_gui-3] process has died [pid 27832, exit code 134, cmd /opt/ros/melodic/lib/gazebo_ros/gzclient __name:=gazebo_gui __log:=/home/zhang/.ros/log/fc5663cc-aaa1-11ed-a845-000c2919b3b3/gazebo_gui-3.log].
log file: /home/zhang/.ros/log/fc5663cc-aaa1-11ed-a845-000c2919b3b3/gazebo_gui-3*.log
Aborted (core dumped)
[gazebo-2] process has died [pid 27824, exit code 134, cmd /opt/ros/melodic/lib/gazebo_ros/gzserver -e ode worlds/empty.world __name:=gazebo __log:=/home/zhang/.ros/log/fc5663cc-aaa1-11ed-a845-000c2919b3b3/gazebo-2.log].
log file: /home/zhang/.ros/log/fc5663cc-aaa1-11ed-a845-000c2919b3b3/gazebo-2*.log -
-
大佬找到原因了吗?我在使用qt运行gazebo时也出现了同样的问题。