Skip to content

Instantly share code, notes, and snippets.

View eric-schleicher's full-sized avatar

Eric Schleicher eric-schleicher

View GitHub Profile
@eric-schleicher
eric-schleicher / delete_git_submodule.md
Created December 15, 2021 03:14 — forked from myusuf3/delete_git_submodule.md
How effectively delete a git submodule.

To remove a submodule you need to:

  • Delete the relevant section from the .gitmodules file.
  • Stage the .gitmodules changes git add .gitmodules
  • Delete the relevant section from .git/config.
  • Run git rm --cached path_to_submodule (no trailing slash).
  • Run rm -rf .git/modules/path_to_submodule (no trailing slash).
  • Commit git commit -m "Removed submodule "
  • Delete the now untracked submodule files rm -rf path_to_submodule
@eric-schleicher
eric-schleicher / txt
Last active September 3, 2021 07:30
2021-09-02_mvcmd_test_0x5555_bypass
user@xps15:~/depthai-python$ python3 tests/cam_test_depth_node2.py
[2021-09-02 21:43:32.925] [debug] Python bindings - version: 2.9.0.0.dev+897b7fc495cec0dfc2d2cf2987041d6e56fe2beb from 2021-08-11 23:48:04 +0300 build: 2021-09-03 02:25:07 +0000
[2021-09-02 21:43:32.925] [debug] Library information - version: 2.9.0, commit: 74566c4be2ab3ebf8077010450dafcd956d352e7 from 2021-08-11 23:24:49 +0300, build: 2021-09-03 02:25:07 +0000
[2021-09-02 21:43:32.925] [debug] Initialize - finished
{'width': b'3200', 'height': b'1800'}
DepthAI version: 2.9.0.0.dev+897b7fc495cec0dfc2d2cf2987041d6e56fe2beb
DepthAI path: /home/user/.local/lib/python3.6/site-packages/depthai.cpython-36m-x86_64-linux-gnu.so
[2021-09-02 21:43:33.037] [debug] Resources - Archive 'depthai-bootloader-fwp-0.0.12.tar.xz' open: 3ms, archive read: 108ms
[2021-09-02 21:43:33.603] [debug] Device - pipeline serialized, OpenVINO version: 2021.4
[2021-09-02 21:43:33.659] [debug] Resources - Archive 'depthai-device-fwp-866727a3c4744b4a19040edb810462557402b9ab.t
@eric-schleicher
eric-schleicher / log
Last active January 19, 2021 01:34
depthai- install error - console output
toaster@computername:~/workspaces/toaster/depthai/depthai$ python3 install_requirements.py
Requirement already satisfied: pip in /home/toaster/.local/lib/python3.6/site-packages (20.3.3)
WARNING: Skipping depthai as it is not installed.
Collecting argcomplete==1.12.1
Downloading argcomplete-1.12.1-py2.py3-none-any.whl (38 kB)
Collecting depthai==0.4.0.0
Downloading depthai-0.4.0.0.tar.gz (84 kB)
|████████████████████████████████| 84 kB 1.2 MB/s
Installing build dependencies ... done
Getting requirements to build wheel ... done
@eric-schleicher
eric-schleicher / SculptrVR_batchtooling.py
Created September 19, 2019 15:22
Batch Utility for point cloud conversions for ScultprVR
#!/usr/bin/python
# this process based on the utility located here:
# https://github.com/EX0l0N/ply-to-SculptrVR-csv
import os, subprocess
util_location = "third_party" + os.sep + "ply-to-SculptrVR-csv" + os.sep + "ply2csv.exe"
csv_destination = "J:\\SteamLibrary\\steamapps\\common\\sculptrvr\\SculptrVR\\CSVs"
@eric-schleicher
eric-schleicher / 88-k4a.rules
Created July 2, 2019 22:38
example udev rule file for Kine4Azure
# this file belongs in /etc/udev/rules.d/
# ATTR{product}=="Kinect4Azure"
SUBSYSTEM=="usb", ATTR{idVendor}=="045e", ATTR{idProduct}=="097a", MODE="0666"
SUBSYSTEM=="usb", ATTR{idVendor}=="045e", ATTR{idProduct}=="097b", MODE="0666"
SUBSYSTEM=="usb", ATTR{idVendor}=="045e", ATTR{idProduct}=="097c", MODE="0666"
SUBSYSTEM=="usb", ATTR{idVendor}=="045e", ATTR{idProduct}=="097d", MODE="0666"
SUBSYSTEM=="usb", ATTR{idVendor}=="045e", ATTR{idProduct}=="097e", MODE="0666"
@eric-schleicher
eric-schleicher / with viz
Created April 25, 2018 19:31
with vizualization
<launch>
<!-- Choose visualization -->
<!--<arg name="rviz" default="false" />-->
<arg name="rtabmapviz" default="true"/>
<arg name="rgbd_kinect2" default="false"/>
<include if="$(arg rgbd_kinect2)" file="$(find kinect2_bridge)/launch/kinect2_bridge.launch"/>
<!-- Corresponding config files -->
<arg name="rtabmapviz_cfg" default="-d $(find rtabmap_ros)/launch/config/rgbd_gui.ini"/>
<!--<arg name="rviz_cfg" default="-d $(find rtabmap_ros)/launch/config/rgbd.rviz" />-->
@eric-schleicher
eric-schleicher / .launch
Created January 10, 2018 19:43
launch file
<launch>
<!-- Choose visualization -->
<arg name="rviz" default="false" />
<arg name="rtabmapviz" default="true" />
<!-- Corresponding config files -->
<arg name="rtabmapviz_cfg" default="-d $(find rtabmap_ros)/launch/config/rgbd_gui.ini" />
<arg name="rviz_cfg" default="-d $(find rtabmap_ros)/launch/config/rgbd.rviz" />
@eric-schleicher
eric-schleicher / vive-tracker-ubuntu-instructions.md
Created October 11, 2017 18:26 — forked from DanielArnett/vive-tracker-ubuntu-instructions.md
How to use the HTC Vive Trackers in Ubuntu using Python 3.6.

This tutorial will guide you through the setup of the HTC Vive Tracker in Python 3.6 on Ubuntu 14.04.

Prerequesites

Up to date graphics drivers

x86 architecture

SteamVR requires >4GB disk space

Script started on Thu 21 Sep 2017 05:31:15 PM PDT
rosuser@capture-bot:~/src$ tar -xvf ../v4.2-006r2.tar.gz
Vrui-4.2-006r2/
Vrui-4.2-006r2/AL/
Vrui-4.2-006r2/AL/ALContextData.cpp
Vrui-4.2-006r2/AL/ALContextData.h
Vrui-4.2-006r2/AL/ALGeometryWrappers.h
Vrui-4.2-006r2/AL/ALObject.cpp
Vrui-4.2-006r2/AL/ALObject.h
Vrui-4.2-006r2/AL/ALTemplates.h
@eric-schleicher
eric-schleicher / catkin_make
Created September 7, 2017 05:20
workspace make with ros_kinfu
rosuser@capture-bot:~/catkin_ws$ catkin_make -DCMAKE_BUILD_TYPE=RelWithDebInfo
Base path: /home/rosuser/catkin_ws
Source space: /home/rosuser/catkin_ws/src
Build space: /home/rosuser/catkin_ws/build
Devel space: /home/rosuser/catkin_ws/devel
Install space: /home/rosuser/catkin_ws/install
####
#### Running command: "make cmake_check_build_system" in "/home/rosuser/catkin_ws/build"
####
####