Skip to content

How to use this repositories to implement a mc_MPC_attitude_controller in ROS2 ? #91

@EchoSongguangyi

Description

@EchoSongguangyi

I aim to implement a Model Predictive Control (MPC) attitude controller (including angular rate control) for a multicopter. The controller will be deployed on a companion computer running ROS2, where it will compute torque and thrust commands and transmit them to the Pixhawk flight controller. The Pixhawk will then handle the mixer logic to generate motor signals.

Within the ROS2 framework, the controller’s inputs will include:

  • Current attitude and angular rates (measured states)
  • Desired attitude and angular rates (reference commands)

After computation by the MPC controller, the outputs (torque and thrust) will be sent to the Pixhawk.

In this architecture, the Pixhawk operates in its stabilized mode (i.e., without an outer position control loop), allowing me to evaluate the performance of the custom attitude controller in isolation.

Questions:

  1. Is this approach feasible for testing and validating a standalone attitude controller?
  2. How to use this repositories to implement a mc_MPC_attitude_controller in ROS2 ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions