Skip to content

Instantly share code, notes, and snippets.

basler_params:
-
name: AcquisitionFrameRateAbs
type: float
value: 5.0
-
name: ExposureTimeAbs
type: float
value: 2500.0
-
#include <ros/ros.h>
#include <moveit/robot_model_loader/robot_model_loader.h>
int main(int argc, char **argv) {
ros::init(argc, argv, "kinematic_plugin_tests");
ros::AsyncSpinner spinner(1);
spinner.start();
ROS_INFO("Loading URDF");
#!/usr/bin/env python
import actionlib
from control_msgs.msg import (
FollowJointTrajectoryAction,
FollowJointTrajectoryGoal,
FollowJointTrajectoryActionGoal,
FollowJointTrajectoryResult,
JointTrajectoryControllerState)
import matplotlib.pyplot as plt
import matplotlib.animation as animation
@jonbinney
jonbinney / test.py
Created November 8, 2015 09:25
Test for concurrency problems in catkin tools
#!/usr/bin/env python
import os
import os.path
import sys
import subprocess
import random
def make_cmakelists(pkg_name):
return '\n'.join([
'cmake_minimum_required(VERSION 2.8.3)',
<?xml version="1.0" ?>
<!-- =================================================================================== -->
<!-- | This document was autogenerated by xacro from src/nao_robot/nao_description/urdf/nao_robot_v4.urdf.xacro | -->
<!-- | EDITING THIS FILE BY HAND IS NOT RECOMMENDED | -->
<!-- =================================================================================== -->
<robot name="nao" xmlns:xacro="http://ros.org/wiki/xacro">
<!--
ROS urdf definition of the Nao humanoid robot by Aldebaran Robotics
This is part of the Nao-Stack of University of Freiburg, available at:
- git: {local-name: src/gazebo, uri: 'git@github.com:jonbinney/gazebo_ros_wrapper', version: 'indigo-devel'}
- git: {local-name: src/sdformat, uri: 'git@github.com:jonbinney/sdformat_ros_wrapper', version: 'indigo-devel'}
- git: {local-name: src/gazebo_ros_pkgs, uri: 'git@github.com:ros-simulation/gazebo_ros_pkgs', version: 'indigo-devel'}
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<script type="text/javascript" src="http://cdn.robotwebtools.org/EventEmitter2/current/eventemitter2.min.js"></script>
<script type="text/javascript" src="http://cdn.robotwebtools.org/roslibjs/current/roslib.min.js"></script>
<script type="text/javascript" type="text/javascript">
#!/usr/bin/env python
from __future__ import print_function
import re, sys, os, os.path
def looks_like_python_code(filename, file_str):
if os.path.splitext(filename)[1] == '.py':
return True
elif file_str[:100].find(r'#!') != -1 and file_str[:100].find('python') != -1:
return True
else:
@jonbinney
jonbinney / Dockerfile
Last active December 13, 2017 14:37
Dockerfile for ROS hydro on ubuntu precise
FROM ubuntu:precise
# ubuntu precise image doesn't have universe repo
run echo "deb http://archive.ubuntu.com/ubuntu precise main universe" > /etc/apt/sources.list
run apt-get update
RUN apt-get install -y wget
# install ROS
RUN sh -c 'echo "deb http://packages.ros.org/ros/ubuntu precise main" > /etc/apt/sources.list.d/ros-latest.list'
RUN wget http://packages.ros.org/ros.key -O - | apt-key add -
@jonbinney
jonbinney / get_ceres
Last active December 25, 2015 17:59
BASH script for downloading ceres-solver
#!/bin/bash
# based on https://raw.github.com/ethz-asl/ceres/master/make.sh
set -e
CURRENT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
INSTALL_DIR=$CURRENT_DIR/install
SRC_DIR=$CURRENT_DIR/src