Drone control scheme using OpenPose and neural net classification.
- Install OpenPose.
- Clone this repository to the same folder that contains OpenPose.
- Install ROS, MAVROS, Gazebo, and ArduCopter. Make sure to source
/opt/ros/melodic/setup.bash
and exportardupilot/Tools/autotest
in order to use ROS and ArduCopter commands.
To launch, run the following commands in separate terminals:
sim_vehicle.py -v ArduCopter -f gazebo-iris --map --console
gazebo --verbose obstacle.world
roslaunch mavros apm.launch
python3 pose.py
To retrain the classification model, do the following:
- Open
build_dataset.py
and edit the linepose = ...
to the pose name that you want to build a new dataset for. (note: valid pose names include['forward', 'back', 'turnleft', 'turnright', 'up', 'down', 'left', 'right', 'neutral']
) - Run
python3 build_dataset.py
, then hold that pose until the script ends. - Run
python3 train_model.py
.