|
|
|---|
Monday, January 24, 2011
Genetic Car Design Demo
This is making the rounds, and it is really neat. This is a demo of using a genetic algorithm to design as simple 2D car. I find that it goes a little better if you keep the mutation rate lower, so that you don't waste a lot of chances on DOA designs.
Friday, January 21, 2011
Cop Tactics Fail?
Take a look at this still from a video posted on Jalopnik. After a sloppy PIT maneuver, which causes the policeman on the right to be jammed into the retaining wall, both policeman jump out and draw their pistols. But since they are approaching from oppposite sides, they are pointing their weapons roughly at one another.
Shouldn't the guy on the right have stayed in front of the vehicle, so the fields of fire would have crossed like an X? Am I missing something?
Monday, January 17, 2011
Eliminate Left Turns?
Over at Car Gurus, there is a post about a traffic flow design concept which eliminates left turns at intersections. Called a "superstreet", the design prevents cars from crossing a major street, and instead do what is known around here as a "Michigan Left".
From the NCSU study on the subject:
“The study shows a 20 percent overall reduction in travel time compared to similar intersections that use conventional traffic designs,” says Dr. Joe Hummer, professor of civil, construction and environmental engineering at NC State and one of the researchers who conducted the study. “We also found that superstreet intersections experience an average of 46 percent fewer reported automobile collisions – and 63 percent fewer collisions that result in personal injury.”
I like it.
Sunday, January 16, 2011
Development tools
I think you should select the tool that supports the way you are working, not the other way around. This is one of the reasons I think tool discussions usually focus on the wrong thing. They tend to get very long-winded and troublesome since the underlying process is not clear or decided.
However if you are a small team, I think the following tools are of use to you regardless of what process you are using (the version control software are useful for any project size). Many of my students seem to use them when they are doing project work.
However if you are a small team, I think the following tools are of use to you regardless of what process you are using (the version control software are useful for any project size). Many of my students seem to use them when they are doing project work.
- Version One Team edition - A free tool that supports managing agile software development.
- Trac - An enhanced wiki and issue tracking system for software development projects.
- GIT - A free & open source, distributed version control system. I think it is a major upgrade compared to SVN, even if the initial learning curve is steep.
If you run Windows I suggest you use TortoiseGIT as GIT client. - Mercurial - A modern, open source, distributed version control system (sounds very similar to GIT?). I think the learning curve is not as steep as for GIT, and a transition from SVN is probably easier. TortoieseHG is a good client for Windows users and what I use myself.
In this user-friendly, six-part tutorial, Joel Spolsky teaches you the key concepts.
Thursday, January 13, 2011
A Few Thoughts About 2011 COTY/TOTY
For 2011, as I am sure you have heard, the North American Car Of The Year award went to the Volt, and the Truck Of The Year went to the Explorer.
I thought both of these were worthy contenders, but I would only have voted for one of them.
The Volt is a solid piece of technology, but it isn't revolutionary--under the skin, its architecture is not all that unique from a Prius or a Fusion Hybrid. Despite what GM says, the Volt is in fact a plug-in hybrid, and it can even (under some conditions) send gasoline torque to the wheels. Like the other hybrids, it has a gasoline engine connected to a generator and traction motor through a planetary gear set. It has been tuned in software not to behave like a gasoline/electric hybrid. As neat as the Volt is, it is not quite the revolution that an all-electric car would be.
For the COTY I would have voted for the Hyundai Sonata. Here is a company which came from a legacy of pushing boring, cheapy cars using a long warranty and low prices. All of a sudden, they are building world class cars, with high quality and handsome design. And unlike the Leaf and Volt, the Sonata will sell in high volumes. Considering its market impact, the Sonata should have won.
For TOTY, I agree with the panel, and I would also have picked the Explorer. A uni-body, front wheel drive mid-size SUV is the way of the future. Most SUV owners don't need to go offroading, and don't tow anything either. Most of them really just want to sit high and look stylish.
The Chrysler trucks were strong contenders, and I actually thought one of them would win, as a pat on the back to Chrysler for not dying. The Grand Cherokee appears to be a solid product and much improved compared to the junky stuff Chrysler was selling previously.
Video: Car vs Bike Drift Battle
I'm not sure why you would want to have a drift contest between a motorcycle and a car on the same track simultaneously, in fact I'm not totally sure what the point is, other than perhaps to die in style. But the video is wicked.
Tuesday, January 11, 2011
Confused by Simulink
The most common modelling tool in the automotive domain is Simulink. It started as a Matlab-based tool to graphically model and simulate differential equations needed in control design. Now it has expanded way beyond that to enable generation of production code for embedded controllers.
For someone like me, with a background in software and systems engineering and only the mandatory control engineering course, Simulink is confusing. Not the model elements as such, since it basically is an executable time-discrete data flow model. But the terminology used in the Simulink community is really confusing since they are using terms very common in software development, but with different meanings. I am not even sure the explanations below are valid...
Some examples:
For someone like me, with a background in software and systems engineering and only the mandatory control engineering course, Simulink is confusing. Not the model elements as such, since it basically is an executable time-discrete data flow model. But the terminology used in the Simulink community is really confusing since they are using terms very common in software development, but with different meanings. I am not even sure the explanations below are valid...
Some examples:
- A layer in Simulink is not what what one usually calls a layer in software. What is called a layer in Simulink I would personally call a view since it adresss a specific concern, see some defintion of the J-MAAB layers here. But I have also seen a layer as something found at a certain level in a functional hierarchy (boxes in boxes...). Maybe these two even are the same in the Simulink world?
A software layer would rather be called a subsystem in Simulink, but that is a generous interpretation from my side. (See Pattern-Oriented Software Architecture by Buschmann et al. for a definiton of software layer). - There are classes and objects in Simulink. Data objects are used to "specify values, data types, tunability, value ranges, and other key attributes of block outputs and parameters", where blocks are the basic entities that one build the simulink model from.
The Simulink software uses objects called data classes to define the properties of specific types of data objects." So in a sense the class is a template for the objects. On the other hand the data object does not specify a behaviour or input-output relationship. But classes seem also to be a special type of objects in thelast quote above. Ouch!
Contrast this to common OO design where the class is the template for the object, which is the main item encapsulating both a behaviour and associated data. A block in Simulink most closely resembles a function in a procedural language such as C or Pascal.
Monday, January 10, 2011
The Plural Of Prius is Priora
Toyota is asking "What is the plural of Prius?".
Since Prius is a Latin word, if it is pluralized in Latin, they should probably be called "Prius" or "Priora". Apparently "Prii" is not correct.
There is a long explanation here (not mine).
Saturday, January 8, 2011
The Ford Focus Electric "Butterfly Effect"
Ford's big unveiling at the CES in Las Vegas was its new Focus Electric, and associated apps and charging stations.

