CreativeInquiry / ofxRobotArm

A collection of universal classes used for robotic arm control software
Other
131 stars 40 forks source link

Recommended MoCap/Mocappath example settings? #4

Closed harpreets closed 8 years ago

harpreets commented 8 years ago

My Windows setup: Optitrack 6-camera, Motive (1.9.0) on a Windows (8.1) machine [Firewall access on network allowed], Broadcasting on Wireless LAN through Motive My MAC Setup: example-follow-mocap running through Xcode (to use ofxNatNet parsing already existing in the example), Wired LAN connection for UR3

However, it seems like like I'm not getting any rigidbody data on my Mac application even when I tried to use the simple ofxNatNet example. The same example on Windows machine with Motive set on loopback and server/localinterface set as 127.0.0.1 in ofxNatNet example works perfectly fine for streaming. (I am also then able to transmit this rigidbody data through OSC over Wifi just to check if my wireless connection is fine)

For streaming from Windows (Motive) to Mac (ofxNatNet) - Server IP is confirmed set as the Wireless LAN IP of Windows machine and local interface is set as Wireless LAN IP for Mac. However, I am not getting the connection established or any rigid body data currently. Any recommended settings for establishing the connection or something that might be missing?

madelinegannon commented 8 years ago

Here's a screenshot of our Data Streaming setup for Motive Tracker 1.9.0: streaming-settings-motive-tracker-1_9_0

You can also try rearranging your LAN connection in System Preferences > Network on your mac. Arrange the LAN connection above your wifi connection.

harpreets commented 8 years ago

Well, things are a bit mysterious here.

I have the same settings in Motive (1.9.0) and my network analyzer (Wireshark) shows quite some data being sent every ms. I did a screen cap and pushed it here: https://www.youtube.com/watch?v=txat5g87qy8 - which shows that the data is being sent indeed.

However, on the Mac side where bare ofxNatNet example is running - I am getting an erratic behavior. The connection goes on/off (because it times out due to no incoming data) and I do not receive any rigidbody data at all. Screencap for this is here: https://www.youtube.com/watch?v=7tfKDfM05VA

In addition, what's didn't work:

However, when I do run the ofxNatNet client on the same Windows machine as the Motive and set the server IP/local interface as 192.168.11.5 (same as the local interface in Motive) - I do get the rigidbody data, right frame speed etc. Only when I try to go on Mac to receive data via Wifi is when I get this problem. My ping request from Mac to Windows (running Motive) looks like this:

danzeeeman commented 8 years ago

Is your Mac on multiple networks or not?

harpreets commented 8 years ago

@danzeeeman Currently only on one Wireless network.

danzeeeman commented 8 years ago

Oh you should not use WIFI that causes major issues. We setup a wired lan here at the studio On Thu, Jul 7, 2016 at 10:19 PM Harpreet Sareen notifications@github.com wrote:

Currently only on one Wireless network.

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/CreativeInquiry/ofxRobotArm/issues/4#issuecomment-231259638, or mute the thread https://github.com/notifications/unsubscribe/AAr6zBtctH25PFRmZlVydTqKdFlZcKuCks5qTbOVgaJpZM4JFDhN .

harpreets commented 8 years ago

^ This seems to have solved it for me.

danzeeeman commented 8 years ago

I'll make a note in our docs about needing a LAN vs WiFi

Thanks!

On Mon, Jul 11, 2016 at 1:35 AM Harpreet Sareen notifications@github.com wrote:

Closed #4 https://github.com/CreativeInquiry/ofxRobotArm/issues/4.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/CreativeInquiry/ofxRobotArm/issues/4#event-718267657, or mute the thread https://github.com/notifications/unsubscribe/AAr6zKOmPCsFRBRX61iOE_d_TnXnL6wOks5qUdYwgaJpZM4JFDhN .