when you are taking the value from the April tag the getState().pose gets updated but once the april tag is not in the view , the robot shifts to the odometry (0,0,0). it doesn't keep account of the last pose at the same time, even after moving the robot the odometry of the robot is (0,0,0) while it works perfectly when the vision or the april tag is detected