Skip to content

sherlockholmes1603/swarm_drones

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

swarm_drones

So this is a project on swarm drones using ardupilot and gazebo

Problems I am currently facing:-

  • In the launch file drone_connect.launch two drones should connect with namespaces "/drone1" and "/drone2" respectively but only "/drone1" is getting connected. We can the rostopics and rosservices of "/drone2" but the connection is not working.
  • To change the origin in local position of both drones with the origin of gazebo
  • To make it follow a proper circle

How to setup The enviornment

First you nedd to install ROS (Robotics Operating System) whose tutorials you can find here

After which you need to setup ardupilot on your system whose tutorials you can find here

Now you need to setup the world for which you can follow the following tutorial here

Launch the enviornment

Open up a terminal and write the following commands

roslaunch swarm_drones runway.launch

Openup a new terminal and write the command

sim_vehicle.py -v ArduCopter -f gazebo-iris --console -I0

Openup a new terminal and write the command

sim_vehicle.py -v ArduCopter -f gazebo-iris --console -I1

Openup a new terminal and write the command

roslaunch swarm_drones drone_connect.launch

Now when you will do rostopic list you will find all the commands for both the drones i.e. "/drone1" and "/drone2". But the commands for "/drone2" are not working and it is also not connected which is problem I am trying to debug

For the drone to follow a circle run the following command

rosrun swarm_drones drone_circle.py "/drone1"

You will see the drone move like this

video.mp4

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published