2018-04-16 05:42:53 +03:00
|
|
|
# Tools for MYNT® EYE cameras
|
2018-04-14 16:17:00 +03:00
|
|
|
|
|
|
|
## Prerequisites
|
|
|
|
|
2018-04-25 07:28:06 +03:00
|
|
|
[OpenCV](https://opencv.org/),
|
|
|
|
|
|
|
|
```bash
|
|
|
|
# Linux, macOS
|
|
|
|
export OpenCV_DIR=~/opencv
|
|
|
|
|
|
|
|
# Windows
|
|
|
|
set OpenCV_DIR=C:\opencv
|
|
|
|
```
|
|
|
|
|
2018-04-16 05:42:53 +03:00
|
|
|
Python packages,
|
2018-04-14 16:17:00 +03:00
|
|
|
|
|
|
|
```bash
|
|
|
|
cd <sdk>/tools/
|
|
|
|
sudo pip install -r requirements.txt
|
|
|
|
```
|
|
|
|
|
2018-04-16 05:42:53 +03:00
|
|
|
[ROS](http://www.ros.org/) if using rosbag.
|
|
|
|
|
2018-04-25 07:28:06 +03:00
|
|
|
## Build
|
2018-04-15 16:32:14 +03:00
|
|
|
|
|
|
|
```bash
|
|
|
|
cd <sdk>
|
|
|
|
make tools
|
|
|
|
```
|
|
|
|
|
2018-04-25 07:28:06 +03:00
|
|
|
---
|
|
|
|
|
|
|
|
## Record data (mynteye dataset)
|
|
|
|
|
2018-04-15 16:32:14 +03:00
|
|
|
```bash
|
|
|
|
./tools/_output/bin/dataset/record
|
2018-04-25 07:28:06 +03:00
|
|
|
|
|
|
|
# Windows
|
|
|
|
.\tools\_output\bin\dataset\record.bat
|
2018-04-15 16:32:14 +03:00
|
|
|
```
|
|
|
|
|
|
|
|
## Analytics data (mynteye dataset)
|
|
|
|
|
|
|
|
### imu_analytics.py
|
|
|
|
|
|
|
|
```bash
|
|
|
|
python tools/analytics/imu_analytics.py -i dataset -c tools/config/mynteye/mynteye_config.yaml \
|
|
|
|
-al=-1.2,1.2 -gl= -gdu=d -gsu=d -kl=
|
|
|
|
```
|
|
|
|
|
|
|
|
### stamp_analytics.py
|
|
|
|
|
|
|
|
```bash
|
|
|
|
python tools/analytics/stamp_analytics.py -i dataset -c tools/config/mynteye/mynteye_config.yaml
|
|
|
|
```
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
## Record data (rosbag)
|
2018-04-14 16:17:00 +03:00
|
|
|
|
|
|
|
```bash
|
|
|
|
cd <sdk>
|
|
|
|
make ros
|
|
|
|
```
|
|
|
|
|
|
|
|
```bash
|
|
|
|
source wrappers/ros/devel/setup.bash
|
|
|
|
roslaunch mynt_eye_ros_wrapper mynteye.launch
|
|
|
|
```
|
|
|
|
|
|
|
|
```bash
|
|
|
|
rosbag record -O mynteye.bag /mynteye/left /mynteye/imu /mynteye/temp
|
|
|
|
```
|
|
|
|
|
2018-04-15 16:32:14 +03:00
|
|
|
## Analytics data (rosbag)
|
2018-04-14 16:17:00 +03:00
|
|
|
|
|
|
|
### imu_analytics.py
|
|
|
|
|
|
|
|
```bash
|
|
|
|
python tools/analytics/imu_analytics.py -i mynteye.bag
|
|
|
|
```
|
|
|
|
|
|
|
|
### stamp_analytics.py
|
|
|
|
|
|
|
|
```bash
|
|
|
|
python tools/analytics/stamp_analytics.py -i mynteye.bag
|
|
|
|
```
|
2018-04-16 07:20:31 +03:00
|
|
|
|
|
|
|
---
|
|
|
|
|
2018-04-21 10:45:33 +03:00
|
|
|
## Writer
|
|
|
|
|
|
|
|
### device_info_writer.cc
|
|
|
|
|
|
|
|
```bash
|
|
|
|
./tools/_output/bin/writer/device_info_writer tools/writer/config/device.info
|
2018-04-25 07:28:06 +03:00
|
|
|
|
|
|
|
# Windows
|
|
|
|
.\tools\_output\bin\writer\device_info_writer.bat tools\writer\config\device.info
|
2018-04-21 10:45:33 +03:00
|
|
|
```
|
|
|
|
|
|
|
|
### img_params_writer.cc
|
|
|
|
|
|
|
|
```bash
|
|
|
|
./tools/_output/bin/writer/img_params_writer tools/writer/config/img.params
|
2018-04-25 07:28:06 +03:00
|
|
|
|
|
|
|
# Windows
|
|
|
|
.\tools\_output\bin\writer\img_params_writer.bat tools\writer\config\img.params
|
2018-04-21 10:45:33 +03:00
|
|
|
```
|
|
|
|
|
|
|
|
### imu_params_writer.cc
|
|
|
|
|
|
|
|
```bash
|
|
|
|
./tools/_output/bin/writer/imu_params_writer tools/writer/config/imu.params
|
2018-04-25 07:28:06 +03:00
|
|
|
|
|
|
|
# Windows
|
|
|
|
.\tools\_output\bin\writer\imu_params_writer.bat tools\writer\config\imu.params
|
2018-04-21 10:45:33 +03:00
|
|
|
```
|
|
|
|
|
|
|
|
---
|
|
|
|
|
2018-04-16 07:20:31 +03:00
|
|
|
## Checksum
|
|
|
|
|
|
|
|
```bash
|
|
|
|
./tools/checksum/md5sum.sh <file or directory>
|
|
|
|
```
|