Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env python2
# Author: Chris Dellin <[email protected]>
# Date: 2016-09-14
# Script to scrape a working OAuth code from Google
# using the approach from dequis and hastebrot
# for use with hangups, purple-hangouts, etc.
# Requires packages python-gi and gir1.2-webkit-3.0 on Ubuntu 16.04.
def yaml_fast_load(fp):
collision_dict = {}
planner = None
planner_dict = None
number = None
number_dict = None
<?xml version="1.0" encoding="utf-8"?>
<!-- TWO WAM ARMS ORIENTED UPRIGHT AND NEXT TO ONE ANOTHER -->
<KinBody name="WAM7">
<!-- ============= RIGHT ARM ==================== -->
$ grep -C4 vectorfield_planner, src/herbpy/src/herbpy/herbrobot.py
actual_planner = Sequence(
# First, try the straight-line trajectory.
self.snap_planner,
# Then, try a few simple (and fast!) heuristics.
#self.vectorfield_planner,
#self.greedyik_planner,
# Next, try a trajectory optimizer.
self.trajopt_planner or self.chomp_planner
)
@cdellin
cdellin / ode-herb-bug.py
Created March 23, 2016 19:55
ODE HERB bug test case
#!/usr/bin/env python2
from __future__ import print_function
from __future__ import unicode_literals
from __future__ import absolute_import
from __future__ import division
import atexit
import subprocess
import openravepy
# what resource_retriever.get_filename(url, use_protocol=False) should be!
@cdellin
cdellin / fcl-test.py
Created January 17, 2016 20:00
FCL Test Case
#!/usr/bin/env python2
from __future__ import print_function
from __future__ import unicode_literals
from __future__ import absolute_import
from __future__ import division
import atexit
import subprocess
import numpy
import openravepy
-- Using PYTHON_EXECUTABLE: /usr/bin/python
-- Python version: 2.7
-- Using Debian Python package layout
-- Using CATKIN_ENABLE_TESTING: ON
-- Call enable_testing()
-- Using CATKIN_TEST_RESULTS_DIR: /home/cdellin/ws-tableclearing/build/test_results
-- Found gtest sources under '/usr/src/gtest': gtests will be built
-- catkin 0.5.89
-- BUILD_SHARED_LIBS is on
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#!/bin/sh
# 2015-01-12 Chris Dellin <[email protected]>
# example catkin environment hook to manage the OPENRAVE_DATA path
# on a per-package basis
# determine if we're in the devel or install space
if [ "@DEVELSPACE@" = "True" -o "@DEVELSPACE@" = "true" ]
then
DATA=@CMAKE_CURRENT_SOURCE_DIR@/ordata
else
@cdellin
cdellin / gist:695d3f4811efd97d3020
Created January 29, 2015 02:56
Test script to reproduce bad Herb sphere locations
#!/usr/bin/env python2
import atexit
import openravepy
import orcdchomp.orcdchomp
# create openrave robot
openravepy.RaveInitialize(True, level=openravepy.DebugLevel.Info)
atexit.register(openravepy.RaveDestroy)
e = openravepy.Environment()
atexit.register(e.Destroy)