Offline
Newbie
Karma: 0
Posts: 13
|
 |
« Reply #15 on: March 27, 2012, 11:04:57 am » |
Nothing in this incoherent run-on makes sense I don't know if I should take that as constructive criticism or in another way. 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-openniThis 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 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
Newbie
Karma: 0
Posts: 13
|
 |
« Reply #16 on: March 27, 2012, 11:11:52 am » |
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
Newbie
Karma: 0
Posts: 13
|
 |
« Reply #17 on: March 27, 2012, 11:15:48 am » |
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
Faraday Member
Karma: 19
Posts: 3118
|
 |
« Reply #18 on: March 27, 2012, 11:20:48 am » |
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
Newbie
Karma: 0
Posts: 13
|
 |
« Reply #19 on: March 27, 2012, 11:32:30 am » |
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
Faraday Member
Karma: 19
Posts: 3118
|
 |
« Reply #20 on: March 27, 2012, 12:03:32 pm » |
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
Newbie
Karma: 0
Posts: 13
|
 |
« Reply #21 on: March 27, 2012, 12:11:59 pm » |
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 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
Faraday Member
Karma: 19
Posts: 3118
|
 |
« Reply #22 on: March 27, 2012, 12:21:25 pm » |
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/its all on my computer and not the arduino IDE? Yes. It's all on your computer.
|
|
|
|
|
Logged
|
|
|
|
|
North Queensland, Australia
Offline
Edison Member
Karma: 31
Posts: 1182
|
 |
« Reply #23 on: March 27, 2012, 08:47:32 pm » |
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
Faraday Member
Karma: 41
Posts: 5171
CMiYC
|
 |
« Reply #24 on: March 27, 2012, 08:50:24 pm » |
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
|
|
|
|
|
Gosport, UK
Offline
Faraday Member
Karma: 19
Posts: 3118
|
 |
« Reply #25 on: March 28, 2012, 04:34:30 am » |
I'm confused why you've started another thread for the same thing. http://arduino.cc/forum/index.php/topic,98548What 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. 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
Brattain Member
Karma: 138
Posts: 19066
I don't think you connected the grounds, Dave.
|
 |
« Reply #26 on: March 28, 2012, 06:28:24 am » |
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.
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 13
|
 |
« Reply #27 on: April 08, 2012, 10:41:46 am » |
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
|
|
|
|
|
|