-
Notifications
You must be signed in to change notification settings - Fork 45
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
Problem with biorbd.VecBiorbdMuscleStateDynamics.setActivation() income #96
Comments
Hi @Kilperic13 Since you are using PyCharm, I assume you are using the Python binder? What operating system are you using? What do you call the "last version"? It seems strange to me that you would use directly
Thanks! |
Hi @pariterre , Yes, I am using the Python 3.7.6 binder. My operating system is Ubuntu (Linux). You are exactly right, I declare it to a variable and then call the setActivation method.
But if you replace the 'for' loop by this, it doesn't work too :
Thank you for your answers and help |
Hi there, |
Hello, Thank you for the problem, this function is work for me. |
Hi !
I installed the last version of rbdl with Casadi and biorbdl too (branch master and branch casadi. The two version are update with the version on github). I work on PyCharm editor (version 2019.3.3).
With this version, I can manipulate some function with MX argument, like the function biorbd.Model.ForwardDynamics(), which take in argument my state and my torque (in MX type), and give me back the derivation of my state.
I would like to use the function biorbd.VecBiorbdMuscleStateDynamics.setActivation() with MX argument too. But my editor send me this Error Message : "Wrong number or type of arguments for overloaded function 'StateDynamics_setActivation'." It is waiting for a double argument.
So, I look at in " biorbd/include/Muscles/StateDynamics.h " on github in Casadi branch for the setActivation function. It is waiting for " biorbd::utils::Scalar val ". In " biorbd/include/Utils/Scalar.h " (Casadi branch) the type of Scalar is define like this : "RigidBodyDynamics::Math::Scalar Scalar". In " rbdl-casadi/include/rbdl/rbdl_math.h " (branch master), the Scalar is define like this : "Vector1_t Scalar" and Vector1_t is define like this : "RBDLCasadiMath::MX_Xd_scalar Vector1_t".
So, logicaly, setActivation function can use MX argument. I think there is a problem so.
The text was updated successfully, but these errors were encountered: