Using Quaternions to Resolve Gimbal Lock in Euler Angle Rotations
Problem Context
In a drone video projection system, orientation data from the drone's gimbal was used to render video in a 3D scene. However, due to sensor inaccuracies, direct use of Euler angles resulted in misaligned projections. A correction interface was implemented to adjust roll, pitch, and yaw values, but testing revealed that roll a ...
Posted on Tue, 04 Aug 2026 16:15:19 +0000 by boiy
ROS TF Coordinate Transformation: TF Tree
1. Introduction to TF Tree
In robotic systems, there exist kinematic and dynamic models. For rigid-body robots, the dynamic model is based on rigid body dynamics and represents the relationship between forces/torques and motion states during robot motion. The kinematic model, on the other hand, consists of a series of coordinate frames attache ...
Posted on Sun, 26 Jul 2026 16:22:41 +0000 by Giddy Rob
Computer Vision Bounding Box Operations
When resizing images in computer vision applications, bounding box coordinates must be scaled proportionally to maintain accurate object detection.
import cv2
import numpy as np
from ultralytics.utils.ops import scale_boxes
# Load the original image
original_image = cv2.imread("sample_images/vehicle.jpg")
original_height, original_w ...
Posted on Fri, 12 Jun 2026 16:37:48 +0000 by chancho
Geographic Coordinate System Transformations
Spatial Reference SystemsWGS-84: The standard geodetic reference system used globally. It serves as the foundation for GPS and is adopted by international mapping platforms like Google Maps.GCJ-02: Often referred to as the Mars coordinate system. It is an obfuscated version of WGS-84 implemented for regulatory compliance, utilized by services s ...
Posted on Sat, 23 May 2026 21:24:11 +0000 by Allen4172
OpenCV and ROS: Technical Notes on Image Processing, Build Systems, and Coordinate Transformations
OpenCV Fundamentals
Single Channel Display in OpenCV
When extracting and displaying a single B, G, or R channel from a full-color image, the result appears as a grayscale image. This is not actually a grayscale representation—it uses black, white, and shades of gray for display purposes. The intensity corresponds to the channel's value: brighte ...
Posted on Fri, 15 May 2026 21:19:08 +0000 by sujithfem