Skip to content

Instantly share code, notes, and snippets.

View AlexPasqua's full-sized avatar
🏎️

Alex Pasquali AlexPasqua

🏎️
View GitHub Profile
@AlexPasqua
AlexPasqua / pointclouds_pcd_to_bin.py
Last active December 3, 2023 06:44
Converter of pointclouds form .pcd to .bin format
import os
import argparse
import open3d as o3d
import numpy as np
from typing import Union
from open3d.open3d.geometry import PointCloud
def read_pcd(path: str) -> np.ndarray:
"""
@AlexPasqua
AlexPasqua / dbconnector.py
Last active September 11, 2020 09:06
Python DB connector: script / tutorial to connect to a database and perform simple operations on a table using psycopg2
import psycopg2
import re
def connect():
"""
Function to connect to the server
NOTE: this, as it is, works only on my machine. You need to insert your own connection data
:return: psycopg2 'connection' object to the university server
:rtype: psycopg2 'connection' object