That programming on a robot is more procedural than object oriented. I realize that I first had difficulty with programming a robot because I was so focused on OO. Sure I may not be 100% sure about the actual definitions of OO and Procedural, but I think I can say robot programming is highly procedural. Anyone disagree?
After reading Wiki, its definitely even driven
How procedural or OO the programming is on your robot is entirely up to the programmer. I have seen effective robot code done both ways.
Our own system, which runs on a framework we’re releasing sometime in the future, is extremely OO. I think that if we had tried to do a lot of the things we did in a procedural manner, it wouldn’t have gone as well.
What would I say?
I would say that this is what is known as an ill-formed question. It both presents a false dichotomy, and focuses attention on the tail that wags the dog.
I’m going to shoot from the hip, and suggest that you should ask this “Are robot programmers (and the software tools available to them) more procedural than object oriented?”
While my suggested question might seem as interesting than the one you used. I think it is more on-target.
Blake
The basis of OO programming is organizing the code before the coding begins. Robots are no different: if you start with an architecture that separates constants, utility functions and critical functions, it’s easy to create an object-oriented robot codeset that is efficient. Additionally, tools like threads and timers may be folded into the architecture so that simultaneous tasks can run. Each function may be procedural, yet the management of the functions does not have to be.
That’s like asking “Do you walk to school, or bring your lunch?” Object Oriented and Procedural Programming are not on the same scale. You can have OO with or without PP, and you can have PP with or without OO.
There’s not much support for Object Oriented Programming at the user level in LabVIEW, so a large number of teams this past year had neither OO nor PP.
Now I think I do both at the same time…
Please make the title of the threads you start more clear.
Thanks.