Unable to launch a simulation that was working
Hi everyone, I have an issues with my PX4 simulation since Friday, I am unable to have a working simulation, I did not remember to have made any change, but now, when I am launching my simulation, I don't get the px4 command prompt. So, I reinstall everything, but it did not work.
I found some errors inside my logfile, but I didn't find answer for them.
[rospy.client][INFO] 2018-11-28 10:57:04,270: init_node, name[/uav3/iris_3_spawn], pid[26431]
[xmlrpc][INFO] 2018-11-28 10:57:04,270: XML-RPC server binding to 0.0.0.0:0
[xmlrpc][INFO] 2018-11-28 10:57:04,271: Started XML-RPC server [http://projetd-VirtualBox:34009/]
[rospy.impl.masterslave][INFO] 2018-11-28 10:57:04,271: _ready: http://projetd-VirtualBox:34009/
[xmlrpc][INFO] 2018-11-28 10:57:04,272: xml rpc node: starting XML-RPC server
[rospy.registration][INFO] 2018-11-28 10:57:04,273: Registering with master node http://localhost:11311
[rospy.init][INFO] 2018-11-28 10:57:04,274: ROS Slave URI: [http://projetd-VirtualBox:34009/]
[rospy.init][INFO] 2018-11-28 10:57:04,274: registered with master
[rospy.rosout][INFO] 2018-11-28 10:57:04,274: initializing /rosout core topic
[rospy.rosout][INFO] 2018-11-28 10:57:04,296: connected to core topic /rosout
[rospy.simtime][INFO] 2018-11-28 10:57:04,310: initializing /clock core topic
[rospy.simtime][INFO] 2018-11-28 10:57:04,337: connected to core topic /clock
[rospy.internal][INFO] 2018-11-28 10:57:04,344: topic[/clock] adding connection to [http://projetd-VirtualBox:38481/], count 0
[rosout][INFO] 2018-11-28 10:57:04,393: Loading model XML from ros parameter
[rosout][INFO] 2018-11-28 10:57:04,430: Waiting for service /gazebo/spawn_urdf_model
[rosout][INFO] 2018-11-28 10:57:04,461: Calling service /gazebo/spawn_urdf_model
[rospy.internal][INFO] 2018-11-28 10:57:04,543: topic[/rosout] adding connection to [/rosout], count 0
[rosout][INFO] 2018-11-28 10:57:04,822: Spawn status: SpawnModel: Successfully spawned entity
[rospy.core][INFO] 2018-11-28 10:57:04,824: signal_shutdown [atexit]
[rospy.internal][INFO] 2018-11-28 10:57:04,839: topic[/rosout] removing connection to /rosout
[rospy.internal][INFO] 2018-11-28 10:57:04,840: topic[/clock] removing connection to http://projetd-VirtualBox:38481/
[rospy.impl.masterslave][INFO] 2018-11-28 10:57:04,840: atexit
By launching my simulation with : roslaunch px4 multi_uav_mavros_sitl.launch verbose:=true I have this error in output :
[Err] [Plugin.hh:180] Failed to load plugin libgazebo_multirotor_base_plugin.so: libgazebo_multirotor_base_plugin.so: cannot open shared object file: No such file or directory
[Err] [Plugin.hh:180] Failed to load plugin libgazebo_motor_model.so: libgazebo_motor_model.so: cannot open shared object file: No such file or directory
[Err] [Plugin.hh:180] Failed to load plugin libgazebo_motor_model.so: libgazebo_motor_model.so: cannot open shared object file: No such file or directory
[Err] [Plugin.hh:180] Failed to load plugin libgazebo_motor_model.so: libgazebo_motor_model.so: cannot open shared object file: No such file or directory
[Err] [Plugin.hh:180] Failed to load plugin libgazebo_motor_model.so: libgazebo_motor_model.so: cannot open shared object file: No such file or directory
[Err] [Plugin.hh:180] Failed to load plugin libgazebo_gps_plugin.so: libgazebo_gps_plugin.so ...
Can you provide your launch file/ the commands you run ? The node to spawn a model in Gazebo (which seems to be the only node launched here) always end itself once the model is spawned, so if you only launch this node then it's the behavior expected.
If you've set
ROS_MASTER_URI
,ROS_IP
orROS_HOSTNAME
to specific values and your network configuration has changed (fi: you're now using a different IP address) then things can stop working "without changing anything".Something to check.
I am running this launch file that calls this one. I am running the simulation in local, everything is on my VM.
What was the solution to this problem? I'm trying to run the turtlebot3 examples in ROS Kinetic and I have the same signal_shutdown [atexit] issue right after the model is spawned. The command I'm running is
roslaunch turtlebot3_gazebo turtlebot3_empty_world.launch