Open chcorbato opened 2 years ago
@chcorbato I've been thinking how to solve this but it is not that easy. The problem is that the Observer only handles components and the Wrapper only handles objectives. When a component is RECOVERED we have two options:
Extend the observer to also handle objectives:
Keep the structure as it is:
In both cases, once a FD is grounded, the objective status is reset to NONE in the ontology
https://github.com/meta-control/mc_mros_reasoner/blob/96982656fb03543f09e3b2da574dc444b4d38e8b/mros2_reasoner/mros2_reasoner/ros_reasoner.py#L381
This needs to be fixed simultaneously with logic in the Wrapper (monitors objectives) and in the MROS Observer (which apparently in ROS2 monitors components/nodes)