Closed yangwill closed 3 years ago
Does the race condition boil down to wanting to control the sequence between the output
and update
function calls? I think we could force output
to be called after update
by
I'm not sure, however, if this would address your race condition.
I fixed the race condition by using the same LcmSubscriberSystem
in both the driven loop and the other leaf systems. This is done without having to change the API for LcmDrivenLoop.
Blends efforts after a controller switch message. This is to smoothly transition between controllers.
One issue that still needs to be fixed:
discrete_state->get_mutable_vector(prev_efforts_index_)
is written with the new controller efforts instead of the old controller effortsOpen to any suggestions about a fix for this. It looks like there's a race condition, but I don't see a clear way to avoid it.
This change is