Skip to content

Instantly share code, notes, and snippets.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
### Keybase proof
I hereby claim:
* I am trainman419 on github.
* I am namniart (https://keybase.io/namniart) on keybase.
* I have a public key whose fingerprint is FB06 4594 56F8 8207 B6FD F475 D13C E12B 856C 9723
To claim this, I am signing this object:
@trainman419
trainman419 / gist:d8cf0c0f17dc05a8f940
Created May 16, 2014 21:17
Don't store the result of std::min in a const &
#include <stdio.h>
#include <algorithm>
class B {
public:
int b_;
B(int b) : b_(b) {}
~B() { b_ = 23; }
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@trainman419
trainman419 / notes.md
Last active August 29, 2015 14:04
build time notes

ROS ARM buildfarm timing notes

  • rospy trusty armhf #2
    • 16 seconds startup (pre pbuilder)
    • 57 seconds initial apt-get update
    • 9:27 to install dependencies
      • package dependencies, plus devscripts, fakeroot
      • common catkin dependencies: python-catkin-pkg, python-nose, python, python-empy
      • these are all candidates for inclusion in the extra packages list
  • 12 seconds timestamp and generate changelog
@trainman419
trainman419 / catkin.md
Last active August 29, 2015 14:07
catkin build tools performance comparison

Comparing the traditional catkin_make to catkin_make_isolated and catkin build

These aren't incredibly scientific; they're just designed to give me an idea of how the various existing build tools compare with one another. They're tested on the fairly large project I work on at my day job.

Tool catkin_make catkin_make_isolated catkin_tools
Build from scratch 8m2s 12m33s 8m47s
Rebuild, no changes 2s 19s 27s
Touch a cmakelists 52s 41s 59s
Touch a header 2m7s 2m38s 3m6s
@trainman419
trainman419 / imx6q-uddo.dts
Created October 11, 2014 02:34
UDOO-Quad LVDS DTS DTB
/*
* Copyright 2013 Freescale Semiconductor, Inc.
*
* Author: Fabio Estevam <fabio.estevam@freescale.com>
* Author: Austin Hendrix <namniart@gmail.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
CFLAGS=-mmcu=$(DEVICE) -Wall -Werror -Iros_lib -O -DF_CPU=16000000UL -Idagny_protocol
LDFLAGS=-mmcu=$(DEVICE)
ASFLAGS=-mmcu=$(DEVICE)
CXXFLAGS=$(CFLAGS)
LDLIBS=-lm
CSRC=motor.c i2c.c estop.c
CXXSRC=gps.cpp interrupt.cpp main.cpp steer.cpp TinyGPS.cpp sonar.cpp imu.cpp protocol.cpp
DRIVERS=adc.o bump.o power.o pwm.o serial.o serial-interrupt.o servo.o
http://wiki.ros.org/3d_navigation
* Source: svn https://code.ros.org/svn/wg-ros-pkg/branches/trunk_diamondback/sandbox/3d_navigation_icra12/
* Source: svn https://code.ros.org/svn/wg-ros-pkg/branches/trunk_diamondback/sandbox/3d_navigation/
uri: https://code.ros.org/svn/wg-ros-pkg/branches/trunk_diamondback/sandbox/3d_navigation/
uri: https://code.ros.org/svn/wg-ros-pkg/stacks/motion_planning_common/branches/arm_navigation_metrics
http://wiki.ros.org/actionlib_tutorials/Reviews/2009-10-01_User_Test
'''Brian''' - (This is a condensed version of the associated trac ticket [[https://code.ros.org/trac/ros-pkg/ticket/2880|#2880]]
'''Gil''' - (This is a condensed version of the associated Trac ticket [[https://code.ros.org/trac/ros-pkg/ticket/2982|#2982]])
- git:
local-name: actionlib
uri: https://github.com/ros-gbp/actionlib-release.git
version: release/hydro/actionlib/1.10.3-0
- git:
local-name: actionlib_msgs
uri: https://github.com/ros-gbp/common_msgs-release.git
version: release/hydro/actionlib_msgs/1.10.2-0
- git:
local-name: actionlib_tutorials