Auto differentiation failure for aba() #1660
Unanswered
FenglongSong
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I'm using
aba()
to calculate forward dynamics and I'm trying to get the derivatives using CppAd. I got the following error:GreaterThanZero cannot be called for non-parameters, Aborted (core dumped)
When I attempted to replace
return aba(mode, data, q, v, tau, fext)
by simply returning a zero vector, it will work. Therefore, I think the error is caused by an if/else branch in the implementation of aba:Would there be any easy fix for that?
Of course if I just want to get derivatives w.r.t some terms like q, v, tau, I can just use functions in
aba-derivatives.hpp
. But in my case, there're other things relying on CppAd so I'm seeking a solution for the auto diff method. Suggestions will be much appreciated!Beta Was this translation helpful? Give feedback.
All reactions