Bob the Pleo Forums
Pleo Stuff => Pleo Archives => Archive -- Welcome => Topic started by: MGdesigner on March 24, 2013, 04:26:08 PM
-
Hi I am from Taiwan. I just got my pink Pleo from HK. I have some programming experience and music ability. I wish to write some funny program. :)
-
how much experience do you have with programming? and welcome to the forums!
-
I used to write programs by Java, especially actiion and shooting games. ;) And I use Linux as my Laptop/Desktop system. I am familiar with ./configure;make;sudo make install. Now I am researching how to run PrbDK correctly without wine under Linux.
-
Welcome to the forums :) I hope you can sort out your problem in Linux, more programmers = more fun!
-
Hello,and welcome to the forums! I think you will make lots of new friends here. I like programming too.
I program mostly in Python.
-
Belated welcome! It'll be fun to have another pink Pleo around the place; I think they're just so cute. :D
Programming for Pleo is basically like C programming with a few differences. Once you figure out how to get something running on your Pleo for the first time (the examples with the PrbDK help with that) it's great fun. I've tried a few things but there are always more things I'd like to do I can't figure out how to get working, so it's good to have other programmers around to help.
(PleoAibo, I'm also a Python programmer in my non-Pleo life. Which is why my Pleo code always has too many colons and not enough semicolons. ;) )
-
*snickers.* C is a lower language, so it's harder. I guess I need to start working on C. By the way, doe's anyone know if MySkit works with an RB?
-
Most straightforward skits will run in an RB, one difficulty is that there are are more sensors on the back in an RB, which MySkit was not set up for.
-
The thing that's really hard to grasp about C is doing your own memory management, and you don't need that for a basic Pleo script. The only thing that really gets you is that you don't have the same data types as in other languages. I spent ages trying to figure out why my Boolean value wasn't working until I realised there was no such thing for C, so I tried to use an integer value instead, except there's no data type for that either...! :P
</techrambling>
-
No boolean data? Or INTEGER DATA? AHHH! I guess I do have some work to do. ???
-
No boolean @@ ! I still didn't find this,so we need use integer "1 ,0" as boolean?
-
Well, there is no boolean or integer data. Im kind of confused by that question.
-
You would use 1's and 0's for Boolean values, yes. There is no proper integer data type (that I remember, at least - and I may be remembering this wrong!) but you can still create variables that hold what we call integer data. And the Pleo's sensors return 1 and 0 values to tell you whether they are sensing something or not. It is very close to any coding you would do in any other language, except that now and then something you assume will be there because it is in all of the other popular languages, isn't there!