This file provides the steps needed to run the demo. The steps shown in instructions/setup.md
must be completed first.
WARNING: This demo is not safe for use on real hardware, the circle trajector generator may cause agressive and unpredictable behavior upon takeoff.
Navigate to your PX4-Autopilot folder ande execute:
make px4_sitl gazebo-classic_iris
MicroXRCEAgent udp4 -p 8888; exec bash
ros2 run plotjuggler plotjuggler
# Source the workspace
source /llc_ws/install/setup.sh
# Start the simulation
ros2 launch px4_offboard_lowlevel iris_sitl.launch.py
# For Visualisation in Rivz
ros2 launch px4_offboard_lowlevel visualize.launch.py
- Run the circle trajector generator in a new terminal
# Source the workspace
source ~/llc_ws/install/setup.sh
ros2 run px4_offboard_lowlevel circle_trajectory_node
# Start the trajectory generator
- Open QGroundControl, change to offboard mode, and arm the drone.
ros2 param set /offboard_controller control_mode 2