Intelligent-Quads / iq_sim

example gazebo ardupilot simulation package
MIT License
110 stars 76 forks source link

Unable to find the uri model= drone_with_camera #7

Closed abhiramdapke closed 3 years ago

abhiramdapke commented 3 years ago

Hello guys, I followed all the steps to run the gazebo model, but when I am running the command "roslaunch iq_sim runway.launch", it is not finding the uri model - drone_with_camera. I am able to see the empty world without the arducopter. I exported all the drone models into .bashrc while following the steps. Could you guide me on how to load that model in the gazebo?

Note: The sitl gazebo simulation without ROS is running perfectly.

Thank you.

gazebo Version 9 ROS Melodic Ubuntu 18.04 Mavros 1.5.0 Ardupilot firmware

Error log when running "roslaunch iq_sim runway.launch"

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

started roslaunch server http://abhiram:39931/

SUMMARY
========

PARAMETERS
 * /gazebo/enable_ros_network: True
 * /rosdistro: melodic
 * /rosversion: 1.14.10
 * /use_sim_time: True

NODES
  /
    gazebo (gazebo_ros/gzserver)
    gazebo_gui (gazebo_ros/gzclient)

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

setting /run_id to e336d3c8-3658-11eb-93e3-0800273cbdf0
process[rosout-1]: started with pid [5281]
started core service [/rosout]
process[gazebo-2]: started with pid [5285]
process[gazebo_gui-3]: started with pid [5293]
[ INFO] [1607104097.116456502]: Finished loading Gazebo ROS API Plugin.
[ INFO] [1607104097.117582554]: waitForService: Service [/gazebo/set_physics_properties] has not been advertised, waiting...
[ INFO] [1607104097.145564613]: Finished loading Gazebo ROS API Plugin.
[ INFO] [1607104097.147727900]: waitForService: Service [/gazebo_gui/set_physics_properties] has not been advertised, waiting...
Error Code 11 Msg: Unable to find uri[model://drone_with_camera]
[ INFO] [1607104120.953956962, 0.387000000]: waitForService: Service [/gazebo/set_physics_properties] is now available.
[ INFO] [1607104120.966385469, 1.018000000]: Physics dynamic reconfigure ready.
[ WARN] [1607104146.096593818, 1566.171000000]: Shutdown request received.
[ WARN] [1607104146.096748501, 1566.171000000]: Reason given for shutdown: [[/gazebo_gui] Reason: new node registered with same name]
^C[gazebo_gui-3] killing on exit
[gazebo-2] killing on exit
[rosout-1] killing on exit
[master] killing on exit
shutting down processing monitor...
... shutting down processing monitor complete
done
shivammalviya712 commented 3 years ago

Hi @abhiramdapke !!

How did you solved this? I am facing the same issue

abhiramdapke commented 3 years ago

That's a Gazebo model Path error. You can find the solution here: https://github.com/Intelligent-Quads/iq_tutorials/issues/15