Skip to content

Instantly share code, notes, and snippets.

View michalpelka's full-sized avatar

Michał Pełka michalpelka

View GitHub Profile
from PyPDF2 import PdfWriter, PdfReader
import glob
import os.path
INPUT_DIR = "data"
OUTPUT_DIR="data_proc"
files = glob.glob(INPUT_DIR+"/*.pdf")
for f in files:
basename = os.path.basename(f)
basename = basename[:-4]
print (basename)

Setup VSCode and Debug Open 3D Engine with LLDB

VSCode allows to development of CMake applications and gives a full debugging experience.

Please follow the installation guide using the Debian package:

Visual Studio Code - Code Editing. Redefined

System components

@michalpelka
michalpelka / reamde.md
Created January 27, 2023 08:06
Dockerfile
FROM ros:humble-ros-core-jammy
ENV O3DE_HASH=5b344a0be6
ENV O3DE_EXTRAS_HASH=ros2_project_template
ENV PROJECT_NAME=WarehouseTest
ENV WORKDIR=/data/workspace
WORKDIR $WORKDIR
ARG DEBIAN_FRONTEND=noninteractive
@michalpelka
michalpelka / Dockerfile
Last active December 28, 2024 23:35
Livox2 && Fast Lio
# docker build -t livox -f Dockerfile .
# rocker --x11 --nvidia --network host livox
# set host ip to 192.168.1.5
# assume Livox ip is 192.168.1.177
# inside container:
# ping 192.168.1.177
# vim /ws/src/livox_ros_driver2/config/MID360_config.json
# screen -m bash -c '. /ws/devel/setup.sh && roslaunch /ws/src/livox_ros_driver2/launch_ROS1/msg_MID360.launch'
@michalpelka
michalpelka / docker
Last active March 31, 2024 08:04
KISS-ICP Docker
# docker build -t kiss-icp -f Dockerfile .
# rocker --x11 --nvidia kiss-icp --volume /home/michal/Downloads/:/data/
# kiss_icp_pipeline --visualize --topic /os1_cloud_node/points /data/rooster_2020-03-10-10-36-30_0-006.bag
ARG ROS_DISTRO=noetic
FROM ros:$ROS_DISTRO-ros-core
SHELL ["/bin/bash", "-c"]
RUN apt-get update && apt-get install -y \
@michalpelka
michalpelka / Test.prefab
Created January 11, 2023 11:31
Prefab with collider
{
"ContainerEntity": {
"Id": "Entity_[1146574390643]",
"Name": "Level",
"Components": {
"Component_[10641544592923449938]": {
"$type": "EditorInspectorComponent",
"Id": 10641544592923449938
},
"Component_[11632104724996571508]": {
git filter-branch -f --env-filter '
export GIT_COMMITTER_NAME="$GIT_AUTHOR_NAME"
export GIT_COMMITTER_EMAIL="$GIT_AUTHOR_EMAIL"
' HEAD~35..HEAD
[RX] - $VNQMR,+0.004183,+0.001149,+0.089285,+0.995997,+00.0113,-00.2384,+00.1800,+00.020,-00.092,-09.683,-00.000272,+00.000824,+00.000073,T0000000543*3D
[RX] - $VNQMR,+0.004177,+0.001150,+0.089283,+0.995997,+00.0106,-00.2398,+00.1784,+00.002,-00.094,-09.708,-00.000982,+00.000048,-00.000938,T0000000544*37
[RX] - $VNQMR,+0.004178,+0.001148,+0.089282,+0.995997,+00.0113,-00.2398,+00.1784,+00.006,-00.087,-09.674,+00.000451,-00.000027,+00.000039,T0000000544*3C
[RX] - $VNQMR,+0.004180,+0.001149,+0.089278,+0.995997,+00.0106,-00.2391,+00.1792,-00.002,-00.076,-09.667,+00.000616,+00.000737,+00.000853,T0000000544*3E
[RX] - $VNQMR,+0.004179,+0.001147,+0.089272,+0.995998,+00.0107,-00.2357,+00.1784,+00.022,-00.087,-09.697,-00.000921,-00.000422,-00.001381,T0000000544*35
[RX] - $VNQMR,+0.004187,+0.001146,+0.089277,+0.995997,+00.0107,-00.2357,+00.1792,-00.003,-00.078,-09.721,+00.000965,+00.000649,+00.000055,T0000000544*33
[RX] - $VNQMR,+0.004193,+0.001148,+0.089277,+0.995997,+00.0113,-00.2357,+00.1784,-00.006,-00.078,-09.676,+
#pragma once
#include <Eigen/Dense>
#include <Eigen/Geometry>
#include <glob.h>
#include <vector>
#include <string>
#include <sstream>
#include <fstream>
#include <unordered_map>
@michalpelka
michalpelka / export_collider_urdf.bpy.py
Created October 4, 2022 19:58
Export Collider definition from Blender to use in URDF
import bpy
import
obj = bpy.context.active_object
l = obj.location
e = obj.rotation_euler
s = obj.scale
#print ('<origin rpy="%f %f %f" xyz="%f %f %f"/>' % (e[0],e[1],e[2], l[0],l[1],l[2]))
print ('<origin rpy="%f %f %f" xyz="%f %f %f"/>' % (e[0],e[1],e[2], l[0],l[1],l[2]))