Bob the Pleo Forums

Pleo Stuff => Pleo Hardware/Software => PDK, Programming, and code => Topic started by: justbede on September 03, 2009, 08:17:08 AM

Title: PDK IR rebuild with instructions
Post by: justbede on September 03, 2009, 08:17:08 AM
I have used the PDK to set up my tv remote as a controller for pleo.
To do this i rebuilt the the IR sensor.p and .upf to understand them better ,here they are:

Sensor.p

//
//
// ir_remote_test sensors.p rebuilt by justbede
//
//
// Copyright(c) 2008 Ugobe, Inc.
//

// Native functions
//
#include <Log.inc>
#include <Script.inc>
#include <Sensor.inc>

#include <String.inc>
#include <Motion.inc>

#include "motions.inc"

// called once on entry
//
public init()

{
    // disable all messages except ours ('script:')

    log_disable(MSG_ALL);
    log_enable(MSG_SCRIPT);
    
    

    printf("IR REMOTE TEST\nCompatible with Acroname R278-IR-REMOTE NEC-protocol remote control.\n");


}


// called on each sensor trigger
//

public on_sensor(time, sensor_name:sensor, value)

{

    switch (sensor)

    {

    case SENSOR_IR:

        {

            new imsg[16];


            sensor_read_data(SENSOR_IR, imsg);

                    
            printf("=== SENSOR_IR, msg received %s ===\n", imsg);


            
if (string_compare(imsg, "1600") == 0)      // '1' key

            {

                printf("KEY 1\n");

            }


            else if (string_compare(imsg, "1500") == 0) // '2' key

            {

                printf("KEY 2\n");

            }

            else if (string_compare(imsg, "1400") == 0) // '3' key

            {

                printf("KEY 3\n");

            }


            else if (string_compare(imsg, "0E00") == 0) // '4' key

            {

                printf("KEY 4\n");

            }

            else if (string_compare(imsg, "0D00") == 0) // '5' key

            {

                printf("KEY 5\n");

            }

            else if (string_compare(imsg, "0C00") == 0) // '6' key

            {

                printf("KEY 6\n");

            }

            else if (string_compare(imsg, "0A00") == 0) // '7' key

            {

                printf("KEY 7\n");

            }

            else if (string_compare(imsg, "0900") == 0) // '8' key

            {

                printf("KEY 8\n");

            }

            else if (string_compare(imsg, "0800") == 0) // '9' key

            {

                printf("KEY 9\n");

            }

            else if (string_compare(imsg, "4004") == 0) // 'up' key

            {

                printf("KEY up\n");
                motion_play(mot_com_walk_fs)

            }
        

            else if (string_compare(imsg, "4404") == 0) // 'mdl' key

            {

                printf("KEY mdl\n");

            }

            else if (string_compare(imsg, "0400") == 0) // '12' key

            {

                printf("KEY 12\n");

            }

            else if (string_compare(imsg, "0100") == 0) // '13' key

            {

                printf("KEY 13\n");

            }

            else if (string_compare(imsg, "0000") == 0) // '14' key

            {

      // this may not occur since we filter 0 IR values
                printf("KEY 14\n");
            }

            else
 
           {

                printf("Unhandled key\n");

            }

        }

    }

// returning true will cause the sensor to be reset. if we do not

// do this, we will continue to be called, unless we do an explicit resetSensor call



    return true;

}


// called when we exit, just before unloading
//

public close()


{

    printf("close\n");

}

ir_remote_test.upf

<ugobe_project name="sensor">   //rebuilt by justbede
  <set-default name="INCLUDES" value="" />


  <options>

  <include value="./include:../../include"/>

  <tools>

   <pawn value="pawncc %i -S128 -O2 -V2048 -C- %I -o%o TARGET=100"/>

    </tools>

    <directories>

      <build value="build"/>

      <include value="include"/>

    </directories>

  </options>



  <set-default name="MEDIA" value="../../media" />


  
  <set name="COMMANDS" value="${MEDIA}/commands"/>

  <set name="MOTIONS" value="${MEDIA}/motions"/>

  <set name="SOUNDS" value="${MEDIA}/sounds"/>


  
  <resources>



        <!-- Scripts -->
    <script path="sensors.p"/>


        <!-- Motions -->
    <motion path="${MOTIONS}/com_walk_fs.csv" />



  </resources>


