You can set the velocity of all the atoms (or a group of atoms) before
you invoke fix rigid/small. Then just use a thermostat and equilibrate
for a short time to bring the system to the desired temperature
with the rigid constraints in place.