Skip to content

Instantly share code, notes, and snippets.

View salmagro's full-sized avatar

SebasAlmagro salmagro

View GitHub Profile
@salmagro
salmagro / euler_from_quaternion.py
Created January 11, 2021 20:13
ROS2 euler to quaternion transformation.
def euler_from_quaternion(quaternion):
"""
Converts quaternion (w in last place) to euler roll, pitch, yaw
quaternion = [x, y, z, w]
Bellow should be replaced when porting for ROS 2 Python tf_conversions is done.
"""
x = quaternion.x
y = quaternion.y
z = quaternion.z
w = quaternion.w
@salmagro
salmagro / ROS2DebugVSCode.md
Created June 8, 2022 11:44 — forked from JADC362/ROS2DebugVSCode.md
Debug ROS2 C++ node on VSCode (Ubuntu)

Debug ROS2 C++ node on VSCode (Ubuntu)

Description

This is a small tutorial on how to debug a ROS2 C++ node usign VSCode.

Requeriments

This implementation was done using:

#!/usr/bin/env python
# coding: utf-8
# # CODE FOR CANNY EDGE DETECTION USING LIVE WEBCAM
#
# Live convolution: https://setosa.io/ev/image-kernels/
#
# Convolution arithmetics: https://github.com/vdumoulin/conv_arithmetic
#
# Kernels https://en.wikipedia.org/wiki/Kernel_(image_processing)