We discuss a possible one-dimensional trapping and cooling of atoms and molecules due to their non-resonant interaction with the counter-propagating light pulses trains. The counter-propagating pulses form a one-dimensional trap for atoms and molecules, and properly chosen the carrier frequency detuning from the transition frequency of the atoms or molecules keeps the "temperature" of the atomic or molecular ensemble close to the Doppler cooling limit. The calculation by the Monte-Carlo wave function method is carried out for the two-level and three-level schemes of the atom's and the molecule's interaction with the field, correspondingly. The discussed models are applicable to atoms and molecules with almost diagonal Frank-Condon factor arrays. Illustrative calculations where carried out for ensemble averaged characteristics for sodium atoms and SrF molecules in the trap. Perspective for the nanoparticle light pulses's trap formed by counter-propagating light pulses trains is also discussed.