New German legal guidelines on driverless vehicles are prioritising the protection of people rather than property or animals.
Reuters reports that German regulators have been working on rules for how such vehicles should be programmed to deal with a dilemma, such as choosing between hitting a cyclist or accelerating beyond legal speeds to avoid an accident.
It says that under new ethical guidelines - drawn up by a government-appointed committee comprising experts in ethics, law and technology - the software that controls such cars must be programmed to avoid injury or death of people at all cost.
That means that when an accident is unavoidable, the software must choose whichever action will hurt people the least, even if that means destroying property or hitting animals in the road, a transport ministry statement showed.
The software may not decide on its course of action based on the age, sex or physical condition of any people involved.
"The interactions of humans and machines is throwing up new ethical questions in the age of digitalization and self-learning systems," German Transport Minister Alexander Dobrindt is quoted as saying. "The ministry's ethics commission has pioneered the cause and drawn up the world's first set of guidelines for automated driving."
Reuters adds that Germany earlier this year passed legislation under which a driver must be sitting behind the wheel at all times ready to take back control if prompted to do so by the autonomous vehicle, clearing the way for the development and testing of self-driving cars.