i-radwan / Hive_frontend

The frontend of the Hive system. Includes 2D simulators, system control center.
1 stars 0 forks source link

Activating a robot resumes the last action #17

Closed i-radwan closed 5 years ago

i-radwan commented 5 years ago

As we've discussed, this may cause problems for the ACK mechanism. The backend has to resend the last action again. This separation may give us more control.

SharkMan201 commented 5 years ago

so what should be done exactly ? cancel the move and wait for another event from you ?

i-radwan commented 5 years ago

Yes

On Thu, Jun 13, 2019 at 09:09 Abdelrahman Eed notifications@github.com wrote:

so what should be done exactly ? cancel the move and wait for another event from you ?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/i-radwan/Hive_frontend/issues/17?email_source=notifications&email_token=AAMPR23KV4YIONEVGVID5RLP2HXCXA5CNFSM4HXVSVPKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXSXWHQ#issuecomment-501578526, or mute the thread https://github.com/notifications/unsubscribe-auth/AAMPR24T2USASLVWXZWJOQ3P2HXCXANCNFSM4HXVSVPA .

-- Best regards, Ibrahim Radwan

SharkMan201 commented 5 years ago

I have been having an issue regarding this case since I am stateless, if a robot fails while carrying a rack then gets fixed I shouldn't be able to know if the robot was holding a rack or not (I do know now but I feel like I shouldn't), and also another problem that I am facing right now regarding robot flashing color if a robot fails it flashes red when it resumes it should stop flashing, unless I was holding a rack or I was charging, but that makes me have to add a lot of internal variables for the robot to keep track of its state. I am not sure how to do it but is it possible when a robot is fixed that I receive OBJECT_BIND/OBJECT_LOAD again ?