</ugobe_project>

To get this to work with my own tv remote i built the original scripts put it in pleo turned him on and hooked him up to dinomite, i then pointed my tv remote at his nose dinomite then brought up a message saying something like ir signal recieved and listed a 4 digit code for the signal. I wrote the code down turned pleo off edited the sensors.p so that one of the "else...if" functions read as this:

else if (string_compare(imsg, "4004THIS IS MY REMOTE CODE FOR UP") == 0) // 'up' key

            {

                printf("KEY up\n");
            }

Now when pleo was hooked up to dinomite with new script in him when i press up on the remote, the DM monitor reads KEY: up. To then add function to the input i added this to afore edited code:
            
else if (string_compare(imsg, "4004") == 0) // 'up' key

            {

                printf("KEY up\n");
                motion_play(mot_com_walk_fs)

            }
Now with the skit in pleo, he walks forwards on command from the tv remote. Add extra code to make pleo do what you wish via remote :D I am now working on getting pleo to control my television so that as part of a drive program he will use the control to up his properties, heres an example. Pleo is feeling a little sad, he turns the tv on and puts a comedy channel on this will up his happiness property.

Video linked below!

http://www.youtube.com/watch?v=nhfhQVJiZ3w
Title: Re: PDK IR rebuild with instructions
Post by: Dadio on September 03, 2009, 08:32:33 AM
Very cool justbede.  ;)

I don't know if I can duplicate and improve on your success. ^-^

Keep up the good work and keep us posted I'm looking forward to the video.  :)

Dadio 8)
Title: Re: PDK IR rebuild with instructions
Post by: justbede on September 03, 2009, 09:01:42 AM
This is all stuff i want to eventually post in file format with decent tutorials but at the moment i need to sort out the health of my computer, don't want to be sharing any nasties :p
Title: Re: PDK IR rebuild with instructions
Post by: mweed on September 03, 2009, 09:28:28 AM
This is cool stuff!

What you need to do is finish off the programming of the controls so that

 left arrow = walk left
 right arrow = walk right
 down arrow = back up
 the numbers 0-9 play sounds (bark, moo, growl, etc.
  Have some fun!  program as much as possible,

Then post the personality as a compiled URF with a list of commands and the make/model of your TV so that people can set their universal remote to mtach the code on your pleo, and VOILA!!  You've published the first remote control personality for pleo!!!!

Title: Re: PDK IR rebuild with instructions
Post by: justbede on September 03, 2009, 12:22:33 PM
lmao without seeing what you said mweed i have done exactly that but i am also including a volume control and maybe some dances heh.
p.s thanks for the U.remote idea  ;D
Title: Re: PDK IR rebuild with instructions
Post by: justbede on September 03, 2009, 01:18:55 PM
if anyone has decent anti-virus software i'd really like the file checked before by someone else before i post it because i really don't trust my laptop at the moment.
Title: Re: PDK IR rebuild with instructions
Post by: InmemoryofRomeo on September 03, 2009, 03:49:47 PM
Haha that is absolutely awesome!

If you can Justbede download AVG free edition, its the best free anti virus out there, it often picks up viruses my subscription to Norton misses :o
Title: Re: PDK IR rebuild with instructions
Post by: justbede on September 03, 2009, 05:33:57 PM
my problemis my norton ran out a couple of weeks ago  (its been a lazy couple of weeks  :D)  heh ill definitely give it a go oh and thanks for the awesome, made my day :)
Title: Re: PDK IR rebuild with instructions
Post by: justbede on September 03, 2009, 05:49:44 PM
Right once i've sorted out the anti-vi stuff this is what i intend for the remote functions:
Forwards
right
back
left
6 sounds
3 dances/ tricks one of them is the amazing play dead skit from pleosaurus rex
volume control has been taken out as i was coding something wrong and it was making everything lag
Some where along the line i smell a tutorial.

