Make sure to have the following dependencies installed in your ROS2 workspace:
px4_msgsfrom DISCOWER/px4_msgspx4_mpcfrom DISCOWER/px4-mpcros_fmq_bridgeprivately hosted in DISCOWER/ros_fmq_bridgeqpsolverswith thecvxoptoption (for delay compensation control)
After building the workspace, you can run the interface using the following command:
ros2 launch atmos_fmq robot_launch.py namespace:=crackle remote_control:=<true|false> NOTE: As of now, only the crackle namespace is supported. The remote_control parameter can be set to true or false depending on whether you want to run the controller from the FMQ operator or locally. If set to false, a PX4-MPC instance will be launched to control the vehicle towards the prescribed setpoint in /{namespace}/px4_mpc/setpoint_pose.
WARNING: The remote_control:=true was not yet tested on hardware.
To run the interface in simulation ensure that you are running the PX4 SITL simulation with crackle namespace. The remaining steps will be the same.