So I used a stereo camera, a TX2 on top of Pixhawk to achieve fully autonomous drone flight and collision avoidance.
In case someone is also interested, here is how I have done it:https://github.com/generalized-intelligence/GAAS/tree/master/demo/tutorial_1
@BAmercury I'm still having issues. I cloned the sitl_gazebo repo, tried "cmake .." and it failed (im on ubuntu 18.04 so maybe that's why?). I cloned the PX4/Firmware repo, and ran the following commands
git checkout v1.8.2
git submodule update --init --recursive
make posix_sitl_default gazebo
It starts gazebo with a SITL PX4, but if i try
gazebo ./iris.world --verbose it gives me errors that file paths are wrong, If i try with in the cloned sitl_gazebo you mentioned it says plugins cant be found and file paths are wrong.
-- Found gstreamer-1.0 , version 1.8.3 -- Checking for module 'gstreamer-base-1.0 >= 1.0' -- Found gstreamer-base-1.0 , version 1.8.3 -- Found GStreamer: GSTREAMER_INCLUDE_DIRS;GSTREAMER_LIBRARIES;GSTREAMER_VERSION;GSTREAMER_BASE_INCLUDE_DIRS;GSTREAMER_BASE_LIBRARIES (Required is at least version "1.0") -- Checking for module 'OGRE' -- Found OGRE, version 1.9.0 CMake Error at CMakeLists.txt:70 (add_subdirectory): The source directory /home/labuser/src/sitl_gazebo/external/OpticalFlow does not contain a CMakeLists.txt file. -- Could NOT find MAVLink (missing: MAVLINK_INCLUDE_DIRS) (found version "2.0") -- catkin DISABLED -- Found Protobuf: /usr/lib/x86_64-linux-gnu/libprotobuf.so -- Checking for module 'protobuf' -- Found protobuf, version 2.6.1 -- Gazebo version: 9.11 -- Found GStreamer: adding gst_camera_plugin -- Found GStreamer: adding gst_video_stream_widget CMake Error: The following variables are used in this project, but they are set to NOTFOUND. Please set them or make sure they are set and tested correctly in the CMake files: _MAVLINK_INCLUDE_DIR
I saw this comment but I don't know how to "use pymavlink to generate header files"
gazebo worlds/iris.worldit says:
abuser@labuser-VBox:~/src/sitl_gazebo$ gazebo worlds/iris.world Error Code 11 Msg: Unable to find uri[model://iris]
made changes to ~/.bashrc file per the README, now it works on Ubuntu 16.04, still no luck on 18.04