Pages: 1 [2]   Go Down
Author Topic: Errors in code  (Read 2065 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 13
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.

Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 13
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Code:
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.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 13
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Gosport, UK
Offline Offline
Faraday Member
**
Karma: 21
Posts: 3113
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 13
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Gosport, UK
Offline Offline
Faraday Member
**
Karma: 21
Posts: 3113
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 13
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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?
Logged

Gosport, UK
Offline Offline
Faraday Member
**
Karma: 21
Posts: 3113
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

North Queensland, Australia
Offline Offline
Edison Member
*
Karma: 65
Posts: 2107
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged


Austin, TX
Offline Offline
Faraday Member
**
Karma: 71
Posts: 6132
Baldengineer
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Capacitor Expert By Day, Enginerd by night.  ||  Personal Blog: www.baldengineer.com  || Electronics Tutorials for Beginners:  www.addohms.com

Gosport, UK
Offline Offline
Faraday Member
**
Karma: 21
Posts: 3113
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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/
« Last Edit: March 28, 2012, 04:47:49 am by dxw00d » Logged

Global Moderator
UK
Offline Offline
Brattain Member
*****
Karma: 290
Posts: 25773
I don't think you connected the grounds, Dave.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Threads merged to save anyone else wasting their time.
Logged

"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.

Offline Offline
Newbie
*
Karma: 0
Posts: 13
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

Pages: 1 [2]   Go Up
Jump to: