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". Natnet data can now be received locally in GazeboOSC (see picture)
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.
Once the correct connection is established between Motive and Gazebo the patch cords connecting the actors should colour green. To monitor the OSC data from GazeboOSC you can use the free OSC and MIDI monitoring application Protokol.
The following example shows GazeboOSC distributing OSC data from ZigSim to different destinations
A further explanation about Gazebo and it's use can be found at: https://bookstack.hku.nl/books/gazebosc