[Spawn_husky_model - 8] Process has died

Do anyone have any idea what’s going on?
The simulation is on my pc running Ubuntu 16.04 and ROS Kinetic.
Gazebo starts perfectly but without Husky ( I meant to say Gazebo only launches the empty world ).
When I source the terminal with /opt/ros/kinetic/setup.bash and try to launch the file husky_playpen.launch, everything works perfectly fine.
But when I source the terminal with /catkin_ws/devel and try to launch the file husky_playpen.launch, the program gives below error.
When I tried a different code (other than the already existing binary package) from “https://github.com/nickcharron/waypoint_nav” github repo, compiled it and tried to run it from source, I got the error.
Thanks in advance.

Traceback (most recent call last): File "/opt/ros/kinetic/lib/gazebo_ros/spawn_model", line 26, in <module> from gazebo_ros import gazebo_interface File "/opt/ros/kinetic/lib/python2.7/dist-packages/gazebo_ros/gazebo_interface.py", line 9, in <module> from gazebo_msgs.msg import * ImportError: No module named msg [WARN] [1578149778.396989, 0.000000]: DEPRECATION warning: --shutdown-timeout has no effect. [spawn_husky_model-8] process has died [pid 15775, exit code 1, cmd /opt/ros/kinetic/lib/gazebo_ros/spawn_model -unpause -urdf -param robot_description -model mobile_base __name:=spawn_husky_model __log:=/home/arghya/.ros/log/5bdbdeb8-2f02-11ea-95c0-5c93a2ade090/spawn_husky_model-8.log]. log file: /home/arghya/.ros/log/5bdbdeb8-2f02-11ea-95c0-5c93a2ade090/spawn_husky_model-8*.log [ INFO] [1578149778.724595585]: Finished loading Gazebo ROS API Plugin. [ INFO] [1578149778.725804973]: waitForService: Service [/gazebo/set_physics_properties] has not been advertised, waiting... [ INFO] [1578149778.793020182]: Finished loading Gazebo ROS API Plugin. [ INFO] [1578149778.793546170]: waitForService: Service [/gazebo/set_physics_properties] has not been advertised, waiting... [ INFO] [1578149779.555884110, 1298.500000000]: waitForService: Service [/gazebo/set_physics_properties] is now available. [ INFO] [1578149779.596780656, 1298.530000000]: Valid clock time received. Starting node. [ INFO] [1578149779.632313365, 1298.560000000]: waitForService: Service [/gazebo/set_physics_properties] is now available. [ INFO] [1578149779.824496001, 1298.730000000]: Physics dynamic reconfigure ready. [ INFO] [1578149779.926347191, 1298.830000000]: Physics dynamic reconfigure ready. [WARN] [1578149808.658295, 1327.550000]: Controller Spawner couldn't find the expected controller_manager ROS interface. [base_controller_spawner-5] process has finished cleanly log file: /home/arghya/.ros/log/5bdbdeb8-2f02-11ea-95c0-5c93a2ade090/base_controller_spawner-5*.log

Try removing the buid, devel and then sourcing the /opt/ros/kinetic/setup.bash and then catkin_make your catkin_ws.

Then check doing roscd gazebo_msgs and check that all the packages needed you have them installed.

1 Like

Thanks. Helped a lot. It worked and saved a considerable amount of time. Thanks again.

1 Like