• felipefujioka

    Hi,

    I was trying to build an GUI using canvas in PD, then i put three pdp_colorgrid, to select colors. Then i realized that it is kind incompatible, if you try to close the edition mode of the canvas, you will find out that it is impossible to open it again. I had to edit the text code to delete the colorgrids, it solved my problem, so im pretty sure that the colorgrid was the problem.

    Is there any reason to that? Am I saying bullshit?

    Thanks!

    posted in pixel# read more
  • felipefujioka

    Hi guys,

    i'm trying to implement a system to track robots by a webcam. My problem is, it is difficult to track more than one robot with the PIX basic objects.

    My system comport three robots identified by plates of different vivid colors, red, green and blue, and a platform with amoeba form that probably will be white or black in the final.

    I've already tried to implement the track with pix_movement and it worked very well with just one robot. To work with two robots i thought it would be better to separate the RGBA matrix, to focus in each color, and have a functional track of each robot separately. BUUUT, it did not work very well, because the separated matrix did not present a good contrast of the predominant color, as a nice and big red mark over the red robot, for example, Instead of it, i had a very messy image caused by the interference of the background colors.

    to filter and track the image i used:
    pix_separator - to use 3 different images
    pix_threshold - to keep just the wanted color, if it is high enough
    pix_gain - to intensify the required color
    pix_movement - to track the movement of the robot
    pix_blob - to track the center of mass

    One solution i thought its to use a filter that can recognize the image in another format, not RGBA, a format that differ colors, saturation and highness in different values and scales. Does it exists?

    Thanks very much for reading it, i would be very glad if you could help me! =)

    posted in pixel# read more
  • felipefujioka

    Hi,

    i'm working on a robot positioning system, based on video image. And i'm having some problems with the [pix_*] objects.

    To get the approximated position of my robot, i'm trying to calculate the gravity center of the image, weighting the color of the robot (each robot has a specific color: red, blue, green and yellow), but when i change the mode of [pix_blob], or determine weights to the RGB colors the result is aways the same and the GC remains in the center of the image.

    I'm using an USB ordinary webcamera, in a well illuminated room.

    Is there some better solution to get the position of a single colored object in a room? Does someone know hoe to properly handle the pix_blob object?

    thx!

    posted in technical issues read more
  • felipefujioka

    Hi guys,

    i was searching for a library to use the Wii remote input to manage some patches in PD, then i found Wiilib, but apparently the web site of wiilib is offline.

    Has someone tested Wiilib? There is another way to get this library?

    Thank you very much,

    posted in technical issues read more
  • felipefujioka

    Hello,

    i'm trying to use a matrix for evolutionary sound algorithm, but i dont' know Pd very well.

    How is the best way to access the position X Y of a matrix?

    My newbie idea:

    i created a text file, with my matrix:

    2 2 1 2 2 2 1 ;
    2 1 2 2 2 1 2 ;
    1 2 2 2 1 2 2 ;
    2 2 2 1 2 2 1 ;
    2 2 1 2 2 1 2 ;
    2 1 2 2 1 2 2 ;
    1 2 2 1 2 2 2 ;

    so i'm reading this matrix x times to reach line x. But it is very stupid, cause the outlet is sent several times, when i want just the last one.

    Could anyone help me? Anyway i would want to know a good solution for my bad idea too, how could i catch just the last bang i send to a [textfile]???

    THX!!!

    posted in technical issues read more
  • felipefujioka

    Hi,

    I'm using he keyboard to control a robot in Pd, but i dont get how to use the keyname object.

    I implemented this:

    [keyup] [key]
    | |
    [0 ( [number\
    | /
    [route 119 100 115 97]
    | | | | |
    [up] [rigth] [back][stop]
    It worked just fine whit the WASD control. But when i try to use the arrows to control it does not work, for the arrows i implemented this:
    [keyup] [keyname]
    | |
    [0 ( [symbol\
    | /
    [route Up Down Rigth Left]
    | | | | |
    [up] [rigth] [left] [back][stop]
    BUt aparently the route is failing whit symbols, i'm, probably, using route in the wrong way, how should i do to route symbols?
    Thanks![/left]

    posted in technical issues read more
  • felipefujioka

    Hi,

    i'm trying to control a system by serial raws, using the "comport" Pd object.

    The problem is that my codification of parameters is in converted decimals from 2's complement binary.

    for example:

    if I had to send the control 132 with two parameters 500 and -500: something like 132(500, -500). It should be done like this:

    First parameter 500:

    • in hexadecimal = 1F4;
    • divide in two 8-bit components, like 1 and F4
    • send them in a raw in decimal representation 1 = 1; F4 = 244

    Second parameter -500:

    • represent as 2's complement = FB00
    • divide FB and 00
      send as a raw in decimal 251 and 0

    so the message should be like "132 1 244 251 0" for 132(500, -500).

    There is any object for Pd to help me with this hexadecimal handling?

    It would help me very much, thanks!

    posted in technical issues read more
  • felipefujioka

    Hi,

    Im using iCreates Robots with naxos bluetooth adapters, and i wish to sent string messages to the adapters with Pd, to sync with music.

    I already have a program in C to comunicate by bluetooth.

    Could someone help me or indicate some documentation about handling string messages by bluetooth with objects in Pd.

    Thanks!

    posted in technical issues read more
  • felipefujioka

    Hi everybody,

    i'm new at Pd platform and want to develop an iCreate Robot/Wiimote control project.

    To do that in Pd i need to master in external handling. But, i'm having several problems with simple extras.

    I tried to follow the Helloworld tutorial, and succeeded. But when i tried again, with some modifications it stoped working qnd did not return.

    My code is exactly the same as the tutorial.

    My makefile is the following:

    LIB = m_pd.h
    
    CXX = gcc
    
    helloworld.pd_linux: helloworld.o
        ld -export-dynamic -shared -o helloworld.pd_linux helloworld.o -lc -lm
    
    helloworld.o: helloworld.c
        $(CXX) -c helloworld.c -o helloworld.o
    
    
    clean: clean
        rm helloworld.pd_linux helloworld.o
    
    .PHONY: distclean
    

    on my notebook(running ubuntu 11.04 64bit), the compiling crashs:

    ld -export-dynamic -shared -o helloworld.pd_linux helloworld.o -lc -lm
    ld: helloworld.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
    helloworld.o: could not read symbols: Bad value
    make: ** [helloworld.pd_linux] Erro 1

    In my desktop, it successfully build the helloworld.pd_linux, but on the startup, it fails on the object loading:

    load_object: Symbol "helloworld_setup" not found
    helloworld: can't load library

    I've correctly put the helloworld.pd_linux in the /usr/lib/pd-extended/extra/helloworld, and set the directory as a startup path.

    Does someone know, what is wrong? I really need to learn how to create external objects fast.

    Thanks!

    posted in technical issues read more
  • felipefujioka

    Hi,

    I'm trying to learn how to add externals objects in PD, I've copied the helloworld file from the classic tutorial. and i'm using some compiling flags from this forum, but this following messages errors are showing up.

    g++ -c helloworld.c -o helloworld.o
    helloworld.c: In function ‘void helloworld_setup()’:
    helloworld.c:25: error: invalid conversion from ‘int’ to ‘t_atomtype’
    helloworld.c:25: error:   initializing argument 6 of ‘_class* class_new(t_symbol*, void* (*)(), void (*)(), size_t, int, t_atomtype, ...)’
    make: *** [helloworld.o] Error 1
    

    could anyone help me?

    THX a lot

    posted in extra~ read more

Internal error.

Oops! Looks like something went wrong!