Skip to content

Instantly share code, notes, and snippets.

@ahoarau
ahoarau / wireshark_install.sh
Last active December 4, 2017 10:51
Install wireshark on Ubuntu 12.04 - 14.04 - 16.04 (fix non root users)
sudo apt-get install -y wireshark
sudo dpkg-reconfigure wireshark-common # answer yes
sudo groupadd wireshark
sudo usermod -a -G wireshark $USER
sudo chgrp wireshark /usr/bin/dumpcap
sudo chmod 750 /usr/bin/dumpcap
sudo setcap cap_net_raw,cap_net_admin=eip /usr/bin/dumpcap
sudo getcap /usr/bin/dumpcap
sudo reboot
@ahoarau
ahoarau / non-root-rtnet
Created June 17, 2015 13:54
Allow non-root RTNet Users
Add the user to the xenomai group :
```bash
user -a -G xenomai student
```
Remove sudo passwd for rtnet operations :
```
sudo visudo
```
@ahoarau
ahoarau / reinstall_openni
Created June 8, 2015 13:09
reinstall openni
sudo apt-get install --reinstall libopenni-dev \
libopenni-nite-dev \
libopenni-sensor-primesense-dev \
libopenni-sensor-primesense0 \
libopenni0 \
libopenni2-0 \
libopenni2-dev \
openni-utils
@gaoyifan
gaoyifan / ubuntu-install-RTT-base-on-RTAI.md
Last active October 27, 2016 11:09
RTT installation for ubuntu14.04 base on RTAI kernel

RTT installation for ubuntu14.04 base on RTAI kernel

install requirement (assuming that use the image I provided)

apt-get install build-essential cmake libxerces-c2-dev omniorb libboost-all-dev doxygen

get RTT source

cd /usr/src
git clone git://gitorious.org/orocos-toolchain/rtt.git

add environment varible

export RTAI_ROOT_DIR=/usr/realtime
export RTAI_INCLUDE_DIR=$RTAI_ROOT_DIR/include

export RTAI_LIBRARY=$RTAI_ROOT_DIR/lib

@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'
@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
@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 / .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 / 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 / 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'