A robot knows where a pallet is in the room and wants to know where it will appear in the camera image, to look there first. The numbers it computes put the pallet in a corner, or on the wrong side of the picture, or in an image it is not even in front of.
You will see how size depends on distance and focal length, write the projection, and then add the camera pose that turns world coordinates into camera coordinates.