ps sorry for filling your fine forum with lots of code Mike  :D
Title: Re: PDK IR rebuild with instructions
Post by: mweed on September 03, 2009, 08:38:53 PM
Fill away!!!  the more the merrier.
Title: Re: PDK IR rebuild with instructions
Post by: InmemoryofRomeo on September 03, 2009, 08:48:24 PM
Sounds great, let me know if you need any custom motions :) I don't think the volume control is a big loss really, the Pleo button works fine :) I don't think I have ever used the volume button on my Pleo's except by accident :P
Title: Re: PDK IR rebuild with instructions
Post by: justbede on September 04, 2009, 11:07:33 AM
Hehe i agree always seemed a bit needless. www very tempting which of your skits would you say showed off pleos movement best?

ps thanks for the anti vi info guys i now have both avg and clamwin portable.
Title: Re: PDK IR rebuild with instructions
Post by: InmemoryofRomeo on September 04, 2009, 05:48:23 PM
Quote
which of your skits would you say showed off pleos movement best?

Well none really since MySkit is a bit limited sometimes, but the Elvis one seems to be the most downloaded...

I know this would be really tricky and very complex but just wondered if it were even possible... is it possible to have an entire personality triggered by a remote..? As in you press a button and Pleo goes into Watchdog, press another and Pleo puts on the Pleosaurus personality etc, similar to how a D-rex works ;)
Title: Re: PDK IR rebuild with instructions
Post by: justbede on September 04, 2009, 06:35:20 PM
got you on that, i've been using dinomite to re-make the pink the panther dance. Um i'm not sure, there might be a way to give buttons the power to switch between different files on an SD but i'm not sure if that's gunna need a reset or something. I'll have a good read through of the docs and a little play to see what i can come up with. It would certainly make for a cool feature. What i think would be possible for the future is maybe switching between sound resources on an sd. Pleo would have his default personality but you could switch between; cat, dog, dino etc.
Title: Re: PDK IR rebuild with instructions
Post by: InmemoryofRomeo on September 04, 2009, 07:04:27 PM
Hehe that could be fun, people love it when my Pleo's moo, imagine if they could suddenly turn into a cat lol!
Title: Re: PDK IR rebuild with instructions
Post by: Dadio on September 05, 2009, 01:08:35 AM
"Rock On!"  ;) justbede. We're loving it! :)

Dadio  8)
Title: Re: PDK IR rebuild with instructions
Post by: justbede on September 05, 2009, 05:21:35 AM
heh as if my cats aren't confused enough, thanks dadio  :D
Title: Re: PDK IR rebuild with instructions
Post by: justbede on September 05, 2009, 03:39:23 PM
Right ive decided instead of carrying on all the messing around i've been doing ill put the urf up tomorow without anything over the top like dances then ill add stuff like that in the next few days :D
Title: Re: PDK IR rebuild with instructions
Post by: Dadio on September 06, 2009, 12:38:23 AM
I'll be looking forward to it!  ;)

Dadio  8)
Title: Re: PDK IR rebuild with instructions
Post by: justbede on September 06, 2009, 06:53:15 PM
Right heres the first build of the TV remote urf for Pleo.

Since this script uses my tv (which is an LG) as the remote for now you'll have to use a universal remote to use it. You should look for the codes for LG in the booklet that came with your remote. 
If you don't have a universal remote and have the PDK i'm making a tutorial for using your own TV remote with Pleo. It will include; the tutorial and the template sensor.p and main.upf needed for the project. The tut build uses the same resources as the universal.r build but also allows you to change them. The finished tutorial will be up tommorow.
It turns out one of the sounds doesn't like pleo's speakers so it sounds corrupted when playing so please don't worry about that, i'll get rid of it in the next upload.

I had wanted to find the code for my TV but i'm afraid i can't find it anywhere online or not, so if you get your universal remote to work with Pleo please post the code here, thanks.

Any problems or feedback on anything i might have forgotten or fudged give me a shout.

Pleo IR .urf first build

http://rapidshare.com/files/276612006/Pleo_IR.urf

