Skip to content

Commit

Permalink
add optitrack datastreaming instructions.
Browse files Browse the repository at this point in the history
  • Loading branch information
navigator8972 committed Aug 19, 2024
1 parent 104f234 commit 80ce3f2
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docs/robotlab.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ __TerraBot:__ [TERRA]({{ site.baseurl }}{% link robotlab/terrabot.md %}) is a ho

__Crazyflies:__ the crazyflies are micro-sized drones that can be used for projects, but it should be noted that they are fragile, and even though we have 8 of them and some spare parts, please be cautious when using them.

__the optitrack system:__ the system consist of 8 cameras positioned to give a good coverage of the entire lab, centered on the middle of the floor. Do not under any circumstances move any of the cameras. They will have to be re calibrated and can be potentially damaged if moved. The lab space at Sigursgade has a similar system used for research on human interaction.
__Moption Capture system:__ [Optitrack]({{ site.baseurl }}{% link robotlab/optitrack.md %}) system consist of 8 cameras positioned to give a good coverage of the entire lab, centered on the middle of the floor. Do not under any circumstances move any of the cameras. They will have to be re calibrated and can be potentially damaged if moved. The lab space at Sigursgade has a similar system used for research on human interaction.



Expand Down
22 changes: 22 additions & 0 deletions docs/robotlab/optitrack.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
layout: page
title: Robotlab - Optitrack
permalink: /robotlab/optitrack
---

The MoCap system has been connected to a computer (the "motive" computer) via a separated network switch. The Motive computer has dual network adapters so it is also connected to the main RobotLab network (currently via WiFi). To activate the optitrack system:

* Plug the power cable of the optitrack network switch;
* Turn on the Motive computer and log in the Windows system;
* Start the Motive application and check if the markers are visible and trackable in the GUI;
* Create named rigid-bodies or tracker sets for parsing the data. Note that Motive can remember created objects.

The data should be streamed if everything goes smoothly. Check options in the datastreaming tab if this was not the case. The official website has a detailed documentation about these options (https://docs.optitrack.com/motive/data-streaming). Basically, Motive is using the second network adapter (default IP should be 192.168.1.37) as a server so any other computers connecting to the RobotLab network can work as a client to read the data through standard socket programming.

Unsurprisingly, someone has created code libraries to handle the network setup and data parsing. You can choose one of below or search online for others that might integrate best with your program:

* [NatNet](https://optitrack.com/software/natnet-sdk/) the official SDK in C++ for Windows/Ubuntu/Fedora;
* [python-natnet-client](https://github.com/TimSchneider42/python-natnet-client.git) a relatively recent third-party library written in Python;
* [mocap_optitrack](https://github.com/ros-drivers/mocap_optitrack.git) maintained as one of the ROS drivers. Could be useful if you plan to connect the data to other ROS nodes.

The current wireless setup can transmit data at around 100Hz. Some applications might be sensitive to the rate of frame drop and other transportation over the RobotLab network. Consider to use ethernet cables if this is critical to your experiments.

0 comments on commit 80ce3f2

Please sign in to comment.