Skip to main content

Using Motive and GazeboOSC for realtime OSC messages

The following tutorial explains the use of Motive with Gazebo for sending real-time Mocap data to other applications.

Preparing Motive for sending internal NatNet data to Gazebo. 

Go to the 'data streaming' pane in Motive and set the streaming destination to "Loopback" for streaming data wireless through 'Streaming Vlan' (ask your nearest blackbox manager for more info) or select a network switch for wired connection (The switch in the blackbox workshop at location Oudenoord is by default set to 192.168.10.30). NatnetThe NatNet data can now be received locally in GazeboOSC (see picture)pictures below)

Screenshot (11).png

Screenshot (13).png

In Gazebo you need to build a patch to convert Natnet data to OSC (see picture). Use the following actors by right clicking in the Gazebo workspace; 

  • NatNet: this actor reads the NatNet data which is streamed from Motive. Fill in the IP adres with the corresponding network interface number and push reset
  • NatNet2OSC: this converts the NatNet data stream from Motive  to OSC data.
  • OSC Output: this actor sends out the OSC data to its destination. Fill in the destination IP adres and port number determined by the software who receives the OSC data.

Gazebo_1.png

Once the correct connection is established between Motive and Gazebo the patch cordspatchcords connecting the actors should colour green. To monitor the OSC data from GazeboOSC you can usedownload the free OSC and MIDI monitoring application Protokol.  

The following example shows GazeboOSC distributing OSC data from ZigSim to different destinationsdestinations.

A further explanation about Gazebo and it's use can be found at: https://bookstack.hku.nl/books/gazebosc