Skip to content

Instantly share code, notes, and snippets.

View grassjelly's full-sized avatar
🎯
Focusing

Juan Miguel Jimeno grassjelly

🎯
Focusing
View GitHub Profile
@grassjelly
grassjelly / copy_textures.sh
Last active October 11, 2023 16:27
copy_textures.sh
for d in http/client/assets/* ; do
echo $d
if [[ -d "$d/materials/textures" ]]; then
if [ -f "$d/meshes" ]; then
rm $d/meshes
fi
if [ ! -d "$d/meshes" ]; then
mkdir -p $d/meshes
fi
cp -r $d/materials/textures/* $d/meshes

1. Add UDVE Rules

echo 'SUBSYSTEM=="usb", ATTRS{idVendor}=="03e7", MODE="0666"' | sudo tee /etc/udev/rules.d/80-movidius.rules
sudo udevadm control --reload-rules && sudo udevadm trigger

2. Install ROS2 Driver

sudo apt install ros-galactic-depthai-ros
KERNEL=="ttyACM?", SUBSYSTEM=="tty", ATTRS{idVendor}=="1fc9", ATTRS{idProduct}=="0135", MODE="0666", SYMLINK+="linobase"
KERNEL=="ttyACM*", ATTRS{idVendor}=="16c0", ATTRS{idProduct}=="0483", MODE:="0777", SYMLINK+="linobase"
#!/usr/bin/env python
#
# ********* Sync Write Example *********
#
#
# Available SCServo model on this example : All models using Protocol SCS
# This example is tested with a SCServo(STS/SMS/SCS), and an URT
# Be sure that SCServo(STS/SMS/SCS) properties are already set as %% ID : 1 / Baudnum : 6 (Baudrate : 1000000)
#
@grassjelly
grassjelly / install_opencv2_ubuntu.sh
Created November 24, 2020 19:05 — forked from arthurbeggs/install_opencv2_ubuntu.sh
Install OpenCV2 in Ubuntu
#!/bin/bash
################################################################################
### OpenCV2 Installation Script ###
################################################################################
# Source code at https://github.com/arthurbeggs/scripts #
################################################################################
# #
# Feel free to copy and modify this file. Giving me credit for it is your #
# choice, but please keep references to other people's work, which I don't #
#!/usr/bin/env bash
set -e
sudo apt install -y libgmp-dev \
libcgal-dev \
libcgal-demo
cd $HOME
git clone https://github.com/CGAL/cgal
#!/usr/bin/env bash
set -e
sudo apt-key adv --keyserver keys.gnupg.net --recv-key F6E65AC044F831AC80A06380C8B3A55A6F3EFCDE || sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-key F6E65AC044F831AC80A06380C8B3A55A6F3EFCDE
sudo add-apt-repository "deb http://realsense-hw-public.s3.amazonaws.com/Debian/apt-repo xenial main" -u
sudo apt-get install -y librealsense2-dkms
sudo apt-get install -y librealsense2-utils
{
  "urdf_path": "“test_path”",
  "links": {
    "left_front": "[“lf_hip_link”, “lf_upper_leg_link”, “lf_lower_leg_link”,  “lf_foot_link”]",
    "right_front": "[“rf_hip_link”, “rf_upper_leg_link”, “rf_lower_leg_link”,  “rf_foot_link”]",
    "left_hind": "[“lh_hip_link”, “lh_upper_leg_link”, “lh_lower_leg_link”,  “lh_foot_link”]",
    "right_hind": "[“rh_hip_link”, “rh_upper_leg_link”, “rh_lower_leg_link”,  “rh_foot_link”]"
  },
  "joints": {
    "left_front": "[“lf_hip_joint”, “lf_upper_leg_joint”, “lf_lower_leg_joint”]",
BLA::Matrix<4,4> denominator =
{
2, 1, -4, 0,
1, 0, 0, -1,
0, 1, 0, -3,
0, 0, 1, -1
};
BLA::Matrix<4,4> x_numerator =
{