ethz-asl / rotors_simulator

RotorS is a UAV gazebo simulator
1.24k stars 759 forks source link

Mav Hovering Example not working on ROS Melodic in Ubuntu 18.04 #559

Open z3r0f4z3 opened 5 years ago

z3r0f4z3 commented 5 years ago

After installing ROS melodic on Gazebo 9 and RotorS, im trying to run the mav_hovering example . It loads but the firefly is stuck and cannot move and Terminal gave the following log when running this ; $ roslaunch rotors_gazebo mav_hovering_example.launch mav_name:=firefly world_name:=basic

The resulting log is : Checking log directory for disk usage. This may take awhile. Press Ctrl-C to interrupt Done checking log file disk usage. Usage is <1GB.

redefining global property: pi when processing file: /home/f4ze/catkin_ws/src/rotors_simulator/rotors_description/urdf/component_snippets.xacro included from: /home/f4ze/catkin_ws/src/rotors_simulator/rotors_description/urdf/firefly_base.xacro included from: /home/f4ze/catkin_ws/src/rotors_simulator/rotors_description/urdf/mav_generic_odometry_sensor.gazebo xacro.py is deprecated; please use xacro instead started roslaunch server http://Superion:35397/

SUMMARY

PARAMETERS

NODES /firefly/ hovering_example (rotors_gazebo/hovering_example) joint_state_publisher (joint_state_publisher/joint_state_publisher) lee_position_controller_node (rotors_control/lee_position_controller_node) robot_state_publisher (robot_state_publisher/robot_state_publisher) spawn_firefly (gazebo_ros/spawn_model) / gazebo (gazebo_ros/gzserver) gazebo_gui (gazebo_ros/gzclient)

auto-starting new master process[master]: started with pid [13699] ROS_MASTER_URI=http://localhost:11311

setting /run_id to 41658e38-55e3-11e9-b104-1c872cb4886b process[rosout-1]: started with pid [13710] started core service [/rosout] process[gazebo-2]: started with pid [13717] process[gazebo_gui-3]: started with pid [13722] process[firefly/spawn_firefly-4]: started with pid [13727] ERROR: cannot launch node of type [rotors_control/lee_position_controller_node]: can't locate node [lee_position_controller_node] in package [rotors_control] ERROR: cannot launch node of type [rotors_gazebo/hovering_example]: can't locate node [hovering_example] in package [rotors_gazebo] process[firefly/robot_state_publisher-7]: started with pid [13728] process[firefly/joint_state_publisher-8]: started with pid [13729] [ INFO] [1554277017.266055300]: Finished loading Gazebo ROS API Plugin. [ INFO] [1554277017.266877732]: waitForService: Service [/gazebo_gui/set_physics_properties] has not been advertised, waiting... [ INFO] [1554277017.306950555]: Finished loading Gazebo ROS API Plugin. [ INFO] [1554277017.308120411]: waitForService: Service [/gazebo/set_physics_properties] has not been advertised, waiting... [INFO] [1554277017.750699, 0.000000]: Loading model XML from ros parameter robot_description [INFO] [1554277017.765395, 0.000000]: Waiting for service /gazebo/spawn_urdf_model [INFO] [1554277018.369844, 0.000000]: Calling service /gazebo/spawn_urdf_model [INFO] [1554277018.723012, 0.000000]: Spawn status: SpawnModel: Successfully spawned entity [firefly/spawn_firefly-4] process has finished cleanly log file: /home/f4ze/.ros/log/41658e38-55e3-11e9-b104-1c872cb4886b/firefly-spawn_firefly-4*.log [Err] [REST.cc:205] Error in REST request

libcurl: (51) SSL: no alternative certificate subject name matches target host name 'api.ignitionfuel.org' [ INFO] [1554277025.702637804, 0.030000000]: waitForService: Service [/gazebo/set_physics_properties] is now available. [ INFO] [1554277025.724685690, 0.050000000]: Physics dynamic reconfigure ready.

Alternatively does anyone know how to get RotorS to work on ROS Melodic on Gazebo 9 in Ubuntu 18.04 LTS. I am a first time user so I don't know much, I also don't know if this specific issue has been raised already.

bys1123 commented 5 years ago

I have this error too, seems api.ignitionfuel.org is broken.

michaelpantic commented 5 years ago

Hi!

From your description I assume you installed rotorS from the Ros packages? These are still in a preliminary state. So I recommend you try it with the source version from this repo - thanks!

See https://github.com/ethz-asl/rotors_simulator/pull/506 for more details.

golden-memory commented 4 years ago

I have this too, can someone help me