Planetary astronomy :from ancient times to the third millennium