def transform_and_fetch_position()

in fairmotion/tasks/clustering/features/manual.py [0:0]


    def transform_and_fetch_position(self, j):
        if j == "y_unit":
            return [0, 1, 0]
        elif j == "minus_y_unit":
            return [0, -1, 0]
        elif j == "zero":
            return [0, 0, 0]
        elif j == "y_min":
            return [
                0,
                min(
                    [y for (_, y, _) in self.global_positions[self.frame_num]]
                ),
                0,
            ]
        return self.global_positions[self.frame_num][
            self.joints.index(self.joint_mapping[j])
        ]