Giter Site home page Giter Site logo

izhuoxx / object-tracking-for-uav Goto Github PK

View Code? Open in Web Editor NEW
4.0 1.0 0.0 158.96 MB

CMake 10.22% C 0.45% C++ 24.83% Makefile 32.05% Python 10.77% Shell 0.18% Common Lisp 15.66% NewLisp 0.01% JavaScript 5.33% Cuda 0.33% CSS 0.10% HTML 0.01% Fortran 0.01% Batchfile 0.04%

object-tracking-for-uav's Introduction

UAV Motion Planning and Control

Welcome to the UAV Motion Planning and Control repository! This project is based on the EGO Planner v2 and includes a PX4 controller that implements both PID and LQR controllers for executing UAV trajectories. The workspace supports simulation in two environments: PX4-Autopilot and XTDrone. A visual algorithm package for target tracking will be coming soon in the future.

Features

  • EGO Planner v2: Advanced motion planning algorithm for UAVs.
  • PX4 Controller: Supports both PID and LQR controllers for precise trajectory execution.
  • Dual Simulation Environments: Compatible with both PX4-Autopilot and XTDrone platforms.

Table of Contents

Installation

Prerequisites

Before cloning the repository, ensure you have the following dependencies installed:

Clone the Repository

Clone this repository to your local machine:

cd catkin_ws
git clone https://github.com/iZhuoxx/Object-Tracking-for-UAV.git
catkin_make
source devel/setup.bash

Simulation

PX4-Autopilot Simulation

To simulate the UAV in the PX4-Autopilot environment, follow these steps:

  1. Navigate to the script directory:

    cd script
  2. Run the PX4-Autopilot simulation script:

    sh mybot_gazebo.sh

XTDrone Platform Simulation

To simulate the UAV in the XTDrone platform, follow these steps:

  1. Navigate to the script directory:

    cd script
  2. Run the XTDrone simulation script:

    sh XTbot_gazebo.sh

Result of Simulation

Example GIF

Usage

Please follow these steps to operate the UAV:

  1. Start the Simulation Platform:

    • Running the appropriate PX4-Autopilot's or XTDrone's simulation script, the UAV will initialize in the Gazebo simulation environment.
  2. Use QGroundControl:

    • Launch QGroundControl to take off the UAV.
  3. Run the Motion Planner Script:

    • Run the simulation script that we provided in script folder. The motion planning and control algorithms will be executed, allowing you to observe the UAV's trajectory.
  4. Configure RQT Reconfigure Interface:

    • When the rqt_reconfigure interface appears, first select the mode_bool option to enter offboard mode.
    • Then, select the cmd_bool option to initiate the setpoint in Rviz.
  5. Set the Target with 2D Nav Goal:

    • Use the "2D Nav Goal" tool in Rviz to set the target destination for the UAV. Now the drone will fly towards the target point and you can visualize the output of the motion planner algorithm.

Viewing the Simulation

  • Gazebo: The primary simulation environment where you can visualize the UAV's movements and interactions.
  • Rviz: Use Rviz for a 3D visualization of the planning and control processes.

Contact

For questions, issues, or support, please open an issue or contact [email protected].

object-tracking-for-uav's People

Contributors

izhuoxx avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.