>>Foundation trilogy<<
From whence came the
Encylopaedia Galactica (later outsold only by the Hitchhiker's Guide to the Galaxy
), Trantor(?) - the planet that's a city (Star Wars Corusant(?) is a direct lift) and a bunch of other stuff I can't remember. The only thing the movie had in common was the theme of 'detective' story which, essentially, Asimov's robot stories seemed to me to be about.
The whole point of the three laws of robotics, IIRC, was their infallibility - most of the robot books explore them at some point or other so how the movie suits could have decided that was a usable plotline defies credibility.