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

In python, custom factor without Jacobian #1662

Open
goodgoodliving opened this issue Oct 27, 2023 · 0 comments
Open

In python, custom factor without Jacobian #1662

goodgoodliving opened this issue Oct 27, 2023 · 0 comments

Comments

@goodgoodliving
Copy link

          > You create a custom function that computes `z-f(x)`. Then, in the `evaluateError` function of your customized factor, you can call the `numericalDerivative` function to compute the Jacobian numerically. Examples in `testNumericalDerivative.cpp` will help you get familiar with the function. 

@yetongumich
Hello, may I ask if it's possible to automatically solve for the Jacobian using GTSAM if I'm implementing a custom factor in Python, where I only know the error function and am not familiar with how to perform the Jacobian calculation? Are there relevant interfaces for this in GTSAM?

Originally posted by @goodgoodliving in #1547 (comment)

@goodgoodliving goodgoodliving changed the title In Python, I've defined a custom factor but I'm unsure how to compute the Jacobian matrix. Can GTSAM automatically handle differentiation? Are there relevant interfaces for this? In python Custom factor without Jacobian Oct 27, 2023
@goodgoodliving goodgoodliving changed the title In python Custom factor without Jacobian In python, custom factor without Jacobian Oct 27, 2023
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

1 participant