The Constellation program is a human spaceflight program aimed at gaining significant experience in operating away from Earth 's environment , developing technologies needed to open the space frontier and conducting fundamental science .