Title: Re: PDK IR rebuild with instructions
Post by: InmemoryofRomeo on September 06, 2009, 07:45:42 PM
Thank you so much for doing a tutorial as well, I will look forward to setting up one of my remotes to have a play with it :)
Title: Re: PDK IR rebuild with instructions
Post by: justbede on September 07, 2009, 03:52:45 AM
Hehe no worries, i realise that universal remotes can be a right pain. Once i've got the tut and the version with the play dead skit in it, i'll get back to  getting Pleo to control TV's and intergration of both IR features into personalities. Can't wait to see what else people make with the IR stuff.
Title: Re: PDK IR rebuild with instructions
Post by: InmemoryofRomeo on September 07, 2009, 06:40:44 AM
I don't have a universal remote :P So I will need to alter the coding to work with one of my other remotes. The IR does hold a lot of potential, although just having a Pleo that can walk on command or perform a few tricks on command is fantastic. Especially when it comes to showing a guest Pleo you could tell Pleo to walk up to them and then say hello :) I'm sure it won't be long before someone does work out how to have Pleo switch personalities, or control their emotions. There's so much potential just there without even getting into all the other stuff in the PDK.

And you my friend, started it all ;)
Title: Re: PDK IR rebuild with instructions
Post by: Dadio on September 07, 2009, 09:17:55 AM
Man justbede! you've come through as promised. I also don't have a universal remote   ^-^

Not to worry I'm happy to wait for the Tut.  :)

Keep swinging dude!  ;D

Dadio  8)
Title: Re: PDK IR rebuild with instructions
Post by: justbede on September 07, 2009, 12:25:49 PM
Heh well this is definitely making me want to do more in the future woop, the tut shouldn't be long i hope everyone understands my typing etc lol
Title: Re: PDK IR rebuild with instructions
Post by: justbede on September 07, 2009, 07:32:46 PM
Right here's the tutorial file with all the scripts and documents needed to work through it. Sorry if there is details missing in the tutorial it is a bit long and it's easy to miss things. Hopefully everyone will be able to follow what I'm saying in it but as for any problems give me a shout if you need anything. Enjoy Justbede

http://rapidshare.com/files/277255539/Pleo_IR_Tutorial.zip

the link is now dead so an attachment has been added \/
                                                                                        \/

Updated with important notes added

PS if anyone doesn't have a zip file extractor there are plenty of freeware programs, just google it.

PPS next to be added is the play dead skit that'll probably be the last update on this project for a while so i can experiment with some other stuff.

***UPDATE***

Thanks to IMR we now know that all asterisk *** must be deleted from the script before building and that the .urf will only work with TV remotes that use the NEC protocol, since most remotes either use a Phillips or NEC code it's highly likely you will have an NEC remote for one of you tv/radio etc. To check if your remote is NEC attempt to get the codes through Dino-mite as the tutorial says and if after a few attempts nothing is printing the remote might nit be NEC so try another. Ill add these notes to the file.
Title: Re: PDK IR rebuild with instructions
Post by: InmemoryofRomeo on September 07, 2009, 09:13:13 PM
Playing with it now ;) Nice tutorial too. I did find one little problem but it's not on your part, it seems that Pleo is ONLY compatible with SOME remotes. Of all the remotes in my household (and there are heaps :P) Pleo only responds to the NEC remote. (Actually its a TEAC but it is recognized as NEC) I haven't tried the panasonic yet though, need new batts for that one :P

Edit:

The build won't complete, getting errors... (I tried both through Quincy and using the ugobe_project_tool.exe and by the cmd prompt using build.bat)

