Trouble adding camera to gazebo simulation

asked 2020-02-29 06:39:48 -0500

naza karim gravatar image


I am trying to add a camera to the iris drone to my gazebo simulation. I tried using many models (iris_fpv_cam, iris_downward_depth_camera, iris_stereo_camera ...) by changing px4 launch files' vehicle argument. But i keep getting:

Error: Unknown model 'iris_fpv_cam'
ERROR [px4] Startup script returned with return value: 256

I also tried to modify iris.sdf and iris.xacro files as described here. And I get the following errors:

Error [] Required attribute[name] in element[collision] is not specified in SDF.
Error [] Error reading element <collision>
Error [] Error reading element <link>
Error [] Error reading element <model>
Error [] Unable to read element <sdf>
Error:   Could not find the 'robot' element in the xml file
         at line 81 in /build/urdfdom-UJ3kd6/urdfdom-0.4.1/urdf_parser/src/model.cpp
Error [] Unable to call parseURDF on robot model
Error [] parse as old deprecated model file failed.

Can someone please assist me on how to add a downward camera attached to my drones?

Thank you

edit retag flag offensive close merge delete