ActuationModelFloatingBaseThrusters() with tilted thrusters #1375
Replies: 1 comment 1 reply
-
Can you share a snippet code of your custom function?
If you compare our thrust-mapping matrix
I don't understand your question, as the answer is clearly explained in the error message. However, we bind members of our C++ classes in a way that makes them Pythonic.
The doxygen documentation in some classes is indeed missing at the moment. However, the Python documentation tends to be reasonably updated. Feel free to help us document classes. |
Beta Was this translation helpful? Give feedback.
-
Hello,
I am implementing a MPC for an hexarotor with tilted propellers (tilthex) using Crocoddyl, taking inspiration from the quadrotor examples.
To define the actuation model through the python interface, I use
where
thrusters
is a list of 6crocoddyl.Thruster()
defined asR[i]
andp[i]
i=0,...,5 are orientations and positions of the thrusters, computed with a custom python function considering system parameters.Now the problem is, I compare the allocation matrix (mapping thrusts to body wrench) obtained with Crocoddyl (
actuation.Wthrust
) with the one computed using another custom function and I obtain different results if the tilting angle is not zero.I am pretty sure about the custom functions I am using for comparison because they have been extensively tested for simulations and experiments.
To investigate this behavior, I had a look at the code here from line 298, but it seems to me that the Crocoddyl function and the one I am using for comparison do the same operations to compute the allocation matrix, according to theory (see, for example, this paper, section 2.1), so I don't understand where the issue could be. I am not a Cpp expert, though.
Another question, more general, is how to understand the accessible variables to the
ActuationModelFloatingBaseThrusters
class. For example, I found that the allocation matrix isWthrust
only because I tried to accessactuation.W_thrust_
after looking at the code, and I received a hint in the error messageIn the documentation I don't find references to
Wthrust
, maybe I am looking in the wrong place?For the moment I managed to proceed forward with my project using
ActuationModelMultiCopterBase(state,alloc)
because it allows to specify the allocation matrix, but that class is deprecated and I would like to solve the doubts written above.Thanks,
Lorenzo
Beta Was this translation helpful? Give feedback.
All reactions