Skip to content

Instantly share code, notes, and snippets.

View xiaodong2077's full-sized avatar

Xiaodong Huang xiaodong2077

  • MercuryNavi
  • Guangzhou, China
  • 12:25 (UTC +08:00)
View GitHub Profile
@xiaodong2077
xiaodong2077 / insta360-x3.rules
Created October 11, 2023 03:11
access instal360 X3
# please move this file to /etc/udev/rules.d
# then reload rules : sudo udevadm control --reload-rules
# if you already plug-in camera, remove it and re-plug-in
# Allow {OWNER} to access Insta360 X3 USB device
SUBSYSTEM=="usb", ATTR{idVendor}=="2e1a", ATTR{idProduct}=="0002", MODE="0666", OWNER="xiaodong"
@xiaodong2077
xiaodong2077 / create_compile_commands.sh
Created March 11, 2024 07:11
Get a whole compile_commands.json(which is used in cland and sonarlint) file with `catkin_make_isolated` of ROS. You also need to add this option `-DCMAKE_EXPORT_COMPILE_COMMANDS=1` when you run `catkin_make_islodated`
#! /bin/bash
# Merge`build_isolated/*/compile_commands.json` to `build/compile_commands.json`
output_file="build/compile_commands.json"
rm -f "$output_file"
echo "[" > "$output_file"
@xiaodong2077
xiaodong2077 / custom.css
Last active April 26, 2024 15:18 — forked from Ynng/custom.css
vscode vtuber logo
.editor-group-watermark > .letterpress{
background-image: url("https://raw.githubusercontent.com/Aikoyori/ProgrammingVTuberLogos/main/VSCode/VSCode-Thick.png") !important;
opacity: .100;
aspect-ratio: 3/2 !important;
}
@xiaodong2077
xiaodong2077 / manage-3rd-with-stow.md
Last active July 26, 2024 08:00
use stow to manage 3rd libraries

introduction

OS: Ubuntu 18.04, Ubuntu 20.04

Download stow from apt.

command lines

Replace xxx with the 3rd library you want to name.

@xiaodong2077
xiaodong2077 / clean_bash.sh
Created May 16, 2024 07:12
livox_ros_driver2 integration
#! /usr/bin/bash
source /opt/ros/noetic/setup.bash
rm -rf build
rm -rf devel
if [ ! -f src/livox_ros_driver2/package.xml ]; then
cp -f src/livox_ros_driver2/package_ROS1.xml src/livox_ros_driver2/package.xml
fi
@xiaodong2077
xiaodong2077 / im19_data.h
Created October 16, 2024 00:47
C++ header about the data struct of FMI IM19.
#ifndef IM19_DATA_H
#define IM19_DATA_H
#include <cstdint>
struct __attribute__((packed)) IMUData {
char header[4] = {'f', 'm', 'i', 'm'};
double hhmmss_ss;
float acc_x;
float acc_y;
float acc_z;