One of the items that caught my attention was the cutesy butterfly graphics that, like the green leaves on the Ford hybrid instrument clusters, give positive feedback about your driving style. Ford said that the butterflies were inspired by "the butterfly effect".
The Butterfly Effect is an illustration of instability in nonlinear systems, (also known as "Chaos theory"). Which I happened to take a class on in college. Basically, if you have a nonlinear system, and you start out at two very similar but not identical starting points, you may wind up in a very different state. That is, small perturbations may case large changes in the final outcome. The old example was the butterfly that flapped its wings, and caused the weather to shift on another continent.
What this has to do with driving a Focus EV I am not sure. Do they mean to say that driving a Focus EV will save enough gasoline to cause the Saudis to go broke? Seems doubtful. Perhaps a Ford P.R. guy can email me and explain it. In the meantime, I propose that there should be a "Punisher Mode" for these displays.
How this would work is when you drive like a bad-ass, you get little skulls. Hard acceleration, high lateral g's, hard braking, etc.

Tuesday, January 4, 2011
The importance of the team
I am reviewing and grading documentation in a student project. Or rather 12 student projects, all trying to develop similar software. The context is this: The students work in teams of 6. Each student has a separate role; project manager, architect, designer, quality/testing responsible, GUI designer and communications expert (it is an peer-to-peer application based on TCP). Alla students have to write code, and in addition to this they are supposed to turn in documentation related to their role.
What strikes me is that in the teams with good documentation all documents are good, regardless of author. How come? There could be several explanations:
What strikes me is that in the teams with good documentation all documents are good, regardless of author. How come? There could be several explanations:
- Good students want to work with each other (they could choose their teammates, they weren't assigned by us teachers).
- In good teams they cooperate on everything, inlcuding reviewing each others documents. In not-so-good teams they instead might try to split the tasks and work as independently as possible.
- In the good teams there is an exceptional student that functions as a mentor to the others.
- Excellent documementation from one role supports the others in their roles, e.g. an excellent architeture description supports testing etc.
- The good teams had not only a notion about what to deliver when they started, they also had a good notion on how to do it early on, e.g. they discussed so they had a common understanding of coding responsibility (everybody had to write code) and they choose an interative process or SCRUM already the first week.
- The good teams started with coding as quickly as possible. This is counterintuitive, but I think they felt more comfortable spending time on documentation if they already had some prototype running.
- It seems that analysis paralysis actually produces worse documentation. I think this is due to an inability to focus on the vital concerns and stop when they are sufficiently covered.
- It is hard to excel if your teammates drag you down. This could explain why there are no groups where just one role shines above the rest.
Subscribe to:
Posts (Atom)
