News for hackers. Stuff that matters.
Re:Autopilot: an open source driving agent by Voloskaya on Wednesday November 30, 2016 @02:47PM (#13074010)
Not everything seems to be open source. I can't seem to find the vision part, only the binary, see: https://github.com/commaai/openpilot/tree/master/selfdrive/v...
Re:Autopilot: an open source driving agent by Animats on Wednesday November 30, 2016 @04:46PM (#13075004)
Looking at the code, the good stuff is in the binary blob. The binary blob returns polygons for the edges of the road, with a probability for each. Path planning, in "pathplanner.py", consists of a probability-weighted average to find the center of the lane, using an assumption of 3.6m lane width. There's no map-building at all. It's purely reactive.

Speed control uses data from a radar and from the vision system. The path info is used to decide which targets the radar should consider important. The big thing seems to be identifying the "car ahead", if any, and maintaining an appropriate distance.

There's a hard-coded 6 minute timeout to make the driver take control once in a while.

On a good day on a well-marked freeway, this might work. It would be interesting to modify this to process pre-recorded dashcam data and see how well it tracks the road.

Re:Autopilot: an open source driving agent by bri3d on Wednesday November 30, 2016 @04:28PM (#13074850)
Based on a really cursory inspection of the binary and symbols, the binary seems to be an OpenCV project which uses some common image processing algorithms (Sobel edge detection, Hough to find straight lines).

There doesn't seem to be a large amount of embedded data indicative of a trained model or neural network.

So, it seems that the vision algorithms probably mirror those in the common literature and represent a reimplementation or iterative improvement on existing lane-finding systems.

More reversing would probably yield greater insight :)

Re:Autopilot: an open source driving agent by paulbaumgart on Wednesday November 30, 2016 @04:40PM (#13074959)
I think it's also using Qualcomm's FastCV, judging by the fcv* prefix on a lot of the symbols. Which makes sense, since FastCV is optimized for the Snapdragon processor in the OnePlus 3 phone they use.
Re:Autopilot: an open source driving agent by Voloskaya on Wednesday November 30, 2016 @04:41PM (#13074963)
I did the same thing as you, and found reference to RNNs, ReLus etc... That was the part I was really looking forward to see open sourced, but well :)
Re:Autopilot: an open source driving agent by commaai on Wednesday November 30, 2016 @05:01PM (#13075115)
There's a neural network in there :)
Re:Autopilot: an open source driving agent by bri3d on Wednesday November 30, 2016 @05:12PM (#13075198)
Ha, straight from the horse's mouth - I stand corrected :) I think this will be the first binary I've pulled apart with one, look forward to it!
Re:Autopilot: an open source driving agent by DrWhat on Thursday December 01, 2016 @07:07AM (#13078832)
visiond appears to be linked against libgsl.so. To my understanding, distributing a binary blob using the GNU Scientific Library is against the license of this library. That written there does not seem to be any symbol used from libgsl.so.
Re:Autopilot: an open source driving agent by espes on Thursday December 01, 2016 @03:04PM (#13082971)
It links agains the Adreno-GSL, part of the GPU driver, not the GNU Scientific library.