src/planners/query_strategy.py
def query_algorithm_interface(self, timestamp):
        """
        This method for the main algorithms uses the states
        from synthesizer to generate boolean queries map to constraints
        :return: dictionary of keyframes mapped to constrains
            and their truth value
        """
        # states to keyframe transformation
        key_frames = self.get_keyframes(self._states_of_interest)

        for key_frame in key_frames:
            self._queries[key_frame] = self.get_constraints(key_frame)

        # TODO: Generate this question using the above methods
        query_question = "Should I have oriented the cup upwards?"
        return query_question

        This method for the main algorithms uses the states
        from synthesizer to generate boolean queries map to constraints
        :return: dictionary of keyframes mapped to constrains
            and their truth value
        
This method for the main algorithms uses the states
from synthesizer to generate boolean queries map to constraints
This method for the main algorithms uses the states from synthesizer to generate boolean queries map to constraints
def query_algorithm_interface(self, timestamp):
        key_frames = self.get_keyframes(self._states_of_interest)
        for key_frame in key_frames:
            self._queries[key_frame] = self.get_constraints(key_frame)
        query_question = "Should I have oriented the cup upwards?"
        return query_question
def query_algorithm_interface ( self , timestamp ) : key_frames = self . get_keyframes ( self . _states_of_interest ) for key_frame in key_frames : self . _queries [ key_frame ] = self . get_constraints ( key_frame ) query_question = "Should I have oriented the cup upwards?" return query_question
This method for the main algorithms uses the states
from synthesizer to generate boolean queries map to constraints
This method for the main algorithms uses the states from synthesizer to generate boolean queries map to constraints
"""
        This method for the main algorithms uses the states
        from synthesizer to generate boolean queries map to constraints
        :return: dictionary of keyframes mapped to constrains
            and their truth value
        """ # states to keyframe transformation # TODO: Generate this question using the above methods
dictionary of keyframes mapped to constrains
and their truth value
dictionary of keyframes mapped to constrains and their truth value
self
timestamp