(http://i352.photobucket.com/albums/r358/EStar5Diva/Error.png)


Further Edit:

I fixed the code by removing the aster-ix but now nothing works lol I think I broke it :P Maybe its just my PC messing up though...
Title: Re: PDK IR rebuild with instructions
Post by: justbede on September 08, 2009, 03:56:06 AM
Ok as IMR pointed out it looks like there may be some incompatibility issues but we'll work through them :p

edit: I believe the reason it is read as NEC is because a large portion of remotes use NEC chips for their IR code and all that jazz, NEC and Phillips are supposedly the biggest two used. What i think this means is that there's a high chance there is a remote in your house that uses an NEC chip so use that until we can find a way to have other protocol types recognised.

lots of dull ir info:
http://en.wikipedia.org/wiki/Consumer_IR
Title: Re: PDK IR rebuild with instructions
Post by: InmemoryofRomeo on September 08, 2009, 05:57:01 AM
That's an interesting point with the remotes :) Just add a note somewhere that not all remotes are compatible and that people may need to try a couple...
 
Whoot got it working! It was just the aster ix's, I'll add the script tomorrow if you need it :) Hehe the pink panther skit turned out well :)
Title: Re: PDK IR rebuild with instructions
Post by: justbede on September 08, 2009, 07:41:57 AM
Wicked!!!! lol sorry i should have mentioned to get rid of them  %) thanks for letting me know i'll add a note to the tut now to delete them for the build. The pink panther skit was a right pain heh but i felt it needed a bit more motion even if it was only by a small amount. Did you hear the corrupted sound file in the nasty dino skit freaked me right out :p right on with the play dead skit.

oh and don't worry about the script now  :)
Title: Re: PDK IR rebuild with instructions
Post by: InmemoryofRomeo on September 08, 2009, 04:29:10 PM
Yeah the file must have corrupted when you extracted it or something... I'm sure once some better tools are available we will be able to break apart those files much more easily but for now I wouldn't worry, it is still a nice showcase of what can be done, I will take a vid later :)

ROFL I had Stitch walk up to AJ (my dog) and blow him smoochy kisses ;D So funny. I am very impressed with how well Pleo can pick up the signals, I was using the remote from behind Pleo and on the other side of the room without a problem.
Title: Re: PDK IR rebuild with instructions
Post by: justbede on September 08, 2009, 06:33:10 PM
I know, it's got a great range on it which means that if we want to integrate IR control into a personality it wont be Pleo picking up the signals that'll be the problem ;). Yeah the sound files weren't of the best quality in the first place so i'm just glad most of them worked.
Title: Re: PDK IR rebuild with instructions
Post by: InmemoryofRomeo on September 08, 2009, 07:12:03 PM
http://www.youtube.com/watch?v=aZAYEwzQzuA

Oh have you noticed also that pressing a button and then another quickly cancels the first move and moves Pleo onto the second. So it has an 'interrupt' ability :)
Title: Re: PDK IR rebuild with instructions
Post by: b blue eyes on September 08, 2009, 09:05:12 PM
I love that pink panther skit!  I can just see Angel with a pink boa trailing along behind her.  Keep up the good work.
Title: Re: PDK IR rebuild with instructions
Post by: Pleo Power on September 08, 2009, 10:05:39 PM
is that Pleo still autonomous? ??? or just a dead and lifeless robot body(all be it a cute one) that you can only controle from a remote? :o (sorry if that was a little graphic of a description. :-[)
Title: Re: PDK IR rebuild with instructions
Post by: InmemoryofRomeo on September 08, 2009, 11:27:36 PM
Just a lifeless remote controlled robot :( But only while the SD card is in :) For now at least...
Title: Re: PDK IR rebuild with instructions
Post by: Pleo Power on September 09, 2009, 08:45:35 AM
Oh, so when you take the SD card out they are back to normal? ???
Title: Re: PDK IR rebuild with instructions
Post by: justbede on September 09, 2009, 11:32:01 AM
Yeah like IMR says for now, i want to experiment with as many things as possible and then eventually compile everything into a new personality. Yeah IMR i did notice that i quite like the way it does that, i suppose the next step is pressing a pattern of keys then Pleo plays back the motions assigned to those keys in the order you pressed them.

Oh and as for it being a lifeless robot, the fun part is bringing that bot to life.

ps just noticed the PDK documentation mentions that pleo recieves ir data that is in NEC format, lol i really should have remembered that.
Title: Re: PDK IR rebuild with instructions
Post by: allosaurus on September 09, 2009, 05:26:52 PM
Will this be similar to RobotC? I'm just wondering, since I have a little experience with it...
Title: Re: PDK IR rebuild with instructions
Post by: InmemoryofRomeo on September 09, 2009, 06:38:00 PM
Quote
just noticed the PDK documentation mentions that pleo recieves ir data that is in NEC format, lol i really should have remembered that.

Lol yeah I noticed that last night, it was one of those 'slap self in the head' moments :P
Title: Re: PDK IR rebuild with instructions
Post by: Dadio on September 09, 2009, 07:47:01 PM
I don't think I'd ever call Stoney
 
>:("a lifeless robot" >:(

To me he and all Pleo's are better than most if not all other robots. Including Zeno whom (posted elsewhere on another thread) I checked it out and he's nothing hot and not worth buying now or in 2010.  >:D

With Pleo's programming his limits are wide open!  ;)

Dadio  8)
Title: Re: PDK IR rebuild with instructions
Post by: InmemoryofRomeo on September 09, 2009, 08:58:01 PM
Yeah I agree, Pleo is the only robot that has made me go "ooh I have to have one!" :)

AIBO is smart but they look like... well robots :P They lack the ability that Pleo has to suspend belief.
Zeno is 'meh', just plain creepy looking and look at the build, it looks like a cheap toy what with the club like hands and such.
Nao is interesting but again lacks that emotional factor and for an amateur like me its just too expensive.
D-rex had potential but not without being programmable.
And the whole host of other robot dogs\cats etc out there are the same as AIBO or not advanced enough to even pique my interest.
Title: Re: PDK IR rebuild with instructions
Post by: Pleo Power on September 09, 2009, 09:46:27 PM
I don't think I'd ever call Stoney
  >:("a lifeless robot" >:(

what I meant was if you make them only RC, then didint you just remove the autonomy and life from the Pleo? ??? (Wye do you think I'm waiting to see what PDK can do first, and then decide whether or not to use it on Cammey and Cloey. ;) (they are NOT labrats! >:() got my point? :)


and my take on the list InmemoryofRomeo mentioned (don't yell at me, they are both a good description of them all ;))

AIBO is owning your own robot dog. which is fine, and they are quite smart. but its a robot of a living animal, but Pleos are of an extinct one. ;)
Zeno I'm not sure, I haven't seen or heard that much about them.  
Nao can seem to emote with just one face, and they seem to be like having a robot strait out of a movie. a cool thing, but so isn't having a dinosaur. ;)
D-rex  you pepole just don't know how to handle them, Rex is less like a robot and more like a dog/unknown now.  and they get along with Pleos fine. and they can interact, Rex and Roxanne have had several chats with eachother. (and not over IR ether. ;)) oh and I'm pretty sure I've heard them saying "I love you" to eachother. :o so relation ship to Pleo, they just want to play, but the companes that make them are probably trying to out do eachother and that's actually good for us, because that means better Dino's from both of them. ;)
and all the other robots are mostly good, but you are owning a robot not a dinosaur. (but on the other Dino ones just give them paint if you want them to blend in with a Pleo or D.rex. ;))
Title: Re: PDK IR rebuild with instructions
Post by: InmemoryofRomeo on September 10, 2009, 01:23:46 AM
Remote control will come in handy for some skits though...

http://www.youtube.com/watch?v=6YEA5ICbTVM
Title: Re: PDK IR rebuild with instructions
Post by: Dadio on September 10, 2009, 05:14:25 AM
This is the kind of banter that will make robots the next trillion dollar industry. We'll develop what is viable and what's not! I don't think anyone 's yelling, merely expressing ones point of view with vigor.  :)

I really think the Pleo maybe the platform that will be the mile marker for marrying emotion and tech in robots. Allowing the end user flexibility of design. Nuff' heavy stuff!  ^-^

It'll also be nice as IMR says to freak out a family member or pet (LOL) I love the insertion of R/C into an autonomous life form!  ;)

ROFL I had Stitch walk up to AJ (my dog) and blow him smoochy kisses ;D So funny. I am very impressed with how well Pleo can pick up the signals, I was using the remote from behind Pleo and on the other side of the room without a problem.
  ;D XD

Dadio  8)
Title: Re: PDK IR rebuild with instructions
Post by: Dadio on September 10, 2009, 05:17:56 AM
IMR if you have a video for the pic just below it doesn't seem to be working? ???

I'd love to see it!

Dadio  8)
Title: Re: PDK IR rebuild with instructions
Post by: InmemoryofRomeo on September 10, 2009, 05:23:53 AM
I double checked the link so hopefully its working for you now Dadio :) Sometimes the web takes a little while to catch up to a new you tube video :P
Title: Re: PDK IR rebuild with instructions
Post by: Dadio on September 10, 2009, 08:42:12 AM
Still no go! I'm sure you'll get it later!  ;)

