-
Notifications
You must be signed in to change notification settings - Fork 11
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
GTDKeyformatter is not working #131
Comments
which function are you using? There's a wrapped function |
I see. It should also be compatible with |
I'm wondering how it is directly bounded with the default |
I guess look at the way how GTSAM does it? I believe it takes the key formatter as a default argument so we need to figure out how to achieve that here. |
python implicit print ( GTDynamics/gtdynamics/cablerobot/factors/CableLengthFactor.h Lines 78 to 83 in 5d22ebd
you can use the gtdynamics formatter by default, but i guess you couldn't override nonlinearfactorgraph's print. Another annoyance is that calling NonlinearFactorGraph::print will then pass on its KeyFormatter (gtsam default key formatter) on to all its children so printing the graph will use the wrong formatter but printing out a single factor works. i.e.
A couple potential solutions would be to: |
Ah thanks for the reminder @gchenfc. Yeah the wrapper defines the This is when I wish C++ supported protocol based inheritance. |
If I print out the graph in
test_dynamics_graph.py
, I get the following which doesn't have the keys correctly formatted.The text was updated successfully, but these errors were encountered: