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

'gtsam.gtsam.ISAM2Params' object has no attribute 'setRelinearizeSkip' #2

Open
cmakelabs opened this issue Aug 6, 2024 · 1 comment

Comments

@cmakelabs
Copy link

Thank you for the useful repo, I am trying to run your code, but I encountered the following issue:

    self.__fusion_core = gtsam_fusion_core.GtsamFusionCore(params)
  File "/home/noetic/gtsam_fusion_ws/src/gtsam_fusion/scripts/gtsam_fusion_core.py", line 52, in __init__
    isam2_params.setRelinearizeSkip(params['relinearize_skip'])
AttributeError: 'gtsam.gtsam.ISAM2Params' object has no attribute 'setRelinearizeSkip'

I am using gtsam-4.2, although I have tried it with gtsam-4.1, but It did not work, and the same error still.

I would be really grateful if you could share thoughts on how to fix this issue

@PaulKemppi
Copy link
Owner

Sorry about the late response due to summer vacation. I quickly tested and at least with gtsam 4.1.0 installed with pip works:

import gtsam
p = gtsam.gtsam.ISAM2Params()
p.setRelinearizeSkip(10)
print(p)

Output:

type:              ISAM2GaussNewtonParams
wildfireThreshold: 0.001
relinearizeThreshold:              0.1
relinearizeSkip:                   10
enableRelinearization:             1
evaluateNonlinearError:            0
factorization:                     CHOLESKY
cacheLinearizedFactors:            1
enableDetailedResults:             0
enablePartialRelinearizationCheck: 0
findUnusedFactorSlots:             0

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