Code Monkey home page Code Monkey logo

mavros_humantracking's Introduction

mavros_humantracking

Build Test

mavros_humantracking is a package enabling image based object tracking with a gimbal attached to a drone. It uses the MountControlPlugin in mavros

multiuavsitl

Nodes

  • humantracking_controller

Simulating multiple vehicles

Multiple vehicles can be simulated with the following launcfile

roslaunch humantracking_controller multi_sitl_humantrack_circle.launch

multiuavsitl

mavros_humantracking's People

Contributors

473867143 avatar jaeyoung-lim avatar

Stargazers

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

Watchers

 avatar  avatar

mavros_humantracking's Issues

sample launch file drone not follow the set trajectory in sample

os: ubuntu 20.04
ros version: noetic

what i did

  1. clone https://github.com/Jaeyoung-Lim/mavros_humantracking and https://github.com/Jaeyoung-Lim/mavros_controllers in ~/catkin_mavros/src and build them in ~/catkin_mavros.
  2. source below bash script in ~/px4/PX4-Autopilot
source /opt/ros/noetic/setup.bash
DONT_RUN=1 make px4_sitl_default gazebo-classic
source ~/catkin_mavros/devel/setup.bash 
source Tools/simulation/gazebo-classic/setup_gazebo.bash $(pwd) $(pwd)/build/px4_sitl_default
export ROS_PACKAGE_PATH=$ROS_PACKAGE_PATH:$(pwd)
export ROS_PACKAGE_PATH=$ROS_PACKAGE_PATH:$(pwd)/Tools/simulation/gazebo-classic/sitl_gazebo-classic
  1. launch sample file

but spawnd drone Flying a messed up trajectory.

roslaunch humantracking_controller sitl_humantrack_circle.launch
one

roslaunch humantracking_controller multi_sitl_humantrack_circle.launch
multi

Am I doing something wrong with the procedure?

Multi Vehicle Simulation gives error

Hello I am getting the following error when I run roslaunch humantracking_controller multi_sitl_humantrack_circle.launch

RLException: while processing /home/pravardhan/px4/PX4-Autopilot/launch/single_vehicle_spawn_sdf.launch:
Invalid <param> tag: Cannot load command parameter [model_description]: no such command [['xmlstarlet', 'ed', '-d', '//plugin[@name="mavlink_interface"]/mavlink_tcp_port', '-s', '//plugin[@name="mavlink_interface"]', '-t', 'elem', '-n', 'mavlink_tcp_port', '-v', '4560', '/home/pravardhan/px4/PX4-Autopilot/Tools/sitl_gazebo/models/typhoon_h480/typhoon_h480.sdf']]. 

Param xml is <param command="$(arg cmd)" name="model_description"/>
The traceback for the exception was written to the log file

This is with the latest PX4-Autopilot

Camera does not move

Hi @Jaeyoung-Lim I am trying to control camera gimbal using /mavros/mount_control/command mavros topic.

I published,

rostopic pub --once /mavros/mount_control/command mavros_msgs/MountControl "header:  
  seq: 0                    
  stamp: {secs: 0, nsecs: 0}
  frame_id: 'map'
mode: 2
pitch: -1.0
roll: 0.0
yaw: 0.0
altitude: 0.0
latitude: 0.0
longitude: 0.0"

However, the camera in Gazebo didn't move. Do I need to to do something else? e.g. setting some PX4 parameters?
I am using mavros installed using apt-get and PX4 v1.10.1

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.