To run the software in the loop simulation you need to open three different terminal.
- Run the gazebo environment and start the Micro-XRCE-DDS-Agent:
Run the script
cd ~/PX4-mini-drone
chmod a+x sitl_enviroment_setup.sh
./sitl_enviroment_setup.sh
or alternatively
cd ~/PX4-mini-drone
make px4_sitl gazebo
cd ~/PX4-mini-drone
MicroXRCEAgent udp4 -p 8888
- Then the package can be runned:
source ~/ws_combined_sensor/install/local_setup.bash
source install/local_setup.bash
ros2 run <package_name> <executable_name>