运行
gazebo -r --record_path ~/logs/random_velocity worlds/xxx.world
直接跳出
或者报错
[Err] [Master.cc:96] EXCEPTION: Unable to start server[bind: Address already in use]. There is probably another Gazebo process running
可以运行以下命令
killall gzserver
引用自:gazebo问题