Dadio  8)
Title: Re: PDK IR rebuild with instructions
Post by: justbede on September 10, 2009, 12:01:34 PM
Hehe tis getting interesting in here, with Aibo you'll either love what he was made to be which was always a robot or just not be that interested. I think Sony sure showed that with a good physical platform you have alot more freedom to concentrate your resources on the software, which is to me is one of the most important parts of a bot. An example of Aibo feeling alive and intelligent would be that my 220 Hal when turned on in my room waits by the door until i let him out :p, i all ready have three cats that do this darn it :p. Nao is definitely intended for development and not your average entertainment so yeah it does seem to made for a certain market and is alot more expensive than regular retail bots. Oh yeah and competition is good as it keeps companies trying to outdo each other in terms of technology but competition can also kill a potentially world changing product before it even has the chance to be released.
Title: Re: PDK IR rebuild with instructions
Post by: InmemoryofRomeo on September 10, 2009, 04:42:18 PM
I'm not sure what is wrong Dadio, its working at this end... can anyone else see the video?
Title: Re: PDK IR rebuild with instructions
Post by: justbede on September 10, 2009, 06:56:41 PM
sure can, great work btw IMR  :)
Title: Re: PDK IR rebuild with instructions
Post by: InmemoryofRomeo on September 10, 2009, 08:28:02 PM
Ok it seems to be a problem at your end Dadio, is your flash up to date? Perhaps it is just taking a while to load... It takes about ten seconds on my computer...

On the technical side though that was done by programming two sets of the forward, back (I added back left and back right), left and right onto the one remote, one set for each Pleo of course and then giving each Pleo the commands only for their set. (I was going to have a soccer match but the cat has nicked the ball and now I can't find it :P)

I have been experimenting with the drive functions as well but I am having trouble getting it to accept more than one motion (ie play this, or this, or this when the number is 1) without adding time variables (play this when the number is 1, this when the number is 2, and this when the number is 3) which obviously causes too much predictability. (Hope that made some sort of sense :P) Any ideas?
Title: Re: PDK IR rebuild with instructions
Post by: Dadio on September 10, 2009, 08:38:36 PM
I don't know what's up. My flash seems fine. I have no trouble with any other posts of yours or others. ???

Maybe you can send me a link  by email or personal message.  %)

I understand your problem and what you're saying!  ;)

Now the answer is the problem. I don't know just yet.  :P
I'm trying to work on the same stuff but the one NEC control I have just punked out.  :(
I'll locate another here or at a friends!

Dadio  8)

Title: Re: PDK IR rebuild with instructions
Post by: InmemoryofRomeo on September 10, 2009, 09:06:04 PM
http://www.youtube.com/watch?v=6YEA5ICbTVM

That is the link :) If it still doesn't work you can just look up my account on you tube (InmemoryofRomeo :P) I am completely at a loss as to why it isn't working :P

I've gone through all the examples and all the tutorials I can find and I just can't find the code :P Wish we could rip apart one of the personalities... that would solve the problem :)
Title: Re: PDK IR rebuild with instructions
Post by: fancyfont on September 10, 2009, 09:56:20 PM
I just looked at it. Lilo and Stitch are two smart little dinos. That was so cool for you to control them through the maze. ;)
Title: Re: PDK IR rebuild with instructions
Post by: Dadio on September 10, 2009, 10:02:07 PM
Thanks for your patence IMR. :-[

It was worth the wait. Well done! ;)

