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

Allocate VectorX members of output LCM types in C++ #194

Open aaron-skydio opened 2 years ago

aaron-skydio commented 2 years ago

LCM types that contain dynamic size vectors (which is what we currently generate for vectors with >9 elements) aren't allocated before being filled out / returned from generated functions