@rdiankov cc @yoshikikanemoto @kanbouchou @ziyan Since d841c7633ec34cbd95c6486811eb2d5401b198ad commit, users can call KinBody::ExtractInfo() whenever body is not added to environment. This has a side effect that the transform is reset to identity because
KinBody::KinBodyStateSaver::~KinBodyStateSaver() does not do anything when body is not added to environment
KinBody::ExtractInfo() interanally set tranform to identity and DOFs to zeros in order to collect KinBodyInfo relying on KinBodyStateSaver
As a result, just calling KinBody::ExtractInfo() to a body which is not added to env resets its transform.
@rdiankov cc @yoshikikanemoto @kanbouchou @ziyan Since d841c7633ec34cbd95c6486811eb2d5401b198ad commit, users can call
KinBody::ExtractInfo()
whenever body is not added to environment. This has a side effect that the transform is reset to identity becauseKinBody::KinBodyStateSaver::~KinBodyStateSaver()
does not do anything when body is not added to environmentKinBody::ExtractInfo()
interanally set tranform to identity and DOFs to zeros in order to collectKinBodyInfo
relying onKinBodyStateSaver
As a result, just calling
KinBody::ExtractInfo()
to a body which is not added to env resets its transform.With this PR, we can restore at least transform and warn about DOF resetting.
related discussion