Live data from Hacker News

George Hotz is on a hacker crusade against the ‘scam’ of self-driving cars

theverge.com

71–80 of 147 posts

Re: George Hotz is on a hacker crusade against the ‘scam’ of self-driving cars

#71
post #30

Here's the low-level controller for Comma AI's self-driving software. Lateral and longitudinal control, as well as actuator command are contained within. Their low level control is done in Python, on top of Android, on a smartphone. No further comment, your honor. https://github.com/commaai/openpilot/tree/devel/selfdrive/co...

Ummm... If you look in the actual lib/ directory where the work happens, you will see a bunch of high-performance C written in and generated by Acado, which is a very efficient optimization framework. It does look like there is a bunch of python logic for managing that controller, but a significant amount of work seems to have gone into performance optimization. I am curious how they prevent the Android GC from causi…

There's no Android GC, there's a Java GC. Python on Android isn't written in Java, it's CPython, written in C.

Python has a GC as well, but we turn it off for the control loop processes. https://github.com/commaai/openpilot/blob/devel/selfdrive/co...

Haters love to bring up the Python, but they never stick around long enough to explain exactly why it's a problem.

Re: George Hotz is on a hacker crusade against the ‘scam’ of self-driving cars

#72
post #62

Earlier quoted context omitted.

It sounds to me like you don't understand how little performance you actually need for this kind of stuff. People have been writing effective autopilot software for decades using hardware that wasn't even particularly fast at the time and may as well be a pile of sand today. What exactly do you think that that code needs to do? I promise that Python on a new smartphone can do way more now than we could do 20 years ag…

I think OP's point is about the latency from all the layers. At 70 mph, where 100ms is 3m, this is a problem for a control system.

Human latency is about 250ms.

Re: George Hotz is on a hacker crusade against the ‘scam’ of self-driving cars

#73
post #30

Here's the low-level controller for Comma AI's self-driving software. Lateral and longitudinal control, as well as actuator command are contained within. Their low level control is done in Python, on top of Android, on a smartphone. No further comment, your honor. https://github.com/commaai/openpilot/tree/devel/selfdrive/co...

In the 1980's the backup flight control software for landing the space shuttle ran on a HP-41 calculator, though they never had to use it AFAIK, with the multiple redundant onboard computers.

Love to study those projects in more details - Not just the code, but also the design, testing, validation processes.

Re: George Hotz is on a hacker crusade against the ‘scam’ of self-driving cars

#74
post #30

Here's the low-level controller for Comma AI's self-driving software. Lateral and longitudinal control, as well as actuator command are contained within. Their low level control is done in Python, on top of Android, on a smartphone. No further comment, your honor. https://github.com/commaai/openpilot/tree/devel/selfdrive/co...

Ummm... If you look in the actual lib/ directory where the work happens, you will see a bunch of high-performance C written in and generated by Acado, which is a very efficient optimization framework. It does look like there is a bunch of python logic for managing that controller, but a significant amount of work seems to have gone into performance optimization. I am curious how they prevent the Android GC from causi…

The Android ART GC doesn't cause "long pauses".

https://www.youtube.com/watch?v=iFE2Utbv1Oo

Re: George Hotz is on a hacker crusade against the ‘scam’ of self-driving cars

#75

If you are interested in learning more about George, you should listen to him talking at Mapbox's Locate conference with the Mapbox CEO, Eric Gundersen [1]. Its another example of George being George. I just happened to be called out during the talk, but overall rather enjoyed it. [1] https://www.youtube.com/watch?v=N9WxlR1ZTZc

I prefer this one -> https://www.youtube.com/watch?v=9iUvuaChDEg

The original rap diss of Sony who was suing him, actually badass :)

Re: George Hotz is on a hacker crusade against the ‘scam’ of self-driving cars

#76
post #71

Earlier quoted context omitted.

Ummm... If you look in the actual lib/ directory where the work happens, you will see a bunch of high-performance C written in and generated by Acado, which is a very efficient optimization framework. It does look like there is a bunch of python logic for managing that controller, but a significant amount of work seems to have gone into performance optimization. I am curious how they prevent the Android GC from causi…

There's no Android GC, there's a Java GC. Python on Android isn't written in Java, it's CPython, written in C. Python has a GC as well, but we turn it off for the control loop processes. https://github.com/commaai/openpilot/blob/devel/selfdrive/co... Haters love to bring up the Python, but they never stick around long enough to explain exactly why it's a problem.

Because it's not a statically typed language for the most part, which brings in an entire class of bugs of its own. It's also an extremely mutable language.

Great for scripts, but there is a reason why most large companies start bolting on types on whatever dynamic language they started with.

Re: George Hotz is on a hacker crusade against the ‘scam’ of self-driving cars

#77
post #31

Earlier quoted context omitted.

Not disputing your claim, but how did you determine the comma Ai system was on par with that of autopilot and super cruise? In general, are there any standardized tests for self driving cars, like car safety ratings but for the driving part? Basically, is there even a way to measure how good a driving system is?

Not really. It's mostly subjective, but a good metric is time between user action needed. We did 2 hours of press demos on highways without a single one. (usually it's about an hour) In addition to us, we have a community of users on slack with thousands of miles of experience with each system. I think most would generally agree with the quality assessment. You'll also find a bunch of YouTube videos comparing them.

A good metric would be collision avoidance in a multitude of realistic tests, simulating all kinds of dynamic obstacles and vehicle error modes.

Re: George Hotz is on a hacker crusade against the ‘scam’ of self-driving cars

#79
post #71

Earlier quoted context omitted.

Ummm... If you look in the actual lib/ directory where the work happens, you will see a bunch of high-performance C written in and generated by Acado, which is a very efficient optimization framework. It does look like there is a bunch of python logic for managing that controller, but a significant amount of work seems to have gone into performance optimization. I am curious how they prevent the Android GC from causi…

There's no Android GC, there's a Java GC. Python on Android isn't written in Java, it's CPython, written in C. Python has a GC as well, but we turn it off for the control loop processes. https://github.com/commaai/openpilot/blob/devel/selfdrive/co... Haters love to bring up the Python, but they never stick around long enough to explain exactly why it's a problem.

Android is not typically a realtime OS. The root of the point, about uncontrolled pauses, is valid IMO.

Re: George Hotz is on a hacker crusade against the ‘scam’ of self-driving cars

#80
When George demonstrated his first model I showed a friend who designs safety critical systems. To paraphrase he said, that of course you can hack something together in a weekend that does this.

However a analysing a million edge cases, making sure all failures fail in a safe way takes a lot of time and knowledge.

It made me think that this is a great demonstration of the difference between hobbyist hacking and professional engineering.

Post reply on HN