Communication between crazyswarm and gazebo#652
Communication between crazyswarm and gazebo#652Andresf28 wants to merge 1 commit intoUSC-ACTLab:masterfrom
Conversation
We modify and add two scrips that will let us simulate crazyswarm's code in gazebo based in the CrazyS repo. crazyswarm_py.py This file has a new parser.argument that let us use the --gaz in terminal while running your python's trajectory script to launch drones in Gazebo. Before doing that, remember to run the .yaml file to select the number of drones that will be used in the fly and the .launch file in terminal to create the drone's world. crazyflieGaz.py This file contains the three fundamental methods for making your drones fly (Take off, go to and land). The above through nodes and topics which will be used by Gazebo while running the trajectory in your python script. Don't forget to check whether your script has all the arguments that the methods in this file require.
|
Thanks for the contribution! I think a lot of users are interested in this. From skimming the code, it seems like the only supported commands are It's also not clear how any of the simulation data from Gazebo would get back to the script. For example, I think most users will assume that the Unsupported methods should raise Regarding missing commands, I would be fine with merging a PR with Regarding missing |
|
Regarding the overall design: Another new simulator PR is #504, which is a ROS node that implements the Crazyswarm ROS API using the simulation logic of We could also consider supporting Gazebo/RotorS with a design more like #504, with a ROS node that "translates" the Crazyswarm ROS API into the Gazebo/RotorS ROS API. One advantage of the translation node is that it would be spawned by the launch file, so it could continue running through several scripts. This would save startup time of Gazebo (is it slow? I never used it). However, it would still need to be restarted whenever the user wants to reset the simulator to the |
We modify and add two scrips that will let us simulate crazyswarm's code in gazebo based in the CrazyS repo.
crazyswarm_py.py
This file has a new parser.argument that let us use the --gaz in terminal while running your python's trajectory script to launch drones in Gazebo. Before doing that, remember to run the .yaml file to select the number of drones that will be used in the fly and the .launch file in terminal to create the drone's world.
crazyflieGaz.py
This file contains the three fundamental methods for making your drones fly (Take off, go to and land). The above through nodes and topics which will be used by Gazebo while running the trajectory in your python script. Don't forget to check whether your script has all the arguments that the methods in this file require.