A recent video posted online shows a self-driving car being pulled over by police in San Francisco because it didn't have anyone behind the wheel.

In the video posted on April 1, the Cruise car pulls over to the side of the road and stops as a cop approaches the driver's side before pulling off further down the road.

Are you serious? A bystander is yelling in the video.

The car behaved as expected according to Cruise.

After yielding to the police vehicle, we pulled over to the safe location. Cruise said on its corporate account that an officer contacted Cruise personnel and no citation was issued.

The San Francisco Police Department has a dedicated phone number for officers to call when they pull over the company's vehicles. Requests for more information were not immediately returned.

The episode shows some of the situations that can occur when cars are not being driven by humans.

Cruise, a GM subsidiary, started to offer nighttime rides to the public earlier this year in San Francisco in driverless cars, although it is not yet charging and riders need to apply for a waitlist.

In San Francisco, members of a testing program will be able to get free rides in its cars, and in Arizona, it has completed tens of thousands of rides without a driver.

San Francisco has a deployment permit for Nuro, but the startup focuses on delivery, not a taxi service.