Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to compute the C matrix dynamics #1

Open
awkar opened this issue Jan 8, 2022 · 5 comments
Open

How to compute the C matrix dynamics #1

awkar opened this issue Jan 8, 2022 · 5 comments

Comments

@awkar
Copy link

awkar commented Jan 8, 2022

Nice work! I don't know how to get the matrix C, and you said "This function was generated by the Symbolic Math Toolbox version 7.1." in file C_Matrix_vars. Can you give me more details? Thank you.

@sandeshthapa
Copy link
Owner

sandeshthapa commented Jan 21, 2022

If you read any robot dynamics and control paper or book carefully, they should provide you complete equation to compute the inertia matrix M, once you get the M, you can compute the C matrix from partial derivative, check the following:

Robotics: Modelling, Planning and Control
by Bruno Siciliano and Lorenzo Sciavicco and Luigi Villani

http://www-clmc.usc.edu/~cs545/CS545_Lecture_10.pdf

image
image
https://github.com/yangmingustb/planning_books_1/blob/master/Siciliano%20-%202009%20-%20Robotics%20modelling%2C%20planning%20and%20control.pdf

@awkar
Copy link
Author

awkar commented Jan 22, 2022

Thank you for your replay.
I don't know how to get this function by Symbolic Math Toolbox.
C_Matrix_vars.m

But I found this MATLAB method when I read your code: matlabFunction
C_matrix_dynamics.m
Line 167

The book you mentioned is really helpful, and it is what I'm reading. Anyway, Your work has been very helpful to me.

@awkar awkar closed this as completed Jan 22, 2022
@sandeshthapa
Copy link
Owner

sandeshthapa commented Jan 23, 2022

Line 167 in
https://github.com/sandeshthapa/Adaptive_Sliding_Mode_Control_of_Aerial_Manipulator/blob/master/C_matrix_dynamics.m
gives you that function you need which is : C_Matrix_vars.m

Try that and let me know if it works.

@sandeshthapa
Copy link
Owner

You can also read about matlab function, how it is used to create embedded functions.
https://www.mathworks.com/help/symbolic/matlabfunction.html

@sandeshthapa sandeshthapa changed the title how to get the matrix C How to compute the C matrix dynamics Sep 1, 2022
@sandeshthapa sandeshthapa reopened this Sep 1, 2022
@sandeshthapa
Copy link
Owner

[email protected] check this please.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants