Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Modular Robot

Name: Anonymous 2011-08-02 1:06

So /praggles/.

I plan on beginning the construction of a robot of sorts when school gets back in. In essence, it will be a small computer one wheels. Perhaps we will add a camera or something later.

I want programming to be added to the robot in modules, without recompiling it's "operating system." Essentially, I will write drivers for its motors and then wrap the drivers in python. There will be directories in the robot's filesystem for placing python scripts, and the operating code (C++) will load all python scripts in each directory (different directories indicate different manners of running the scripts) and invoke the python interpreter.

This would allow for the AI coding/any interfacing to be written in python rather than having to write C or C++ code and constantly recompile.

Recommendations on improvements to the system? Is python a decent choice of scripting language? Thoughts?

Name: Anonymous 2011-08-02 1:08

Yeah should be straightforward and simple

Name: Anonymous 2011-08-02 1:23

Is python a decent choice of scripting language

Yes.

Is the robot a decent choice for a friend?

No

Is a waifu a decent choice for a girlfriend?

No

Is Java a decent choice for making a living?

No

Name: Anonymous 2011-08-02 1:25

>>3
Is english a decent choice for a language for you?

I doub't it's

Name: Anonymous 2011-08-02 1:26

what type of computer are you going to be using? Is it a real, full on, personal computer, or is it a board with a micro controller? If micro controller, then C + ASM, or even just ASM. Microcontrollers usually have fun and intuitive assembly languages.

Name: Anonymous 2011-08-02 1:35

>>5
It's a full on personal computer with a fresh install of debian.

Name: Donald Knuth 2011-08-02 2:49

EXERCISES

1. [25] Implement a simple Lisp inside the robot.
2. [30] Proceed to write all of its code in the simple Lisp.

BONUS
3. [40] Program learning capabilities into the robot.

EXTRA BONUS
4. [50] Program sentience into the robot, and give it the ability to modify its own code to become more intelligent.

Name: Anonymous 2011-08-02 3:09

Do what Knuth just said.

Name: Anonymous 2011-08-02 6:11

>>5
Microcontrollers usually have fun and intuitive assembly languages.

LOL.

Name: Anonymous 2011-08-02 7:11

>>9
In an autistic way.  Oh, you just wouldn't understand.

Name: Anonymous 2011-08-02 11:19

>>1
Why use python over lua? I immagine on a robot you have very limited ressources.

Name: Anonymous 2011-08-02 11:54

>>10
No, why, consider for example http://www.keil.com/support/man/docs/is51/is51_mov.htm, the mov bit, C and mov C, bit instructions. One of them takes 2 cycles, another takes 1. No other such pair of instructions has that behaviour.

My meaning is, it might be fun in an autistic way, but not intuitive, never.

Name: Anonymous 2011-08-02 12:44

>>11
Your wrong, bitch

Name: Anonymous 2011-08-02 12:45

>>12

I was thinking of stuff like the z80, or HC11. Programming 8 bit micro controllers in assembly feels like playing with legos.

Name: Anonymous 2011-08-02 13:03

>>13
my wrong what?

Name: ( ≖‿≖) 2011-08-02 15:13

>>15
your wrong is everything

Name: Anonymous 2011-08-02 16:31

scripting language
realtime control
lolololol

Name: Anonymous 2011-08-02 19:58

>>14
The most popular microcontrollers per volume are fucking awful and make things like PIC12 look nice and sexy.

Name: Anonymous 2011-08-03 0:38

OP here.

>>11
Is Lua's interpreter faster? I didn't have any particular reason for selecting Python, other than I knew it had a lot of modules, and interfacing with the internet and various periphera (camera, audio) is a big goal. Any recommendations would be greatly appreciated though.

>>17
Right, but it allows the modular development.

>>7
I'm actually rather excited for the learning programming.

Name: Anonymous 2011-08-03 1:44

>>19

people say that lua is really fast. It seems to have less going on than python, so I would think so, but I'm not sure. You can also run C stuff with lua pretty easily, although I haven't done that yet.

you can do modular development in pretty much any sane programming language. You just need to either use a feature in the language that provides it for you or be creative and use a consistent convention for getting modularity.

Name: Anonymous 2011-08-03 5:56

Lua isnot fast its just as slow as python which is really slow.

Name: Anonymous 2011-08-03 5:58

From what I've heard, LuaJIT is VROOM VROOM NEARLY AS FAST AS C!!

Name: Anonymous 2011-08-03 6:06

as fast (in controlled lab settings with 16gb ram servers and carefully optimized code)

Name: Anonymous 2011-08-03 7:58

>>22
And Java developers like to say that Java is as fast as C as well, while it clearly is not.

You want some hard numbers?

http://shootout.alioth.debian.org/u32/which-programming-languages-are-fastest.php

Lua is on average 32x slower than C in single-threaded performance, and it doesn't even support multi-threading so it's not in the multi-threaded benchmarks.

You would be ill-advised to use Lua.

Name: Anonymous 2011-08-03 7:59

>>23
stop talking shit dude

Name: Anonymous 2011-08-03 8:03

>>25
/Polecat kebabs/

Name: Anonymous 2011-08-03 8:03

>>24
That's not LuaJIT.

Name: Anonymous 2011-08-03 9:52

>>27
Tell me more about this LuaJIT.

>>20
Wrapping C functions in Python is relatively straightforward as well, and >>24 claims there isn't multithreading in Lua. Not that it really matters too much, the computer I'm using is an old single core.

While I'm thinking about it, does anyone know of a way to do pathfinding using a single camera input? I suppose I could use two cameras for three dimensional input, but a microsoft kinect isn't exactly in the budget...

Name: Anonymous 2011-08-03 10:10

>>28
The fastest JIT known to man. That's what I know.

Name: Anonymous 2011-08-03 10:28

>>20
You can't get much more modular than a scripting language though. I can add new scripts to a directory and then just use whatever console I add to re-search the directory for scripts. You can add code without recompiling or losing what you've got stored in RAM.

Name: Anonymous 2011-08-03 11:17

>Debian

Isn't Debian a bit to overkill for your purposes? Personally I'd go with something like Slitaz.

Name: Anonymous 2011-08-03 14:15

>>28

You could check out openCV

Name: Anonymous 2011-08-03 17:50

>>31
Isn't Linux a bit to overkill for his purposes? Personally I'd go with something like Movitz.

Name: Anonymous 2011-08-03 20:04

>>26
fuck you fagstorm

Name: Anonymous 2011-08-03 23:01

>>1
Use an Arduino. Why make everything harder on yourself, you inefficient useless bum?

Name: Anonymous 2011-08-04 5:26

>>33
Isn't Movitz a bit to overkill for his purposes? Personally I'd go with something like VxWorks.

Name: Anonymous 2011-08-04 12:51

use the ooc.robotics library

Name: Anonymous 2011-08-04 14:33

Nobody needs just another Linux/X86 based robot. They are useless period, except maybe your laziness.
But not even that

at least do what >>35
told you if you aren't skilled enough to write it from scratch.

Name: Anonymous 2011-08-04 23:03

>>31-38
Name a feature in Debian that is overkill for this project.

Also, I'm writing this in a higher level language because I'm more interested in a working Robot with working learning algorithms that solve multiple problems than I am with learning to write in a particular assembly language and tinkering with microcontrollers. I'm interested in Computer Science and not this boring shit that all of you seem to be.

Name: Anonymous 2011-08-04 23:06

>>35
Although it would be neat to use an Arduino and have computing done on a distant server...

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List