Closed Stefanos19 closed 9 years ago
Okay, I think I got this fixed.
I fixed the stop method to actually unsubscribe: https://github.com/personalrobotics/ada_meal_scenario/blob/feature/action_framework/src/actions/detect_morsal.py#L57
I also fixed a bug in the detector that was causing many kinbodies representing the morsal to be added to the environment.
Finally, I added a dummy morsal detector so that we can test the callback in pure simulation mode:
Give this fix a shot and let me know if it is still broken.
Great, that fixed it.
It appears that the pose of the morsel continues to change after the robot starts moving to grab it. That's because the callback continues to get called after the bite-grabbing action: https://github.com/personalrobotics/ada_meal_scenario/blob/feature/action_framework/src/actions/detect_morsal.py#L77