Closed Snowrock closed 2 years ago
Thanks for raising this issue @Snowrock! Unfortunately, Ruckig::degrees_of_freedom
was never intended to be changed after constructing the Ruckig object and should therefore be const
. Therefore, if you want to change the DoFs, you would need to initialize a new instance with Ruckig(DoFs, delta_time);
.
Btw, #118 is also relevant for this. I'm in favor of closing this issue and keep #118.
【邮件自动回复】您好,邮件已收到,我将尽快给您进一步回复。 祝您:工作愉快,生活美满!
I've now made Ruckig::degrees_of_freedom
const
, so this issue should not occur anymore. Please initialize a new Ruckig instance with the correct DoFs instead. Thanks!
【邮件自动回复】您好,邮件已收到,我将尽快给您进一步回复。 祝您:工作愉快,生活美满!
In following code, there maybe a bug cause changing of
InputParameter::synchronization
never take effect:When the
Ruckig::degrees_of_freedom
is changed to smaller than its initial value, if we want to switch the InputParameter::synchronization to Phase, it will never take effect. Asstd::all_of(...)
will check all the element ofinp_per_dof_synchronization
even the dof is not actived.So I try to fix it as below, please check it!