Go Down

Topic: Errors in code (Read 2565 times) previous topic - next topic

PBODY

Quote
Nothing in this incoherent run-on makes sense


I don't know if I should take that as constructive criticism or in another way.

Quote
In the code's comments it says:  "Processing Wrapper for the OpenNI/Kinect library".

Visit the web site in the code's comments:  http://code.google.com/p/simple-openni
This site says:  "This project is a simple OpenNI and NITE wrapper for Processing."


I have no clue really to what Wrapper for Processing is.

I am trying to make this clear and not incoherent

I hope I am

Quote
You need to get Processing from processing.org


What exactly would I be looking for at processing.org

to me all of this is a run-on incoherent jambalaya of information.
I don't know where to start or anything.

I got the blinking LED working but... I want to do this.


PBODY

Code: [Select]
float a = 100;

void setup()
{
  size(640, 200);
  stroke(255);
}

void draw()
{
  background(51);
  a = a - 0.5;
  if (a < 0) {
    a = height;
  }
  line(0, a, width, a); 
}


If I put this into the arduino platform with the kinect connected to the computer and the SimpleOpenNi libraries uploaded would it do something?
or would I have to utilize something else?

I got the code from processing.org

I hope this isn't incorrect and you can understand what I am trying to ask.

PBODY

Quote
It does, but it means Installing the OpenNI library for Processing.


I was told to go to processing.org to help me out with processing but I don't know really where to begin, or what I should code into the arduino platform to be compatible with the OpenNi.

dxw00d

What chapter of the book are you at? According to the table of contents, the Arduino isn't involved until chapter 6, and then it is just responding to serial events sent from Processing. There doesn't seem to be a specific library for the Arduino.

To start with, you download Processing, from http://processing.org, and run the sketch you posted earlier in the Processing IDE.

PBODY

Quote
What chapter of the book are you at


I am on chapter 2

It says go to import library and go to SimpleOpenNI

than go to examples

OpenNi and click Depth Image

than it says if everything is installed correctly it will cause a window to open up with a black and white image of me

if I go to Program on my computer and OpenNi I have a  bunch of different options including depth image, hand tracking ect.

The book tells me it should run or something and the image matches the code.

I hope this isn't confusing if it is I will try to clarify apparently I am incoherent in my explanations I will work on this.

dxw00d

Ok. So:
1. Have you downloaded Processing?
2. Have you installed the SimpleOpenNI library into Processing?
3. Have you opened the DepthImage example sketch listed in the SimpleOpenNI examples?

If not, do so, because that is what you need to do.

This stage has nothing to do with the Arduino, or the Arduino IDE. It's all done in the Processing IDE.

PBODY

Quote
1. Have you downloaded Processing


I don't know if I did this how would I be able to tell?

2. Yes

3. Yes

okay does this mean
Quote
This stage has nothing to do with the Arduino, or the Arduino IDE. It's all done in the Processing IDE.

its all on my computer and not the arduino IDE?

dxw00d

How can you say yes to 2 and 3, if you don't know if you've done 1?

Go here: http://processing.org/download/

Download the version appropriate for your operating system.

Follow the instructions here: http://www.processing.org/learning/gettingstarted/

Quote
its all on my computer and not the arduino IDE?

Yes. It's all on your computer.

pYro_65

Like others have said, processing is a different language to what the Arduino IDE uses ( C++ ).

You will have to transpose your code which includes transposing the whole SimpleOpenNI library.

If the kinect can be used, there must be Arduino examples out there.

James C4S


If I put this into the arduino platform with the kinect connected to the computer and the SimpleOpenNi libraries uploaded would it do something?


That code has nothing to do with Kinect or Arduino.  It draws shapes in Processing.

I'm really confused on why you keep asking questions about Processing code on a non-Processing forum.
Capacitor Expert By Day, Enginerd by night.  ||  Personal Blog: www.baldengineer.com  || Electronics Tutorials for Beginners:  www.addohms.com

dxw00d

#25
Mar 28, 2012, 11:34 am Last Edit: Mar 28, 2012, 11:47 am by dxw00d Reason: 1
I'm confused why you've started another thread for the same thing.

http://arduino.cc/forum/index.php/topic,98548

Quote
What exactly would I be looking for at processing.org


I gave you links and instructions in the other thread. If you don't want to follow them, why keep asking questions. The book you have is based around using a Kinect with Processing. Much later (chapter 6) it uses Processing to send serial instructions to an Arduino, but it still uses Processing for the Kinect interface. If you aren't going to use Processing, then the book is no use to you.

Quote
If I put this into the arduino platform with the kinect connected to the computer and the SimpleOpenNi libraries uploaded would it do something?
or would I have to utilize something else?


You really have to realise that this has absolutely nothing at all to do with the Arduino. It is all done in Processing. To obtain Processing (as I put in your other thread):

Go here: http://processing.org/download/

Download the version appropriate for your operating system.

Follow the instructions here: http://www.processing.org/learning/gettingstarted/

AWOL

Threads merged to save anyone else wasting their time.
"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

PBODY

Thank you for all the help

I hope you guys understand I have no clue of what I am doing thank you for baring with me and being so generous even though I posted multiple questions, and apparently illogical questions due to arduino.

Sorry for any confusion and my absolute lack of knowledge

Maybe I should try to learn more before I ask a question

PBODY

Go Up