The astronauts flying again from Cape Canaveral are getting a lot of attention. So are the celebrities and wealthy entrepreneurs plunking down millions to join suborbital flights that touch the edge of space and are replayed in prime time.

But don’t forget about the robots. They are having a landmark year, too.

Late Tuesday night, NASA embarked on another groundbreaking mission — this one designed to eventually save Earth from a killer asteroid by testing whether a spacecraft can nudge a celestial body in a way that will alter its orbit. It is the latest in a series of missions that this year have included a rover looking for signs of life on Mars, a small helicopter that continues to fly through the Red Planet’s skies and the possible launch of the most powerful telescope ever to go to space, capable of looking back in time to the early days of the universe.

Tuesday’s launch at 10:21 p.m. Pacific time — 1:21 a.m. Wednesday on the East Coast — saw a SpaceX Falcon 9 rocket lift off from Vandenberg Space Force Base in California. On its tip it carries a refrigerator-sized spacecraft that will fly 6.7 million miles, hunting a small asteroid about the size of a football stadium before going kamikaze and crashing into it at 15,000 mph, probably in September.

If everything goes as planned, the impact will slow the asteroid by a fraction of a millimeter per second. That, scientists hope, will be enough that over time, in the vastness of space, it will alter the asteroid’s trajectory significantly.

Dimorphos, the asteroid in NASA’s sights, poses no danger to Earth. But it was chosen as the target for the DART mission (that stands for Double Asteroid Redirection Test) by members of an elite NASA team known as the Planetary Defense Coordination Office — whose task isn’t exploring space but defending Earth.

It is a “first test of planetary defense,” Thomas Zurbuchen, the associate administrator of NASA’s science mission directorate, told reporters Monday. “What we’re trying to learn is how to deflect a threat that would come in.”

There are lots of rocks hurtling through space large enough to survive the fiery plunge through Earth’s atmosphere. NASA does its best to track them, but estimates it only knows of about 40 percent of the asteroids that could pose a danger. It’s working on adding more space rocks to its catalogue, and in the meantime, trying to figure out how to make sure none hit Earth.

“We have not yet found any significant asteroid impact threat to Earth, but we continue to search for that sizable population we know is still to be found,” Lindley Johnson, planetary defense officer at NASA Headquarters, said in a statement. “Our goal is to find any possible impact, years to decades in advance, so it can be deflected with a capability like DART that is possible with the technology we currently have.”

He said that the agency is developing a space-based infrared telescope, known as the Near-Earth Object Surveyor Mission, that would launch later this decade and accelerate NASA’s ability to discover hazardous asteroids.

Unlike other natural disasters, such as hurricanes or earthquakes, humans could, NASA says, do something about killer asteroids.

In an interview, NASA Administrator Bill Nelson said an asteroid impact could have enormous consequences and even threaten humans’ ability to live on Earth. “We know a six-mile wide asteroid hitting what is today the Yucatán Peninsula was what wiped out much of life on Earth, including the dinosaurs,” he said.

The redirect mission follows another program that last year reached another near-Earth asteroid. After studying the Bennu asteroid for about two years, a spacecraft grabbed a sample from the surface with a robotic arm and is now on its way back to Earth. It would be the first time NASA has ever grabbed a sample from an asteroid, which could shed light on how the universe was formed.

This week, NASA also celebrated the 16th flight of Ingenuity, the four-pound helicopter that flew the first powered flight of an aircraft on another planet earlier this year in what NASA said was a “Wright brothers moment.” Though it was only supposed to fly a handful of times, the sprite of a chopper has kept going, to the delight of NASA engineers.

Nelson said he was “very pleasantly surprised” and proud of “this little helicopter that we didn’t even know would fly in an atmosphere that is 1 percent of Earth’s atmosphere. And now it’s not only a demonstration, it’s a scout.”

Members of NASA's Ingenuity program shared the full video of the successful flight of the helicopter on the surface of Mars on April 19. (NASA TV)

Those events occurred in a year when NASA’s astronauts were launching with regularity from U.S. soil for the first time since the space shuttle was retired in 2011. They were joined by suborbital tourism flights from Richard Branson’s Virgin Galactic and Jeff Bezos’s Blue Origin, which announced Tuesday that it would add Michael Strahan, the TV personality, to the ranks of its space passengers in December. (Bezos owns The Washington Post.)

“I’m super excited about all the successes on the human spaceflight side,” Zurbuchen said. “We at science are huge champions for that, and we sit there glued to the TV, just the same way as everybody else.” But he said that “this has been a year of science, though, in an amazing fashion.”

He noted that NASA landed its Perseverance rover on Mars, and it is gearing up not only to return astronauts to the lunar surface, but first send a series of robotic spacecraft there. By the end of 2023, it intends to send the first mobile robotic mission there to analyze ice at the lunar south pole to help NASA create maps of the resource.

It is also scheduled to launch the James Webb Space Telescope, which would be stationed about 1 million miles from Earth and “explore every phase of cosmos history — from within our solar system, to the most distant observable galaxies in the early universe, and everything in between,” NASA said.

After years of delays, the telescope was set to launch on an Ariane 5 rocket from French Guiana on Dec. 18. But NASA has delayed that flight until at least Dec. 22 after “a sudden, unplanned release of a clamp band” that was securing the telescope to its spot inside the nose cone of the rocket. NASA is now investigating to make sure “the incident did not damage any components,” the space agency said in a statement.

Zurbuchen said they were taking every precaution to ensure the $10 billion telescope is safe before launching, and he said he hoped that “in a few days we’ll be in good shape.”