Skip to main content
. 2019 Nov 18;19(22):5029. doi: 10.3390/s19225029
Algorithm 2: SlaveApp (Virtual Environment Algorithm)
1 initialization;
while simulationIsRunning do ((
3  q^(n)readQuaternionFromNetwork();
4  e(n)getEulerAngles(q^(n));
5  moveVirtualArmHand(e(n));
6  f(n)detectCollision();
7  sendFeedbackToMaster(f(n));
end(