NatNet methods

NatNet is a library designed by OptiTrack and freely available. This library allows the user to communicate OptiTrack motion capture (mocap) data from Motive (mocap software) to another PC.

MATMAV supports NatNet in versions 2.4 and above.

NatNet Connection

You can connect to a Motive session using the following commands:

obj.set_natnet_clientIP('169.254.29.66');
obj.set_natnet_mocapIP('169.254.151.169');
obj.ConnectNatNet();

To get the number of rigid bodies currently defined in Motive session, use:

obj.getnatnet_nrb();

To get the North-East-Down (NED) position of a certain rigid body from Motive, use:

rbID=1;% rigid body ID as defined in Motive
obj.getnatnetPosNED(rbID)

To disconnect from Motive, use:

obj.DisconnectNatNet():

results matching ""

    No results matching ""