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

LocalParameterization exception #19

Open
lsorgi opened this issue Jan 9, 2023 · 0 comments
Open

LocalParameterization exception #19

lsorgi opened this issue Jan 9, 2023 · 0 comments

Comments

@lsorgi
Copy link

lsorgi commented Jan 9, 2023

I can't manage to make the LocalParameterization work.

Here is my LocalParameterization class definition

class SO3Parameterization(PyCeres.LocalParameterization):

def __init__(self):
    super().__init__()

def Plus(self, x, delta, x_plus_delta):
    #...compute step
    return True

def GlobalSize(self):
    return 4

def LocalSize(self):
    return 3

def ComputeJacobian(x, jacobian):
    # ...compute Jacobian
    return True

when I try to add the parameter block to the problem an exception is raised.

  problem.AddParameterBlock(r_params, 4, SO3Parameterization())

Am I using the LocalParameterization incorrectly?

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