Code Monkey home page Code Monkey logo

gazebo_uav_control's Introduction

Simple Quadrotor UAV PID Control

This repository include an example of using ROS and Gazebo to position control a quadrotor UAV, using C++. A simple PID controller (not the internal ROS controller) is used as the controller.

Initial Setup

git clone https://github.com/fdcl-gwu/gazebo_uav_control.git
cd gazebo_uav_control
git submodule update --init
catkin_make
cd devel && source setup.bash && cd ../

Running the code

roslaunch uav_gazebo simple_world.launch 

Explanation

This code is organized as follows:

  • src/uav_control: plugin for controlling the UAV
  • src/uav_gazebo: Gazebo simulation related files

This uses uav_control/src/control_plugin.cpp file which uses the Gazebo model plugin as described here. Determining the current state and control input is done inside this file.

The states of the UAV can be checked with

rostopic echo /states

after launching Gazebo simulation.

gazebo_uav_control's People

Contributors

kanishkegb avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

gazebo_uav_control's Issues

launch problem

hi,
I run roslaunch uav_gazebo simple_world.launch , then the terminal show

[ INFO] [1702563200.006041544]: Finished loading Gazebo ROS API Plugin.
[ INFO] [1702563200.006576600]: waitForService: Service [/gazebo/set_physics_properties] has not been advertised, waiting...
[ INFO] [1702563200.055489765]: Finished loading Gazebo ROS API Plugin.
[ INFO] [1702563200.056138794]: waitForService: Service [/gazebo_gui/set_physics_properties] has not been advertised, waiting... 

and the gazebo wasn't launch.
Could you please tell me what should I do? Thanks a lot!

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.