Can you go and check the following class implementation?
If you investigate and try to understand the above module, then you will know how to implement your own solution. Just look at what I did with the
Note: the 2 functions
ifMutexRelease are just some lazy solutions to do mutex around the line follower in this case. Generally, I’d have gone with what’s in
di_mutex.py, but since we used the above functions from ever since, the incentive to change that is rather low, since it would break the consistency across most of our modules. The bottom line is that it doesn’t affect the user and we can always do it later on.
Let me know if you now know how to do it.