ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A answers.ros.org
Ask Your Question
0

Unable to launch a simulation that was working

asked 2018-11-28 04:06:41 -0500

oiseau gravatar image

updated 2018-11-28 10:16:00 -0500

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 ...
(more)
edit retag flag offensive close merge delete

Comments

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.

Delb gravatar image Delb  ( 2018-11-28 06:28:40 -0500 )edit

If you've set ROS_MASTER_URI, ROS_IP or ROS_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.

gvdhoorn gravatar image gvdhoorn  ( 2018-11-28 06:38:21 -0500 )edit

I am running this launch file that calls this one. I am running the simulation in local, everything is on my VM.

oiseau gravatar image oiseau  ( 2018-11-28 06:43:55 -0500 )edit

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

yyyy gravatar image yyyy  ( 2022-01-21 12:08:22 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2018-11-28 04:57:31 -0500

Karax31 gravatar image
[rospy.core][INFO] 2018-11-28 10:57:04,824: signal_shutdown [atexit]

So your core is receiving a shutdown signal. Hard to say what is exactly happening. Maybe check if their is still something running in the background that might be cause the shutdown. This error only occurs while running the simulation? Maybe try to start gazebo without the simulation and see if it runs.

Also it shutsdown after loading the model, so maybe try to run with different model and see what happens.

edit flag offensive delete link more

Comments

I have updated my post. Nothing is still running after I close the simulation.

oiseau gravatar image oiseau  ( 2018-11-28 10:17:14 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

2 followers

Stats

Asked: 2018-11-28 04:06:41 -0500

Seen: 792 times

Last updated: Nov 28 '18