symforce-org / symforce

Fast symbolic computation, code generation, and nonlinear optimization for robotics
https://symforce.org
Apache License 2.0
1.41k stars 145 forks source link

New to symforce #338

Closed BenedictChannn closed 1 year ago

BenedictChannn commented 1 year ago

Hi, I am new to this topic and currently exploring the use of SymForce library and would like some clarification on the use of it.

1) In the example on the robot 3D localization, the generate function generates a C++ code which has faster runtime. How do I then proceed to use this C++ code to solve the localization problem?

2) The generated .h header files all seem to include sym/pose3.h but I can't seem to find the path for pose3.h.

I am still very new to this and would appreciate some help on these. Also, is there anyone that I can contact (email) to gain a deeper understanding on this library and its applications? Thanks and have a great week ahead!

sudo-robot-destroy commented 1 year ago

This is related to #209

BenedictChannn commented 1 year ago

Thanks for the prompt response. I managed to solve my second issue.

For the first issue, is anyone from skydio or the community able to roughly explain/ go through the steps of solving the localization problem?

I would appreciate any help on this!

ryan-brott-skydio commented 1 year ago

What do we do with the generated header files to solve the localization problem in a faster runtime?

You can use them with the C++ optimization API (e.g., here and here).

Are we not able to solve the localization problem normally without the code generation portion?

Yes, that's what main() does in this file.