Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Where is example-protobuf-udp? #3

Open
Datagrdn opened this issue May 1, 2020 · 2 comments
Open

Where is example-protobuf-udp? #3

Datagrdn opened this issue May 1, 2020 · 2 comments

Comments

@Datagrdn
Copy link

Datagrdn commented May 1, 2020

Hey Madeline! Thanks for this awesome example, looking forward to getting it up and running.

My question is where is example-protobuf-udp? Or am I to create it in projectGenerator and add the files as described?

I tried doing the latter but received an error that none of the "google/protobuf/..." files were found. So I updated the locations of all of them to point to the google/protobuf directory in my usr folder. This got the application to compile but only led to a blank window.

I'm not sure what I'm missing here, would be grateful for your insight on this.

Thanks again!

@madelinegannon
Copy link
Owner

madelinegannon commented May 1, 2020

If you press SPACEBAR, do you see a bunch of particles on the screen? By default, the canvas should look blank until a hand is detected in the mediapipe handtracking demo we modified in the tutorial.

You shouldn't need to modify any headers ... but if it works, it works!

In case it's not working:

Make sure that this repo is downloaded to you $OF_ROOT/apps/myApps directory (folder structure is very important in oF). There's an overview here.

You can generate necessary xcode project files by clicking the Import button In the oF Project Generator. (There's a tutorial for that here).

I have a separate tutorial for setting up google protobuf in openframeworks here. You may want to look that over first.

Also, I should note that you don't need to broadcast the wrapper_hand_tracking.proto from the mediapipe demo. You can just send and receive formatted strings of landmarks over UDP. For example, sending "{1:x,y,z}" as Landmark 1 at point {x,y,z}.

@Datagrdn
Copy link
Author

Datagrdn commented May 1, 2020

Thanks for this! Nothing happens when I press SPACE so I'm looking that the additional resources here.

Going through everything again I have two questions:

  1. Since I just installed protobuf I don't have 3.6.1, will I need that to work with oF?

  2. I'm new to Bazel. How do I use it to build wrapper_hand_tracking.proto? I'm trying bazel build command but getting the error that there is no BUILD file

Thanks again, psyched to play with this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants