Skip to content

Instantly share code, notes, and snippets.

@sdshmkh
sdshmkh / double_differential.urdf
Last active September 10, 2026 23:11
double_differential
<?xml version="1.0"?>
<robot name="tank_double_differential">
<!-- Materials -->
<material name="chassis_grey">
<color rgba="0.5 0.5 0.5 1.0"/>
</material>
<material name="main_drive_blue">
<color rgba="0.1 0.3 0.8 1.0"/>
</material>
@sdshmkh
sdshmkh / homography.py
Last active November 21, 2024 17:52
Find Homography
def find_homography(X, X_dash):
'''
Given a set of N correspondences of the form [x,y] and [x',y'], fit homography.
'''
equations = []
num_points = X.shape[0]
for i in range(num_points):
x, y = X[i, 0], X[i, 1] # Original points
x_dash, y_dash = X_dash[i, 0], X_dash[i, 1] # Transformed points
@sdshmkh
sdshmkh / nginx.conf
Created June 19, 2018 12:12 — forked from JPry/nginx.conf
Nginx - Force PDFs to download
location ~* /(.*\.pdf) {
types { application/octet-stream .pdf; }
default_type application/octet-stream;
}