ClemensElflein / open_mower_ros

Other
500 stars 124 forks source link

Leaving Emergency while mowing set the state to Docking #52

Closed alexvaut closed 3 months ago

alexvaut commented 1 year ago
2m commented 1 year ago

Yup, makes total sense! Wondering if all of the current state (current mowing area and progress of the area) is not lost, when mower enters emergency state.

ClemensElflein commented 1 year ago

True, thank you for reporting

olliewalsh commented 1 year ago

IIRC problem is that emergency aborts the current behavior - https://github.com/ClemensElflein/open_mower_ros/blob/55a3fde766d9d6906e915121c75ffac8c6628d1d/src/mower_logic/src/mower_logic/mower_logic.cpp#L387

@2m No state lost etc... it just goes into the next state i.e Docking

2m commented 1 year ago

I have also noticed this problem when mowing some bumpy grass for the first time yesterday. I have created a PR (https://github.com/ClemensElflein/open_mower_ros/pull/65) that removes the mentioned abortExecution() call. Let me know if that makes sence. I will try to test it out the mower with this change.