Skip to content

Latest commit

 

History

History

server

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Server

📂 Organization

├── requirements.txt    # Python requirements
|
├── setup.py            # Setup script for enviroment
|
├── /mcr/               # MoCap Rasp Module Package 
|
├── connect.sh          # Start the PTPd server
|
├── mocaprasp.py        # CLI Application that runs the real-time Capture Processes
|
└── /debug/             # Debug folder with Jupyter Notebook to debug the .csv offline

🏗️ Requirements

FIRST-TIME USERS: follow these steps to setup the application

It's highly recommended to create a Python Virtual Enviroment for requirements.txt installation.

  • Run the following
sudo apt-get install ptpd
sudo apt-get install -y libatlas-base-dev libhdf5-dev libhdf5-serial-dev libjasper-dev
pip3 install --editable .
  • Start the ptpd server
source connect.sh
  • Copy the matrices of the intrinsics calibration done in ../calib/ to ./mcr/misc/constants.py to the array cameraMat and distCoef.

  • Make sure mDNS is activated in your network and change the hostname of each Raspberry at the line to 'camX', where X is a number representing the camera ID. Do not use the same ID for different clients.

⚔️ Usage

FIRST-TIME USERS: understand ../debug/debugOffline.ipynb before changing the real-time python scripts.

You can find the commands for the system at:

mocaprasp --help

You can find the options of each Capture Process at:

mocaprasp cec --help
mocaprasp gpe --help
mocaprasp scr --help

🖼️ Example pics