Hybrid energy-shaping swing-up and LQR balance controller for a Furuta rotary inverted pendulum.
More...
|
| controller_interface::CallbackReturn | on_init () override |
| controller_interface::InterfaceConfiguration | command_interface_configuration () const override |
| controller_interface::InterfaceConfiguration | state_interface_configuration () const override |
|
controller_interface::CallbackReturn | on_configure (const rclcpp_lifecycle::State &previous_state) override |
|
controller_interface::CallbackReturn | on_activate (const rclcpp_lifecycle::State &previous_state) override |
|
controller_interface::CallbackReturn | on_deactivate (const rclcpp_lifecycle::State &previous_state) override |
| controller_interface::return_type | update (const rclcpp::Time &time, const rclcpp::Duration &period) override |
|
bool | is_balancing () const |
| | Returns true if currently in LQR balancing regime.
|
|
CONTROLLER_INTERFACE_PUBLIC void | assign_interfaces (std::vector< hardware_interface::LoanedCommandInterface > &&command_interfaces, std::vector< hardware_interface::LoanedStateInterface > &&state_interfaces) |
|
CONTROLLER_INTERFACE_PUBLIC void | release_interfaces () |
|
virtual CONTROLLER_INTERFACE_PUBLIC return_type | init (const std::string &controller_name) |
|
CONTROLLER_INTERFACE_PUBLIC std::shared_ptr< rclcpp::Node > | get_node () |
| template<typename ParameterT> |
| auto | auto_declare (const std::string &name, const ParameterT &default_value) |
| | Declare and initialize a parameter with a type.
|
| CONTROLLER_INTERFACE_PUBLIC const rclcpp_lifecycle::State & | configure () |
|
CONTROLLER_INTERFACE_PUBLIC const rclcpp_lifecycle::State & | cleanup () |
|
CONTROLLER_INTERFACE_PUBLIC const rclcpp_lifecycle::State & | deactivate () |
|
CONTROLLER_INTERFACE_PUBLIC const rclcpp_lifecycle::State & | activate () |
|
CONTROLLER_INTERFACE_PUBLIC const rclcpp_lifecycle::State & | shutdown () |
|
CONTROLLER_INTERFACE_PUBLIC const rclcpp_lifecycle::State & | get_state () const |
|
CONTROLLER_INTERFACE_PUBLIC unsigned int | get_update_rate () const |
Hybrid energy-shaping swing-up and LQR balance controller for a Furuta rotary inverted pendulum.
This controller orchestrates two operating regimes:
- Non-linear Energy Shaping (Swing-up): Bang-bang energy pump driving the pendulum mechanical energy toward upright potential energy, combined with bounded arm-centering PD.
- Full-State LQR (Balancing): Regulates the arm position, arm velocity, pendulum angle, and pendulum velocity around the unstable upright equilibrium (q2 = 0).
Transitions between swing-up and balance are protected by candidate angular windows, actuator command feasibility gating, soft-start ramp blending, and fall hysteresis.