Planetesimals are objects of some Km of diameters that are thought to have formed during the solar system's formation.
Asteroids and comets are leftover planetesimals that have not been incorporated into a planet during this period