Replies: 3 comments 3 replies
-
Can you check the number of nodes in the expression graph? If high split up as functions and checkpoint. |
Beta Was this translation helpful? Give feedback.
1 reply
-
|
Beta Was this translation helpful? Give feedback.
2 replies
-
Thanks. So you are suggesting if I have a large symbolic equation like below which is dependent upon joint angles say q_1, ... q_5, in that case it is better to split up the large equation and create multiple casadi SX equations and then sum them up at the end to create the final equation. Is that correct?
Regards |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all,
I am trying to solve a MPC using second order dynamics model for a manipulator. The manipulator has 7 DOF and I used a tool box to derive the dynamics equation analytically which in includes the mass (M), coriollis (C) and gravity terms (G). I have ignored the friction terms as it is hard to get a very accurate model considering all the parameters. For the M (7 x 7) ,C (7 x 7 ) and G (7 x 1) matrices, I get 1000 of lines of symbolic expressions in terms of joint angles as below:
I have few questions regarding this:
a. I am creating casadi functions in a separate .py file using the expression as below and calling the f_xu into my main MPC loop where it is called to formulate the objective function. It takes a lot of time to compute the symbolic expressions if they are very large. Is there any suggestion on how can I make this process faster? I can ignore the negligible terms.
b. Is there any other alternative ways in casadi that I can leverage to solve the MPC without using analytical equations for the dynamics model. I have the numerical M, C, G values for a particular q and q_dot.
Beta Was this translation helpful? Give feedback.
All reactions