symforce icon indicating copy to clipboard operation
symforce copied to clipboard

codegen.Codegen accepts constants in input

Open bradley-solliday-skydio opened this issue 3 years ago • 0 comments

The Codegen constructor is happy to make a codegen object out of constants

co = codegen.Codegen(
    inputs=Values(a=geo.Rot3.from_storage([1, 2, 3, 4])),
    outputs=Values(out=geo.Rot3.from_storage([1, 2, 3, 4])),
    config=codegen.CppConfig(),
    name="test",
)

This is probably not behavior we want.

bradley-solliday-skydio avatar Jun 09 '22 00:06 bradley-solliday-skydio