News for hackers. Stuff that matters.
Re:Autopilot: an open source driving agent by randomdata on Wednesday November 30, 2016 @02:50PM (#13074050)
> these kinds of applications.

As in research projects, which this project expressly states that it is? What are those reasons? It seems like being able to test theories as quickly and cheaply as possible is the top priority. If Python, a general purpose OS, and a CAN-USB adapter is sufficient to conduct the research and satisfies those attributes, it seems like the perfectly logical way forward.

I understand why you would want to move to such systems you describe once your research has concluded and you are now building something for production, but that is not the intent of this project, at least at this stage. It specifically says so.

Re:Autopilot: an open source driving agent by bdrool on Wednesday November 30, 2016 @10:06PM (#13076885)
> As in research projects, which this project expressly states that it is?

This is from comma.ai, who famously tested on public roads with a reporter in the car and very little prior testing ("the first time it worked was this morning").[1]

[1] http://www.bloomberg.com/features/2015-george-hotz-self-driv...

Re:Autopilot: an open source driving agent by ryaneager on Wednesday November 30, 2016 @03:05PM (#13074211)
Why wouldn't you do the research on a platform that could actually be deployed? Build the core using the proper tools and techniques. Any bug in a system like this could be life threatening at worst. Wouldn't you want to use the research phase to help eliminate such bugs?

Unless you're not planning on ever releasing then a platform like this makes sense for strictly research, but Comma AI did plan on releasing their product until they got shut down.

Re:Autopilot: an open source driving agent by randomdata on Wednesday November 30, 2016 @05:23PM (#13075272)
Research implies that you don't know the outcome and are going to be throwing away everything that doesn't pan out. Without knowing the outcome, how can you really be sure of what you need? You might think you need a CPU-based system but learn that GPUs are necessary, for instance. If you can start with cheap off-the-shelf components, at least you don't have much to loose when it is time to throw it away. If you're spinning your own boards, or heavily tied to expensive development kits, that becomes much harder to swallow. Especially for a startup with limited resources.

> Wouldn't you want to use the research phase to help eliminate such bugs?

I wouldn't think so. Spending your time fixing bugs in something you realize could have been done better another way, which ends up getting thrown out, seems like a waste of time. The words research and development are often paired together because it is a two step process, where development comes after you have learned what can be done.

Re:Autopilot: an open source driving agent by MichaelBurge on Wednesday November 30, 2016 @10:06PM (#13076883)
As an example of some requirements, any recursion is banned unless accompanied by a termination proof that keeps track of stack size. No calls to malloc() or free() are allowed, and so any library you might use that allocates memory is banned.

It's far easier to get the code working in something like Python, and then rewrite it in safety-critical C later. And the kinds of people who can write self-driving cars in Python are using very different skills than the kinds who can write safety-critical C, so it might not even be the same person.

Re:Autopilot: an open source driving agent by time4tea on Thursday December 01, 2016 @03:06AM (#13077986)
Hmm. Clearly this code is miles away from MISRA compliance (although compliance doesn't mean that the software is any good)

Even so, sorry to say, the code is miles away from any decent software standard. It is almost exactly what you might call CRAP (classes really a procedure) and mixes responsibilities all over the shop. Little attempt is made to abstract behaviour, and there are differing units, and random multipliers all over the place. Using c++ and python, both of which are OO many classes of error could be avoided if any actual OO features were used, even if MISRA was not a target, sadly the code doesn't do that.

This has all the hallmarks of software that doesnt know if it's doing m/s or mph.

Re:Autopilot: an open source driving agent by JoshTriplett on Thursday December 01, 2016 @12:27AM (#13077388)
Exactly; the delta from Python to C is smaller than the delta from C to "safety-critical real-time C". Might as well prototype and simulate in a higher-level language that's obviously not the final one, rather than writing in a language someone might mistake for production and trying to incrementally evolve it into a full safety-critical version.
Re:Autopilot: an open source driving agent by throwaway729 on Wednesday November 30, 2016 @03:12PM (#13074274)
> once your research has concluded and you are now building something for production

I think the rub is that this code appears to be intended for "production" (or at least use on public roads), given the fact that it's published by a company that has tested its products on open roads?

Re:Autopilot: an open source driving agent by 56245623456 on Wednesday November 30, 2016 @03:21PM (#13074353)
It explicitly states: "THIS IS ALPHA QUALITY SOFTWARE FOR RESEARCH PURPOSES ONLY. THIS IS NOT A PRODUCT. YOU ARE RESPONSIBLE FOR COMPLYING WITH LOCAL LAWS AND REGULATIONS. NO WARRANTY EXPRESSED OR IMPLIED."
Re:Autopilot: an open source driving agent by throwaway729 on Wednesday November 30, 2016 @03:44PM (#13074518)
And yet comma ai were definitely testing their products on public roads, products which were presumably running this code.
Re:Autopilot: an open source driving agent by mikeash on Wednesday November 30, 2016 @04:20PM (#13074784)
This would certainly explain why they folded so quickly once the NHTSA started asking questions.
Re:Autopilot: an open source driving agent by throwaway729 on Wednesday November 30, 2016 @06:38PM (#13075712)
Note: other comments in this thread indicate my assumption that comma ai was testing vehicles running this code was a bit hasty.
Re:Autopilot: an open source driving agent by __jal on Wednesday November 30, 2016 @04:38PM (#13074934)
...Which is why it says "YOU ARE RESPONSIBLE FOR COMPLYING WITH LOCAL LAWS AND REGULATIONS".
Re:Autopilot: an open source driving agent by jakevn on Wednesday November 30, 2016 @10:11PM (#13076912)
Ah yes, laws are definitely the determinate for safety. This is why texting and driving is illegal everywhere.
Re:Autopilot: an open source driving agent by vacri on Wednesday November 30, 2016 @06:36PM (#13075706)
Does anything not have that warning (or similar) on it?