Gazebo does not launch when entering the launch command 2020
Hi,
This question was asked before, but the proposed solutions are not working with me.
from the "Using Open AI with ROS" Article, i am trying to launch the simulation and the training of the parrot drone locally, on my PC.
I am using ROS kinetic + gazebo 7
I managed to download all the scripts and files, and i ran them, the training was happening, all the topics were published and it partially worked, except that the gazebo simulation did not open (gazebo did not launch). However, the Rviz worked and showed the camera frames but crashed after a short while:
in rviz: camera frames showed that the drone was navigating before it crashes a short after. The robot model did not appear
here is my code of launching the simulation:
#!/bin/sh
#find where the 'sjtu_drone' is
pack_path=$(rospack find sjtu_drone)
#export the gazebo pathes
export GAZEBO_MODEL_PATH=$pack_path/models:$GAZEBO_MODEL_PATH
export GAZEBO_RESOURCE_PATH=$pack_path:/usr/share/gazebo-3.0:/usr/share/gazebo-4.0:/usr/share/gazebo_models:$GAZEBO_RESOURCE_PATH
export GAZEBO_PLUGIN_PATH=$pack_path/plugins:$GAZEBO_PLUGIN_PATH
#call the client of Gazebo
roslaunch drone_construct main.launch gui:=true paused:=false
Here is the output on the CMD :
rosrun drone_construct start_simulation_localy.sh
... logging to /home/elias16/.ros/log/cd847bda-eeb3-11ea-a158-58fb84cc52d1/roslaunch-elias16-Inspiron-5567-26342.log
Checking log directory for disk usage. This may take awhile.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.
started roslaunch server http://elias16-Inspiron-5567:42507/
SUMMARY
========
PARAMETERS
* /rosdistro: kinetic
* /rosversion: 1.12.16
NODES
/
gazebo (sjtu_drone/start_gzserver)
sjtu_drone_spawn_urdf (gazebo_ros/spawn_model)
ROS_MASTER_URI=http://localhost:11311
process[gazebo-1]: started with pid [26359]
process[sjtu_drone_spawn_urdf-2]: started with pid [26361]
SpawnModel script started
[INFO] [1599226669.105373]: Loading model XML from file
[INFO] [1599226669.105717]: Waiting for service /gazebo/spawn_sdf_model
[INFO] [1599226669.411905]: Calling service /gazebo/spawn_sdf_model
[INFO] [1599226669.788823]: Spawn status: SpawnModel: Successfully spawned entity
[sjtu_drone_spawn_urdf-2] process has finished cleanly
log file: /home/elias16/.ros/log/cd847bda-eeb3-11ea-a158-58fb84cc52d1/sjtu_drone_spawn_urdf-2*.log
can i get any help on how to run the gazebo simulation and how to see all the models in Rviz?
I have similar problem but i can't figure out why! did you try to check your tf_tree?