Skip to content

Instantly share code, notes, and snippets.

View StepTurtle's full-sized avatar

Barış Zeren StepTurtle

  • Yıldız Technical University
  • Istanbul
  • 05:40 (UTC +03:00)
View GitHub Profile
@mebasoglu
mebasoglu / install-open3d.sh
Created April 6, 2022 10:48
Open3D installer script
#! /usr/bin/env bash
# Colors
RED='\033[0;31m'
GREEN='\033[0;32m'
BLUE='\033[0;34m'
PURPLE='\033[0;35m'
NC='\033[0m' # No Color
# Emojis
@rotu
rotu / CMakeLists.txt
Last active August 11, 2025 12:14
CLion top level ROS2 Workspace CMakeLists
cmake_minimum_required(VERSION 3.14)
project("ROS2 Master")
# usually I put this in a separate file include("/opt/ros/_common/Colcon.cmake")
function(colcon_add_subdirectories)
cmake_parse_arguments(PARSE_ARGV 0 "ARG" "" "BUILD_BASE;BASE_PATHS" "")
message("search criteria: ${ARGV}")
execute_process(COMMAND colcon list
@sem1h
sem1h / Quaternion vs Euler Angles in Unity [TR].md
Last active June 14, 2025 19:14
Quaternion vs Euler Angles in Unity (Turkish)

Unity'de 3D çalışırken kafa kurcalayan konulardan biri Quaternion'ların ne işe yaradığı ve neden bazı yerlerde rotasyon değeri olarak Euler Angle değil de Quaternion kullanıldığıdır.

3 Boyutlu rotasyon belirtmek için kullanılan Euler Açısı, bir 3x3 rotasyon matrisi ile ifade edilebiliyor. Örnek:

Euler Açısı

İdeal bir sistemde her bir rotasyon matrisinin, yalnızca tek açıya isabet etmesini isteriz. Sorun şu ki bu matrisler, her zaman için tek açıya tekabül etmeyebiliyor.

@fernandoc1
fernandoc1 / kml_linestring_loading.cpp
Created August 4, 2017 21:05
This code loads all linestring from a KML file, using libkml
#include <algorithm>
#include <iostream>
#include <kml/base/file.h>
#include <kml/dom.h>
#include <kml/engine.h>
#include <string>
#include <vector>
typedef std::vector<kmldom::LineStringPtr> LineStringVector;
@yoggy
yoggy / SerialPort.cpp
Created August 11, 2012 10:58
SerialPort class sample using boost::asio::serial_port
#include "StdAfx.h"
#include <Setupapi.h>
#pragma comment(lib, "Setupapi.lib")
#include "SerialPort.h"
SerialPort::SerialPort(void) : end_of_line_char_('\n')
{
}
@yoggy
yoggy / boost_thread_learning.cpp
Created May 25, 2012 09:37
boost::thread memo?
#if WIN32
#define WIN32_LEAN_AND_MEAN
#include <SDKDDKVer.h>
#include <Windows.h>
#endif
#include <boost/thread.hpp>
#include <boost/thread/condition.hpp>
#include <iostream>