odometry and pid are different things, odometry is a method that you can use to get accurate data about your robot, specifically the position and rotation on the field. PID is a method of controlling your robot so you can use that data to make the robot move where you want to.