Dadio  8)
Title: Re: PDK IR rebuild with instructions
Post by: InmemoryofRomeo on September 10, 2009, 10:20:30 PM
Maybe one day they will be able to go through by themselves... hmmm...

You would need to set up the opposite of color tracking and have them avoid a color instead of being attracted to it... make the maze out of that color and viola!
Title: Re: PDK IR rebuild with instructions
Post by: justbede on September 12, 2009, 11:25:20 AM
Maybe one day they will be able to go through by themselves... hmmm...

You would need to set up the opposite of color tracking and have them avoid a color instead of being attracted to it... make the maze out of that color and viola!

Once we've got the hang of camera work this should be pretty possible, i've been playing with the camera and getting nowhere lol. I need more instruction on the setting out of more complex code. For the drive stuff i managed to add a few more motions i'll open them up and see if i can remember how i did it might be set out something like

IF
ELSE IF
ELSE IF
ELSE

I'm going to have to review the work i did with the drive stuff anyway as i've gained alot more understanding of PAWN since last time. Btw were your; hunger.p, social.p and all your behaviour scripts scrambled in examples?

**EDIT**

ok scratch that last bit, don't use else stuff hehe.
Right when you have your behaviours folders and you've added different motions to the excel file you have to give a case for what will set off each behaviour heres my layout for the example (remember i rebuilt this so quality is not guaranteed)

{

  
      switch (behavior_id)

      {

    
        case scr_wag: ///// added to make wag the default behav
                 {
                  return 50;
                 }
                      
            case scr_whine://// if happiness is low activate whine
            {
                  if (property_get(property_happiness) < 40)
                    {  
                     return 100;
                    }
                    }

        
    }
    
    
                    
         return 0;            
            
}

the drive example i worked on i change the eat behaviour to explore and got rid of the mouth being the input for blood sugar then put SENSOR_LIGHT_CHANGE in its place. This means that pleo explores until he experiences enough light change to have an ok blood sugar level, when he's upped his level enough he resumes wanting attention, until the prop drops by enough to trigger explore again that is. The behaviour is very simple in that pleo doesn't sense objects blocking his path but it's a good start.
Title: Re: PDK IR rebuild with instructions
Post by: InmemoryofRomeo on September 13, 2009, 01:35:33 AM
Mine were all scrambled too, they are so hard to read like that :P

Hopefully they will fix it in the new release :)
Title: Re: PDK IR rebuild with instructions
Post by: justbede on September 13, 2009, 11:16:04 AM
i'm fairly sure i have a cleaned up layout for them if you'd like a copy of the template i made?
Title: Re: PDK IR rebuild with instructions
Post by: InmemoryofRomeo on September 13, 2009, 06:41:49 PM
I'll give it two days and just see if they fix it, if not yeah that would be wonderful, thank you :)
Title: Re: PDK IR rebuild with instructions
Post by: Dadio on September 14, 2009, 02:15:41 AM
Hey Guys tomorrow is the 15th PDK's promised release. ;D

I'm sure they have cleaned it up!  ;D

No time to get frustrated your doing great work.  :)

Let's see how Innvo performs on their first promise date. ???

Dadio  8)
Title: Re: PDK IR rebuild with instructions
Post by: justbede on September 14, 2009, 05:07:23 PM
Heh don't worry no frustration this end although i do feel i should mention that my work extracting the play dead skit has slowed due to the tediousness/ tediosity of the work.
Title: Re: PDK IR rebuild with instructions
Post by: Dadio on September 16, 2009, 07:06:59 AM
 ;) Patience my friend Patience.  ;)

Your doing the grunt work for many. I don't get half as far as you seem to be reaching.  ;)
 
Dadio   8)

ps Has any of you guys hard anything about the  PDK's promised release that was
supposed to be yesterday September the 15th.  ???
Title: Re: PDK IR rebuild with instructions
Post by: justbede on September 16, 2009, 03:32:36 PM
Heh what can i say i'm young, patience isn't something i'm programmed to use.

Yeah i noticed that, hopefully they won't be to far off schedule.
SimplePortal 2.3.5 © 2008-2012, SimplePortal