Git Product home page Git Product logo

openpose-drone-control-via-body-movement's Introduction

Robotics-Final-Project

Final project for Introduction to Robotics

Commands to Launch

sim_vehicle.py -v ArduCopter -f gazebo-iris --map --console
gazebo --verbose worlds/iris_arducopter_runway.world
roslaunch mavros apm.launch

Commands to Run

For keyboard controls:

chmod +x keyboardControl.py
python3 keyboardControl.py

Example (Controlled through the PyGame window):

Gazebo Obstacle Course Keyboard Control

For arUco tracking controls:

chmod +x arucoControl.py
python3 arucoControl.py

Example:

Gazebo Obstacle Course ArUco Control

For OpenPose:

Coming Soon

Helpful Tip(s) for MavRos:

  1. Change line number 5 in apm.launch file to: <arg name="fcu_url" default="udp://127.0.0.1:14551@" />
  2. Change line number 117 in apm_config.yaml with mav_frame: LOCAL_NED to mav_frame: BODY_NED. This is to make sure that the drone's setpoint velocity commands are relative to its frame.
  3. Change <gui> settings in /usr/share/gazebo-9/worlds/iris_arducopter_runway.world from:
<gui>
    <camera name="user_camera">
        <pose>-5 0 1 0 0.2 0</pose>
    </camera>
</gui>

to:

<gui>
    <camera name="user_camera">
        <track_visual>
            <name>iris_demo</name>
            <static>true</static>
            <use_model_frame>true</use_model_frame>
            <xyz>-3 0 0</xyz>
            <inherit_yaw>true</inherit_yaw>
        </track_visual>
    </camera>
</gui>

for a third-person view for the drone.

Helpful Commands for MavRos:

rosservice call /mavros/set_mode 0 guided
rosservice call /mavros/cmd/arming true
rosservice call /mavros/cmd/takeoff "{min_pitch: 0.0, yaw: 0.0, latitude: 0.0, longitude: 0.0, altitude: 10.0}"
rosservice call /mavros/set_mode 0 land
rosservice call /mavros/cmd/arming false

Or on the terminal that you enter sim_vehicle.py -v ArduCopter -f gazebo-iris --map --console:

mode guided
arm throttle
takeoff <numValue>
mode land

openpose-drone-control-via-body-movement's People

Contributors

peasant98 avatar satishupadhyaya avatar

Stargazers

 avatar

Watchers

 avatar  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.