Skip to content

Instantly share code, notes, and snippets.

@smits
smits / lqt-test.lua
Created March 30, 2012 08:46
rttlua GUI example
require 'qtcore'
require 'qtgui'
require 'os'
app = QApplication(select('#',...) + 1, {'lua', ...})
dp = rtt.getTC():getPeer('deployer')
dp:loadComponent('name','OCL::LuaComponent')
name = dp:getPeer('name')
name:exec_str('function updateHook() print(rtt.getTime()) end')
./i386-softmmu/qemu-system-i386 -s -kernel /home/gan/project/xenomai_prj/buildroot-2012.08/output/build/linux-2.6.38.8/arch/x86/boot/bzImage -hda /home/gan/project/xenomai_prj/buildroot-2012.08/output/images/rootfs.ext2 -append "console=ttyS0 root=/dev/sda rw xeno_hal.clockfreq=1600000000 xeno_hal.cpufreq=1600000000" -nographic
./i386-softmmu/qemu-system-i386 -kernel ~/project/xenomai_prj/linux-2.6.38.8/build/arch/i386/boot/bzImage -hda ~/project/xenomai_prj/busybox-1.20.2/rootfs.img -append "console=ttyS0 root=/dev/sda xeno_hal.clockfreq=1600000000 xeno_hal.cpufreq=1600000000" -nographic
@JamesMGreene
JamesMGreene / gitflow-breakdown.md
Last active November 5, 2024 15:51
`git flow` vs. `git`: A comparison of using `git flow` commands versus raw `git` commands.

Initialize

gitflow git
git flow init git init
  git commit --allow-empty -m "Initial commit"
  git checkout -b develop master

Connect to the remote repository

@ahoarau
ahoarau / gist:cdbda9b95cd62438a335
Created February 16, 2015 10:11
Rebuild all dkms modules
ls /var/lib/initramfs-tools | sudo xargs -n1 /usr/lib/dkms/dkms_autoinstaller start
@ahoarau
ahoarau / super_install.sh
Last active September 8, 2015 17:08
Everything from scratch
#!/usr/bin sh
echo 'Upgrades'
sudo apt-get update
sudo apt-get -y upgrade
#sudo apt-get -y dist-upgrade
echo 'Git'
sudo apt-get install -y git
echo 'OpenSSH'
@ahoarau
ahoarau / rtnet_connection
Last active September 20, 2015 14:22
Kuka RTNET connection
#!/bin/bash
### BEGIN INIT INFO
# Provides: rtnet_kuka
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# X-Interactive: false
# Short-Description: Starts RTNet components for the Kuka LWR
# Description: Start/stop RTNet components for the Kuka LWR 4+ at ISIR
@ahoarau
ahoarau / .config
Created February 25, 2015 13:33
Kuka Xenomai 3 config
#
# Automatically generated file; DO NOT EDIT.
# Linux/x86_64 3.16.0 Kernel Configuration
#
CONFIG_64BIT=y
CONFIG_X86_64=y
CONFIG_X86=y
CONFIG_INSTRUCTION_DECODER=y
CONFIG_OUTPUT_FORMAT="elf64-x86-64"
CONFIG_ARCH_DEFCONFIG="arch/x86/configs/x86_64_defconfig"
@ahoarau
ahoarau / downgrade_gazebo_2.2-1.9.sh
Last active September 8, 2015 17:17
Downgrade gazebo2.2->1.9 on 12.04+Hydro
sudo apt-get remove gazebo-current libsdformat-dev libsdformat1 ros-hydro-gazebo-msgs-current ros-hydro-gazebo-plugins-current ros-hydro-gazebo-ros-current ros-hydro-gazebo-ros-pkgs-current
sudo apt-get install gazebo ros-hydro-desktop-full ros-hydro-gazebo-msgs ros-hydro-gazebo-plugins ros-hydro-gazebo-ros ros-hydro-gazebo-ros-control ros-hydro-gazebo-ros-pkgs ros-hydro-simulators sdformat
@ahoarau
ahoarau / lwr_create_pkg
Created March 23, 2015 10:32
lwr create pkg
#!/bin/bash
if (( $# < 1 ))
then
echo "Usage: ... lwr_create_pkg {NAME} {ADDITIONAL-DEPS}"
exit 1
fi
catkin_create_pkg "$@" rtt rtt_ros rtt_roscomm rtt_rosparam rtt_rosclock kuka_lwr_fri rtt_lwr_gazebo rtt_lwr_sim std_msgs diagnostic_msgs geometry_msgs message_generation orocos_kdl kdl_conversions kdl_typekit eigen_typekit
@minshallj
minshallj / foo.js
Last active March 13, 2023 18:28
roslibjs example
//* The Ros object, wrapping a web socket connection to rosbridge.
var ros = new ROSLIB.Ros({
url: 'ws://localhost:9090' // url to your rosbridge server
});
//* A topic for messaging.
var exampleTopic = new ROSLIB.Topic({
ros: ros,
name: '/com/endpoint/example', // use a sensible namespace
messageType: 'std_msgs/String'