Skip to content

Instantly share code, notes, and snippets.

View orensbruli's full-sized avatar

Esteban Martinena Guerrero orensbruli

  • PickNik Robotics
  • Cáceres
  • 22:27 (UTC +02:00)
View GitHub Profile
@orensbruli
orensbruli / parse_colcon_times.py
Last active June 7, 2023 14:01
Parsing build logs
#!/usr/bin/env python3
import sys
import re
import statistics
from collections import defaultdict
def time_to_milliseconds(time_str):
seconds = 0
if 'min' in time_str:
@orensbruli
orensbruli / CMakeLists.txt
Created March 7, 2023 06:04 — forked from dirk-thomas/CMakeLists.txt
CMakeLists.txt example with ament auto
cmake_minimum_required(VERSION 2.8.3)
project(foo)
if(NOT WIN32)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Wall")
endif()
# find dependencies
@orensbruli
orensbruli / CMakeLists.txt
Created March 7, 2023 06:03 — forked from dirk-thomas/CMakeLists.txt
CMakeLists.txt example with catkin
cmake_minimum_required(VERSION 2.8.3)
project(foo)
# find dependencies
find_package(catkin REQUIRED COMPONENTS message_generation roscpp std_msgs)
find_package(Boost REQUIRED)
@orensbruli
orensbruli / cmakelists.txt
Created July 21, 2020 11:47
Minimum OSG QDockWidget bug problem.
cmake_minimum_required(VERSION 2.8.11)
find_package(Qt5 REQUIRED COMPONENTS Gui Widgets Sql Core OpenGL Xml XmlPatterns )
set(QT_LIBRARIES Qt5::Gui Qt5::Core Qt5::Widgets Qt5::Sql Qt5::OpenGL Qt5::Xml Qt5::XmlPatterns)
MACRO (QT_WRAP_UI output )
FOREACH( input_file ${ARGN} )
MESSAGE( STATUS "Generating header file from ${input_file}")
QT5_WRAP_UI( ${output} ${input_file} )