rotors_simulator icon indicating copy to clipboard operation
rotors_simulator copied to clipboard

Getting a controller, that assumes a cross configuration, working with a quadrotor that assumes plus configuration physics

Open JeffR1992 opened this issue 4 years ago • 3 comments

I've written an LQI controller that works well for the Hummingbird quadrotor in RotorS in its default plus prop configuration (as seen below): motororder-quad-plus-2d

However, I wanted to try and get the Hummingbird to instead fly in a cross prop configuration, and thus changed the controller to assume such a configuration (as seen below): motororder-quad-x-2d

But, when trying the modified controller on the Hummingbird, it fails to achieve even a stable hover. I'm assuming this is because the dynamic equations used in the physics for the Hummingbird assume a plus prop config, and so trying to control it using a controller that assumes a cross prop config causes an inconsistency between the controller and the physics. As such, I was wondering if there's a way to switch the Hummingbird's physics to also assume a cross prop config?

JeffR1992 avatar Jul 22 '20 23:07 JeffR1992

By modifying this file, in particular line 87, 108, and so on, you can change the position of the rotors in the 3D space. This is what do you need to change the shape of the quad-rotor, from a + to an X configuration.

gsilano avatar Jul 23 '20 07:07 gsilano

@gsilano I changed the lines mentioned in the xacro files, but that did not change the config. of my quad. I also took the multirotor_base file and changes the joint wrt base_link_inertia and connected all my rotors to base_link_inertia. This changed the configuration to a x config, but i suppose the default controller doesn't work well with x config.

Stavya1993 avatar Nov 13 '20 10:11 Stavya1993

Yes, you are right. I think the default controller does not work well with the new configuration, but you should take a look at the controller to be sure of this. I mean, the reference paper. It may be just a problem on how forces and momenta are translated in the propeller angular velocities. In this way, a quick change could fix the problem.

gsilano avatar Nov 13 '20 13:11 gsilano