code stringlengths 1 1.49M | vector listlengths 0 7.38k | snippet listlengths 0 7.38k |
|---|---|---|
#
#
# Copyright (c) 2010, Georgia Tech Research Corporation
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright
# notice, ... | [
[
1,
0,
0.2963,
0.0093,
0,
0.66,
0,
4,
0,
1,
0,
0,
4,
0,
0
],
[
1,
0,
0.3056,
0.0093,
0,
0.66,
0.0909,
775,
0,
2,
0,
0,
775,
0,
0
],
[
1,
0,
0.3241,
0.0093,
0,
0.66... | [
"import mekabot.hrl_robot as hr",
"import hrl_lib.util as ut, hrl_lib.transforms as tr",
"import math, numpy as np",
"import copy",
"import sys",
"sys.path.append('../')",
"import compliant_trajectories as ct",
"import segway_motion_calc as smc",
"def compute_workspace(z, hook_angle):\n firenze =... |
#
#
# Copyright (c) 2010, Georgia Tech Research Corporation
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright
# notice, ... | [
[
1,
0,
0.3368,
0.0105,
0,
0.66,
0,
775,
0,
1,
0,
0,
775,
0,
0
],
[
1,
0,
0.3474,
0.0105,
0,
0.66,
0.0909,
781,
0,
1,
0,
0,
781,
0,
0
],
[
1,
0,
0.3579,
0.0105,
0,
... | [
"import hrl_lib.util as ut",
"import matplotlib_util.util as mpu",
"import math, numpy as np",
"import sys",
"def plot_workspace(pts,ha,z):\n if pts.shape[1] == 0:\n return\n mpu.figure()\n good_location = pts.mean(1)\n mpu.plot_yx(pts[1,:].A1,pts[0,:].A1,label='ha:%.1f'%(math.degrees(ha)... |
#
#
# Copyright (c) 2010, Georgia Tech Research Corporation
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright
# notice, ... | [
[
1,
0,
0.4844,
0.0156,
0,
0.66,
0,
954,
0,
1,
0,
0,
954,
0,
0
],
[
1,
0,
0.5,
0.0156,
0,
0.66,
0.1111,
775,
0,
1,
0,
0,
775,
0,
0
],
[
14,
0,
0.7188,
0.0156,
0,
0.... | [
"import numpy as np",
"import hrl_lib.util as ut",
"p = ut.load_pickle('eq_pos_2010May01_214434.pkl')",
"d = ut.load_pickle('stiffness_2010May01_214512.pkl')",
"n = 2",
"pos_list = d['pos_list']",
"force_list = d['force_list']",
"stiff_list = []",
"for pos,force in zip(pos_list,force_list):\n dx ... |
#
#
# Copyright (c) 2010, Georgia Tech Research Corporation
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright
# notice, ... | [
[
1,
0,
0.31,
0.01,
0,
0.66,
0,
478,
0,
1,
0,
0,
478,
0,
0
],
[
1,
0,
0.32,
0.01,
0,
0.66,
0.1429,
4,
0,
1,
0,
0,
4,
0,
0
],
[
1,
0,
0.33,
0.01,
0,
0.66,
0.2857... | [
"import m3.toolbox as m3t",
"import mekabot.hrl_robot as hr",
"import time",
"import math, numpy as np",
"import hrl_lib.util as ut, hrl_lib.transforms as tr",
"def record_initial(firenze):\n equilibrium_pos_list = []\n for i in range(50):\n equilibrium_pos_list.append(firenze.end_effector_po... |
#
#
# Copyright (c) 2010, Georgia Tech Research Corporation
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright
# notice, ... | [
[
1,
0,
0.0347,
0.0011,
0,
0.66,
0,
359,
0,
1,
0,
0,
359,
0,
0
],
[
1,
0,
0.0369,
0.0011,
0,
0.66,
0.0357,
526,
0,
2,
0,
0,
526,
0,
0
],
[
1,
0,
0.038,
0.0011,
0,
0... | [
"import scipy.optimize as so",
"import math, numpy as np",
"import pylab as pl",
"import sys, optparse, time",
"import copy",
"from enthought.mayavi import mlab",
"import mekabot.hrl_robot as hr",
"import mekabot.coord_frames as mcf",
"import matplotlib_util.util as mpu",
"import roslib; roslib.lo... |
#
#
# Copyright (c) 2010, Georgia Tech Research Corporation
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright
# notice, ... | [
[
1,
0,
0.1301,
0.0041,
0,
0.66,
0,
509,
0,
4,
0,
0,
509,
0,
0
],
[
1,
0,
0.1341,
0.0041,
0,
0.66,
0.1,
526,
0,
2,
0,
0,
526,
0,
0
],
[
1,
0,
0.1382,
0.0041,
0,
0.6... | [
"import sys, time, os, optparse",
"import math, numpy as np",
"import copy",
"import mekabot.coord_frames as mcf",
"import compliant_trajectories as ct",
"import m3.toolbox as m3t",
"import roslib; roslib.load_manifest('2010_icra_epc_pull')",
"import roslib; roslib.load_manifest('2010_icra_epc_pull')"... |
#
#
# Copyright (c) 2010, Georgia Tech Research Corporation
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright
# notice, ... | [
[
1,
0,
0.0794,
0.0025,
0,
0.66,
0,
796,
0,
1,
0,
0,
796,
0,
0
],
[
8,
0,
0.0819,
0.0025,
0,
0.66,
0.037,
630,
3,
1,
0,
0,
0,
0,
1
],
[
1,
0,
0.0893,
0.0025,
0,
0.6... | [
"import roslib",
"roslib.load_manifest('equilibrium_point_control')",
"import numpy as np, math",
"import scipy.optimize as so",
"import scipy.ndimage as ni",
"import matplotlib_util.util as mpu",
"import hrl_lib.util as ut",
"import hrl_lib.transforms as tr",
"import hrl_hokuyo.hokuyo_processing as... |
#
#
# Copyright (c) 2010, Georgia Tech Research Corporation
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright
# notice, ... | [
[
1,
0,
0.2735,
0.0085,
0,
0.66,
0,
796,
0,
1,
0,
0,
796,
0,
0
],
[
8,
0,
0.2735,
0.0085,
0,
0.66,
0.1,
630,
3,
1,
0,
0,
0,
0,
1
],
[
1,
0,
0.2821,
0.0085,
0,
0.66,... | [
"import roslib; roslib.load_manifest('2010_icra_epc_pull')",
"import roslib; roslib.load_manifest('2010_icra_epc_pull')",
"import rospy",
"from geometry_msgs.msg import Point32",
"import arm_trajectories as at",
"from threading import RLock",
"import numpy as np",
"import time",
"def circle_estimato... |
#
#
# Copyright (c) 2010, Georgia Tech Research Corporation
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright
# notice, ... | [
[
1,
0,
0.301,
0.0097,
0,
0.66,
0,
509,
0,
2,
0,
0,
509,
0,
0
],
[
8,
0,
0.3107,
0.0097,
0,
0.66,
0.0909,
243,
3,
1,
0,
0,
0,
0,
1
],
[
1,
0,
0.3204,
0.0097,
0,
0.6... | [
"import sys,os",
"sys.path.append(os.environ['HRLBASEPATH']+'/usr/advait/LPI')",
"import cam_utm_lpi as cul",
"import hrl_lib.util as ut",
"import hrl_lib.transforms as tr",
"import mekabot.coord_frames as mcf",
"import math, numpy as np",
"import util as uto",
"import tilting_hokuyo.processing_3d a... |
#!/usr/bin/python
import sys, os
sys.path.append(os.environ['HRLBASEPATH']+'/src/libraries/')
import cameras.dragonfly as dr
import roslib; roslib.load_manifest('modeling_forces')
import rospy
import cv
from collections import deque
import time
import math, numpy as np
import glob
import hrl_lib.util as ut
import hr... | [
[
1,
0,
0.0103,
0.0034,
0,
0.66,
0,
509,
0,
2,
0,
0,
509,
0,
0
],
[
8,
0,
0.0137,
0.0034,
0,
0.66,
0.0714,
243,
3,
1,
0,
0,
0,
0,
1
],
[
1,
0,
0.0172,
0.0034,
0,
0.... | [
"import sys, os",
"sys.path.append(os.environ['HRLBASEPATH']+'/src/libraries/')",
"import cameras.dragonfly as dr",
"import roslib; roslib.load_manifest('modeling_forces')",
"import roslib; roslib.load_manifest('modeling_forces')",
"import rospy",
"import cv",
"from collections import deque",
"impor... |
#
# Assumes that all the logs are in one folder with the file names
# giving the different mechanisms, trial number, open or close etc.
#
import commands
import os
import os.path as pt
import glob
import math, numpy as np
import scipy.signal as ss
import scipy.cluster as clus
import roslib; roslib.load_manifest('mode... | [
[
1,
0,
0.0037,
0.0006,
0,
0.66,
0,
760,
0,
1,
0,
0,
760,
0,
0
],
[
1,
0,
0.0043,
0.0006,
0,
0.66,
0.0222,
688,
0,
1,
0,
0,
688,
0,
0
],
[
1,
0,
0.0049,
0.0006,
0,
... | [
"import commands",
"import os",
"import os.path as pt",
"import glob",
"import math, numpy as np",
"import scipy.signal as ss",
"import scipy.cluster as clus",
"import roslib; roslib.load_manifest('modeling_forces')",
"import roslib; roslib.load_manifest('modeling_forces')",
"import modeling_force... |
import roslib; roslib.load_manifest('modeling_forces')
import rospy
import hrl_lib.util as ut
import hrl_lib.transforms as tr
import matplotlib_util.util as mpu
import hrl_tilting_hokuyo.display_3d_mayavi as d3m
import modeling_forces.smooth as mfs
import kinematics_estimation as ke
import glob
import math, numpy a... | [
[
1,
0,
0.002,
0.001,
0,
0.66,
0,
796,
0,
1,
0,
0,
796,
0,
0
],
[
8,
0,
0.002,
0.001,
0,
0.66,
0.0312,
630,
3,
1,
0,
0,
0,
0,
1
],
[
1,
0,
0.003,
0.001,
0,
0.66,
... | [
"import roslib; roslib.load_manifest('modeling_forces')",
"import roslib; roslib.load_manifest('modeling_forces')",
"import rospy",
"import hrl_lib.util as ut",
"import hrl_lib.transforms as tr",
"import matplotlib_util.util as mpu",
"import hrl_tilting_hokuyo.display_3d_mayavi as d3m",
"import modeli... |
#
# Subscribe to ObjectDetection message and convert a pickle.
#
#
#
import roslib; roslib.load_manifest('modeling_forces')
import rospy
from checkerboard_detector.msg import ObjectDetection
import hrl_lib.util as ut
import hrl_lib.transforms as tr
from std_msgs.msg import Empty
import numpy as np
import time
def ... | [
[
1,
0,
0.1096,
0.0137,
0,
0.66,
0,
796,
0,
1,
0,
0,
796,
0,
0
],
[
8,
0,
0.1096,
0.0137,
0,
0.66,
0.0909,
630,
3,
1,
0,
0,
0,
0,
1
],
[
1,
0,
0.1233,
0.0137,
0,
0.... | [
"import roslib; roslib.load_manifest('modeling_forces')",
"import roslib; roslib.load_manifest('modeling_forces')",
"import rospy",
"from checkerboard_detector.msg import ObjectDetection",
"import hrl_lib.util as ut",
"import hrl_lib.transforms as tr",
"from std_msgs.msg import Empty",
"import numpy a... |
import roslib; roslib.load_manifest('modeling_forces')
import rospy
from geometry_msgs.msg import Point32
from articulation_msgs.msg import ModelMsg
from articulation_msgs.msg import TrackMsg
from geometry_msgs.msg import Pose, Point, Quaternion
from threading import RLock
import numpy as np
import time
def model_c... | [
[
1,
0,
0.0238,
0.0119,
0,
0.66,
0,
796,
0,
1,
0,
0,
796,
0,
0
],
[
8,
0,
0.0238,
0.0119,
0,
0.66,
0.0769,
630,
3,
1,
0,
0,
0,
0,
1
],
[
1,
0,
0.0357,
0.0119,
0,
0.... | [
"import roslib; roslib.load_manifest('modeling_forces')",
"import roslib; roslib.load_manifest('modeling_forces')",
"import rospy",
"from geometry_msgs.msg import Point32",
"from articulation_msgs.msg import ModelMsg",
"from articulation_msgs.msg import TrackMsg",
"from geometry_msgs.msg import Pose, Po... |
import math, numpy as np
import glob
import roslib; roslib.load_manifest('hrl_tilting_hokuyo')
import hrl_tilting_hokuyo.display_3d_mayavi as d3m
import matplotlib_util.util as mpu
import hrl_lib.util as ut
if __name__ == '__main__':
import optparse
p = optparse.OptionParser()
p.add_option('-f', '--fn... | [
[
1,
0,
0.0286,
0.0143,
0,
0.66,
0,
526,
0,
2,
0,
0,
526,
0,
0
],
[
1,
0,
0.0429,
0.0143,
0,
0.66,
0.1429,
958,
0,
1,
0,
0,
958,
0,
0
],
[
1,
0,
0.0714,
0.0143,
0,
... | [
"import math, numpy as np",
"import glob",
"import roslib; roslib.load_manifest('hrl_tilting_hokuyo')",
"import roslib; roslib.load_manifest('hrl_tilting_hokuyo')",
"import hrl_tilting_hokuyo.display_3d_mayavi as d3m",
"import matplotlib_util.util as mpu",
"import hrl_lib.util as ut",
"if __name__ == ... |
import commands
import os
def aggregate_plots(dir, name_list, extension_list):
n = len(name_list)
for i in range(n):
#for nm in name_list:
nm = name_list[i]
ex = extension_list[i]
pngs_list = commands.getoutput('find %s/0* -name "*%s.%s"'%(dir, nm, ex))
pngs_list = pngs_li... | [
[
1,
0,
0.0426,
0.0213,
0,
0.66,
0,
760,
0,
1,
0,
0,
760,
0,
0
],
[
1,
0,
0.0638,
0.0213,
0,
0.66,
0.3333,
688,
0,
1,
0,
0,
688,
0,
0
],
[
2,
0,
0.2979,
0.3617,
0,
... | [
"import commands",
"import os",
"def aggregate_plots(dir, name_list, extension_list):\n n = len(name_list)\n for i in range(n):\n #for nm in name_list:\n nm = name_list[i]\n ex = extension_list[i]\n pngs_list = commands.getoutput('find %s/0* -name \"*%s.%s\"'%(dir, nm, ex))\n ... |
# print 'Following are the key that you can use:'
# print '1. Hit ESC to end'
# print '2. Hit - to decrease the size of the image'
# print '3. Hit + (without the shift key) to increase the image size'
# print '4. Hit c to detect chessboard corners'
import sys, time
import numpy as np, math
import glob, ... | [
[
1,
0,
0.034,
0.0049,
0,
0.66,
0,
509,
0,
2,
0,
0,
509,
0,
0
],
[
1,
0,
0.0388,
0.0049,
0,
0.66,
0.0909,
954,
0,
2,
0,
0,
954,
0,
0
],
[
1,
0,
0.0437,
0.0049,
0,
0... | [
"import sys, time",
"import numpy as np, math",
"import glob, commands",
"import roslib; roslib.load_manifest('modeling_forces')",
"import roslib; roslib.load_manifest('modeling_forces')",
"import cv",
"from cv_bridge.cv_bridge import CvBridge, CvBridgeError",
"import hrl_lib.util as ut",
"def call_... |
import csv
import numpy as np
import pylab as pb
import matplotlib_util.util as mpu
def load_data():
mk = csv.reader(open('Mechanism Kinematics.csv', 'U'))
data = []
for r in mk:
data.append(r)
return data
##
# Deal with repetition
def expand(data, keys):
repetition_idx = np.where(np.arra... | [
[
1,
0,
0.0037,
0.0037,
0,
0.66,
0,
312,
0,
1,
0,
0,
312,
0,
0
],
[
1,
0,
0.0074,
0.0037,
0,
0.66,
0.0588,
954,
0,
1,
0,
0,
954,
0,
0
],
[
1,
0,
0.0112,
0.0037,
0,
... | [
"import csv",
"import numpy as np",
"import pylab as pb",
"import matplotlib_util.util as mpu",
"def load_data():\n mk = csv.reader(open('Mechanism Kinematics.csv', 'U'))\n data = []\n for r in mk:\n data.append(r)\n\n return data",
" mk = csv.reader(open('Mechanism Kinematics.csv', ... |
#!/usr/bin/python
import roslib; roslib.load_manifest('modeling_forces')
import rospy
import force_torque.FTClient as ftc
import hrl_lib.util as ut
from std_msgs.msg import Empty
import time
import numpy as np
import glob
##
# make an appropriate plot.
# @param d - dictionary saved in the pkl
def plot_ft(d):
f... | [
[
1,
0,
0.0233,
0.0078,
0,
0.66,
0,
796,
0,
1,
0,
0,
796,
0,
0
],
[
8,
0,
0.0233,
0.0078,
0,
0.66,
0.0909,
630,
3,
1,
0,
0,
0,
0,
1
],
[
1,
0,
0.031,
0.0078,
0,
0.6... | [
"import roslib; roslib.load_manifest('modeling_forces')",
"import roslib; roslib.load_manifest('modeling_forces')",
"import rospy",
"import force_torque.FTClient as ftc",
"import hrl_lib.util as ut",
"from std_msgs.msg import Empty",
"import time",
"import numpy as np",
"import glob",
"def plot_ft... |
import commands
import sys, os
import glob
l1 = glob.glob('data_1tb/*/mechanism_info.pkl')
l2 = []
for d in l1:
l2.append('/'.join(['aggregated_pkls_Feb11']+d.split('/')[1:]))
for d1,d2 in zip(l1,l2):
os.system('cp %s %s'%(d1, d2))
| [
[
1,
0,
0.1538,
0.0769,
0,
0.66,
0,
760,
0,
1,
0,
0,
760,
0,
0
],
[
1,
0,
0.2308,
0.0769,
0,
0.66,
0.1667,
509,
0,
2,
0,
0,
509,
0,
0
],
[
1,
0,
0.3077,
0.0769,
0,
... | [
"import commands",
"import sys, os",
"import glob",
"l1 = glob.glob('data_1tb/*/mechanism_info.pkl')",
"l2 = []",
"for d in l1:\n l2.append('/'.join(['aggregated_pkls_Feb11']+d.split('/')[1:]))",
" l2.append('/'.join(['aggregated_pkls_Feb11']+d.split('/')[1:]))",
"for d1,d2 in zip(l1,l2):\n o... |
#
# Copyright (c) 2009, Georgia Tech Research Corporation
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright
# notice, th... | [
[
1,
0,
0.0332,
0.0011,
0,
0.66,
0,
796,
0,
1,
0,
0,
796,
0,
0
],
[
8,
0,
0.0332,
0.0011,
0,
0.66,
0.0345,
630,
3,
1,
0,
0,
0,
0,
1
],
[
1,
0,
0.0354,
0.0011,
0,
0.... | [
"import roslib; roslib.load_manifest('2009_humanoids_epc_pull')",
"import roslib; roslib.load_manifest('2009_humanoids_epc_pull')",
"import scipy.optimize as so",
"import math, numpy as np",
"import pylab as pl",
"import sys, optparse, time",
"import copy",
"from enthought.mayavi import mlab",
"impo... |
#
# Copyright (c) 2009, Georgia Tech Research Corporation
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright
# notice, th... | [
[
1,
0,
0.0444,
0.0015,
0,
0.66,
0,
478,
0,
1,
0,
0,
478,
0,
0
],
[
1,
0,
0.0473,
0.0015,
0,
0.66,
0.0526,
464,
0,
1,
0,
0,
464,
0,
0
],
[
1,
0,
0.0488,
0.0015,
0,
... | [
"import m3.toolbox as m3t",
"import hokuyo.hokuyo_scan as hs",
"import tilting_hokuyo.tilt_hokuyo_servo as ths",
"import mekabot.hrl_robot as hr",
"import hrl_lib.util as ut, hrl_lib.transforms as tr",
"import util as uto",
"import camera",
"import sys, time, os, optparse",
"import math, numpy as np... |
import roslib
roslib.load_manifest("phantom_omni")
import rospy
import tf
import math
from geometry_msgs.msg import PoseStamped
import pdb
rospy.init_node("long_tip_pose_publisher")
pub = rospy.Publisher('pr2_right', PoseStamped)
r = rospy.Rate(60)
while not rospy.is_shutdown():
ps = PoseStamped()
ps.header.... | [
[
1,
0,
0.0333,
0.0333,
0,
0.66,
0,
796,
0,
1,
0,
0,
796,
0,
0
],
[
8,
0,
0.0667,
0.0333,
0,
0.66,
0.1,
630,
3,
1,
0,
0,
0,
0,
1
],
[
1,
0,
0.1,
0.0333,
0,
0.66,
... | [
"import roslib",
"roslib.load_manifest(\"phantom_omni\")",
"import rospy",
"import tf",
"import math",
"from geometry_msgs.msg import PoseStamped",
"import pdb",
"rospy.init_node(\"long_tip_pose_publisher\")",
"pub = rospy.Publisher('pr2_right', PoseStamped)",
"r = rospy.Rate(60)",
"while not ro... |
import roslib
roslib.load_manifest("phantom_omni")
import rospy
import tf
import tf.transformations as tr
from geometry_msgs.msg import PoseStamped
from geometry_msgs.msg import Pose
from geometry_msgs.msg import Wrench
import math
import numpy as np
def tf2mat(tf_trans):
(trans, rot) = tf_trans
return np.ma... | [
[
1,
0,
0.0071,
0.0071,
0,
0.66,
0,
796,
0,
1,
0,
0,
796,
0,
0
],
[
8,
0,
0.0142,
0.0071,
0,
0.66,
0.0476,
630,
3,
1,
0,
0,
0,
0,
1
],
[
1,
0,
0.0213,
0.0071,
0,
0.... | [
"import roslib",
"roslib.load_manifest(\"phantom_omni\")",
"import rospy",
"import tf",
"import tf.transformations as tr",
"from geometry_msgs.msg import PoseStamped",
"from geometry_msgs.msg import Pose",
"from geometry_msgs.msg import Wrench",
"import math",
"import numpy as np",
"def tf2mat(t... |
import roslib
roslib.load_manifest("phantom_omni")
import rospy
import tf
import tf.transformations as tr
from geometry_msgs.msg import PoseStamped
from geometry_msgs.msg import Pose
from geometry_msgs.msg import Wrench
import math
import numpy as np
def tf2mat(tf_trans):
(trans, rot) = tf_trans
return np.ma... | [
[
1,
0,
0.0059,
0.0059,
0,
0.66,
0,
796,
0,
1,
0,
0,
796,
0,
0
],
[
8,
0,
0.0118,
0.0059,
0,
0.66,
0.0556,
630,
3,
1,
0,
0,
0,
0,
1
],
[
1,
0,
0.0178,
0.0059,
0,
0.... | [
"import roslib",
"roslib.load_manifest(\"phantom_omni\")",
"import rospy",
"import tf",
"import tf.transformations as tr",
"from geometry_msgs.msg import PoseStamped",
"from geometry_msgs.msg import Pose",
"from geometry_msgs.msg import Wrench",
"import math",
"import numpy as np",
"def tf2mat(t... |
import roslib
roslib.load_manifest("phantom_omni")
import rospy
import tf
import tf.transformations as tr
from geometry_msgs.msg import PoseStamped
from geometry_msgs.msg import Pose
from geometry_msgs.msg import Wrench
import math
import numpy as np
def tf2mat(tf_trans):
(trans, rot) = tf_trans
return np.ma... | [
[
1,
0,
0.0147,
0.0147,
0,
0.66,
0,
796,
0,
1,
0,
0,
796,
0,
0
],
[
8,
0,
0.0294,
0.0147,
0,
0.66,
0.0526,
630,
3,
1,
0,
0,
0,
0,
1
],
[
1,
0,
0.0441,
0.0147,
0,
0.... | [
"import roslib",
"roslib.load_manifest(\"phantom_omni\")",
"import rospy",
"import tf",
"import tf.transformations as tr",
"from geometry_msgs.msg import PoseStamped",
"from geometry_msgs.msg import Pose",
"from geometry_msgs.msg import Wrench",
"import math",
"import numpy as np",
"def tf2mat(t... |
import roslib
roslib.load_manifest("phantom_omni")
import rospy
import tf
import tf.transformations as tr
import hrl_lib.tf_utils as tfu
from geometry_msgs.msg import PoseStamped
from geometry_msgs.msg import Pose
from geometry_msgs.msg import Wrench
import math
import numpy as np
rospy.init_node("omni_potential_wel... | [
[
1,
0,
0.009,
0.009,
0,
0.66,
0,
796,
0,
1,
0,
0,
796,
0,
0
],
[
8,
0,
0.018,
0.009,
0,
0.66,
0.0476,
630,
3,
1,
0,
0,
0,
0,
1
],
[
1,
0,
0.027,
0.009,
0,
0.66,
... | [
"import roslib",
"roslib.load_manifest(\"phantom_omni\")",
"import rospy",
"import tf",
"import tf.transformations as tr",
"import hrl_lib.tf_utils as tfu",
"from geometry_msgs.msg import PoseStamped",
"from geometry_msgs.msg import Pose",
"from geometry_msgs.msg import Wrench",
"import math",
"... |
#
# Copyright (c) 2009, Georgia Tech Research Corporation
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright
# notice, thi... | [
[
1,
0,
0.1562,
0.0052,
0,
0.66,
0,
796,
0,
1,
0,
0,
796,
0,
0
],
[
8,
0,
0.1562,
0.0052,
0,
0.66,
0.0667,
630,
3,
1,
0,
0,
0,
0,
1
],
[
1,
0,
0.1667,
0.0052,
0,
0.... | [
"import roslib; roslib.load_manifest('hrl_tilting_hokuyo')",
"import roslib; roslib.load_manifest('hrl_tilting_hokuyo')",
"from enthought.mayavi import mlab",
"import sys,os,time",
"import optparse",
"import hrl_lib.util as ut",
"import numpy as np, math",
"color_list = [(1.,1.,1.),(1.,0.,0.),(0.,1.,0... |
#
# Copyright (c) 2009, Georgia Tech Research Corporation
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright
# notice, thi... | [
[
1,
0,
0.1571,
0.0052,
0,
0.66,
0,
796,
0,
1,
0,
0,
796,
0,
0
],
[
8,
0,
0.1571,
0.0052,
0,
0.66,
0.1111,
630,
3,
1,
0,
0,
0,
0,
1
],
[
1,
0,
0.1675,
0.0052,
0,
0.... | [
"import roslib; roslib.load_manifest('hrl_tilting_hokuyo')",
"import roslib; roslib.load_manifest('hrl_tilting_hokuyo')",
"import time",
"import sys, optparse",
"import numpy as np, math",
"import hrl_lib.util as ut",
"import robotis.robotis_servo as rs",
"import hrl_hokuyo.hokuyo_scan as hs",
"clas... |
#
# Copyright (c) 2009, Georgia Tech Research Corporation
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright
# notice, thi... | [
[
1,
0,
0.0261,
0.0009,
0,
0.66,
0,
796,
0,
1,
0,
0,
796,
0,
0
],
[
8,
0,
0.0261,
0.0009,
0,
0.66,
0.0227,
630,
3,
1,
0,
0,
0,
0,
1
],
[
1,
0,
0.027,
0.0009,
0,
0.6... | [
"import roslib; roslib.load_manifest('hrl_tilting_hokuyo')",
"import roslib; roslib.load_manifest('hrl_tilting_hokuyo')",
"import hrl_hokuyo.hokuyo_processing as hp",
"import sys, optparse, os",
"import hrl_lib.util as ut",
"import hrl_lib.transforms as tr",
"import numpy as np,math",
"import time",
... |
#
# Copyright (c) 2009, Georgia Tech Research Corporation
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright
# notice, thi... | [
[
1,
0,
0.0489,
0.0016,
0,
0.66,
0,
509,
0,
3,
0,
0,
509,
0,
0
],
[
1,
0,
0.0506,
0.0016,
0,
0.66,
0.125,
654,
0,
1,
0,
0,
654,
0,
0
],
[
1,
0,
0.0538,
0.0016,
0,
0... | [
"import sys, optparse, os",
"import time",
"import math, numpy as np",
"import scipy.ndimage as ni",
"import copy",
"import hrl_lib.util as ut, hrl_lib.transforms as tr",
"def subtract(og1,og2):\n\n if np.all(og1.resolution==og2.resolution) == False:\n print('occupancy_grid_3d.subtract: The re... |
# Copyright (c) 2009, Georgia Tech Research Corporation
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright
# notice, this... | [
[
1,
0,
0.4746,
0.0169,
0,
0.66,
0,
796,
0,
1,
0,
0,
796,
0,
0
],
[
8,
0,
0.4746,
0.0169,
0,
0.66,
0.1667,
630,
3,
1,
0,
0,
0,
0,
1
],
[
1,
0,
0.4915,
0.0169,
0,
0.... | [
"import roslib; roslib.load_manifest('zenither')",
"import roslib; roslib.load_manifest('zenither')",
"import rospy",
"from hrl_msgs.msg import FloatArray",
"from threading import RLock",
"class ZenitherClient():\n def __init__(self, init_ros_node = False,\n zenither_pose_topic = 'zenit... |
#!/usr/bin/python
# Copyright (c) 2009, Georgia Tech Research Corporation
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright
# ... | [
[
1,
0,
0.2845,
0.0086,
0,
0.66,
0,
83,
0,
1,
0,
0,
83,
0,
0
],
[
1,
0,
0.3017,
0.0086,
0,
0.66,
0.125,
796,
0,
1,
0,
0,
796,
0,
0
],
[
8,
0,
0.3103,
0.0086,
0,
0.6... | [
"from threading import RLock",
"import roslib",
"roslib.load_manifest('zenither')",
"import zenither_config as zc",
"import rospy",
"from hrl_srvs.srv import Float_Int",
"from hrl_msgs.msg import FloatArray",
"class ZenitherClient():\n def __init__(self, robot):\n try:\n rospy.ini... |
calib = {
'El-E': {
'robot': 'El-E',
'pos_factor': 0.9144 / (183897 - 1250),
'vel_factor': 0.9144 / (183897 - 1250) / 20,
'acc_factor': 0.9144 / (183897 - 1250),
'POS_MAX': 0.9,
'VEL_DEFAULT': 1.5,
'VEL_MAX': 4.0,
'ACC_DEFAULT':0.0002,
'ACC_MA... | [
[
14,
0,
0.5,
0.9643,
0,
0.66,
0,
147,
0,
0,
0,
0,
0,
6,
0
]
] | [
"calib = {\n 'El-E': {\n 'robot': 'El-E',\n 'pos_factor': 0.9144 / (183897 - 1250),\n 'vel_factor': 0.9144 / (183897 - 1250) / 20,\n 'acc_factor': 0.9144 / (183897 - 1250),\n 'POS_MAX': 0.9,\n 'VEL_DEFAULT': 1.5,"
] |
__all__ = [
'zenither',
'lib_zenither',
'ros_zenither_server',
'ros_zenither_client'
]
| [
[
14,
0,
0.5833,
1,
0,
0.66,
0,
272,
0,
0,
0,
0,
0,
5,
0
]
] | [
"__all__ = [\n'zenither',\n'lib_zenither',\n'ros_zenither_server',\n'ros_zenither_client'\n]"
] |
#!/usr/bin/python
# Copyright (c) 2009, Georgia Tech Research Corporation
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright
# ... | [
[
1,
0,
0.3882,
0.0118,
0,
0.66,
0,
796,
0,
1,
0,
0,
796,
0,
0
],
[
8,
0,
0.4,
0.0118,
0,
0.66,
0.1429,
630,
3,
1,
0,
0,
0,
0,
1
],
[
1,
0,
0.4118,
0.0118,
0,
0.66,... | [
"import roslib",
"roslib.load_manifest('zenither')",
"import rospy",
"from hrl_srvs.srv import Float_Int",
"import time",
"import sys",
"class ZenitherServer():\n def __init__(self, zenither):\n try:\n rospy.init_node('ZenitherServer')\n rospy.logout('ZenitherServer: Init... |
#!/usr/bin/python
#
# Copyright (c) 2009, Georgia Tech Research Corporation
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright
#... | [
[
1,
0,
0.1951,
0.0061,
0,
0.66,
0,
87,
0,
1,
0,
0,
87,
0,
0
],
[
1,
0,
0.2012,
0.0061,
0,
0.66,
0.0909,
115,
0,
1,
0,
0,
115,
0,
0
],
[
1,
0,
0.2073,
0.0061,
0,
0.... | [
"import pygame",
"import pygame.joystick",
"import sys, optparse",
"import segway_command as sc",
"import time as time",
"import roslib",
"roslib.load_manifest('segway_omni')",
"import rospy",
"import hrl_lib.util as ut",
"import numpy as np",
"from pygame.locals import *",
"if __name__=='__ma... |
# Copyright (c) 2009, Georgia Tech Research Corporation
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright
# notice, this ... | [
[
1,
0,
0.0625,
0.0022,
0,
0.66,
0,
856,
0,
1,
0,
0,
856,
0,
0
],
[
1,
0,
0.0647,
0.0022,
0,
0.66,
0.1,
848,
0,
1,
0,
0,
848,
0,
0
],
[
1,
0,
0.0668,
0.0022,
0,
0.6... | [
"import usb",
"import pickle",
"import time",
"import numpy as np",
"import math",
"import struct",
"class Mecanum_Properties():\n def __init__( self ):\n self.r1 = .2032/2. # 8in wheels\n self.r2 = .2032/2. # 8in wheels\n \n self.R = 4*2.54/100 # wheel radius in meters\n ... |
#! /usr/bin/python
# Copyright (c) 2009, Georgia Tech Research Corporation
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright
# ... | [
[
1,
0,
0.566,
0.0189,
0,
0.66,
0,
796,
0,
1,
0,
0,
796,
0,
0
],
[
8,
0,
0.566,
0.0189,
0,
0.66,
0.0769,
630,
3,
1,
0,
0,
0,
0,
1
],
[
1,
0,
0.5849,
0.0189,
0,
0.66... | [
"import roslib; roslib.load_manifest('hrl_segway_omni')",
"import roslib; roslib.load_manifest('hrl_segway_omni')",
"from hrl_lib.msg import PlanarBaseVel",
"from geometry_msgs.msg import Twist",
"import rospy",
"import segway",
"import numpy as np",
"def callback(cmd):\n #print 'segway_node:', cmd... |
#!/usr/bin/python
#
# Copyright (c) 2009, Georgia Tech Research Corporation
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright
#... | [
[
1,
0,
0.3929,
0.0119,
0,
0.66,
0,
796,
0,
1,
0,
0,
796,
0,
0
],
[
8,
0,
0.3929,
0.0119,
0,
0.66,
0.125,
630,
3,
1,
0,
0,
0,
0,
1
],
[
1,
0,
0.4048,
0.0119,
0,
0.6... | [
"import roslib; roslib.load_manifest('force_torque')",
"import roslib; roslib.load_manifest('force_torque')",
"import rospy",
"from hrl_msgs.msg import FloatArray",
"import AMTIForce2 as af",
"import threading",
"import time",
"class AMTIForceServer(threading.Thread):\n def __init__(self, device_pa... |
#
# Copyright (c) 2009, Georgia Tech Research Corporation
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright
# notice, thi... | [
[
1,
0,
0.2462,
0.0077,
0,
0.66,
0,
654,
0,
3,
0,
0,
654,
0,
0
],
[
1,
0,
0.2538,
0.0077,
0,
0.66,
0.1429,
601,
0,
2,
0,
0,
601,
0,
0
],
[
1,
0,
0.2615,
0.0077,
0,
... | [
"import time, os, copy",
"import serial, numpy as np",
"import threading",
"from threading import RLock",
"class AMTI_force:\n def __init__(self, dev_name=\"/dev/robot/force_plate0\", broadcast=True):\n self.dev_name = dev_name\n self.serial_dev = open_serial(dev_name, 57600)\n sel... |
import roslib; roslib.load_manifest('hrl_lib')
import rospy
import std_srvs.srv as srv
from hrl_msgs.msg import FloatArray
import time
def cb( msg ):
print 'Received msg: ', msg, '\n\tType: ', msg.__class__
return
x = 3.0
rospy.init_node('trial_subscriber')
sub = rospy.Subscriber('trial_pub', FloatArray, cb)... | [
[
1,
0,
0.0588,
0.0588,
0,
0.66,
0,
796,
0,
1,
0,
0,
796,
0,
0
],
[
8,
0,
0.0588,
0.0588,
0,
0.66,
0.1,
630,
3,
1,
0,
0,
0,
0,
1
],
[
1,
0,
0.1176,
0.0588,
0,
0.66,... | [
"import roslib; roslib.load_manifest('hrl_lib')",
"import roslib; roslib.load_manifest('hrl_lib')",
"import rospy",
"import std_srvs.srv as srv",
"from hrl_msgs.msg import FloatArray",
"import time",
"def cb( msg ):\n print('Received msg: ', msg, '\\n\\tType: ', msg.__class__)\n return",
" pr... |
#!/usr/bin/python
import roslib
roslib.load_manifest('force_torque')
import rospy
from geometry_msgs.msg import Vector3Stamped
from threading import RLock
## 1D kalman filter update.
def kalman_update(xhat, P, Q, R, z):
#time update
xhatminus = xhat
Pminus = P + Q
#measurement update
K = Pminus... | [
[
1,
0,
0.0159,
0.0079,
0,
0.66,
0,
796,
0,
1,
0,
0,
796,
0,
0
],
[
8,
0,
0.0238,
0.0079,
0,
0.66,
0.125,
630,
3,
1,
0,
0,
0,
0,
1
],
[
1,
0,
0.0317,
0.0079,
0,
0.6... | [
"import roslib",
"roslib.load_manifest('force_torque')",
"import rospy",
"from geometry_msgs.msg import Vector3Stamped",
"from threading import RLock",
"def kalman_update(xhat, P, Q, R, z):\n #time update\n xhatminus = xhat\n Pminus = P + Q\n #measurement update\n K = Pminus / (Pminus + R)\... |
#!/usr/bin/python
#
# Copyright (c) 2009, Georgia Tech Research Corporation
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright
#... | [
[
1,
0,
0.2162,
0.0068,
0,
0.66,
0,
796,
0,
1,
0,
0,
796,
0,
0
],
[
8,
0,
0.2162,
0.0068,
0,
0.66,
0.1111,
630,
3,
1,
0,
0,
0,
0,
1
],
[
1,
0,
0.223,
0.0068,
0,
0.6... | [
"import roslib; roslib.load_manifest('force_torque')",
"import roslib; roslib.load_manifest('force_torque')",
"import rospy",
"import hrl_lib.rutils as ru",
"import hrl_lib.util as ut",
"from hrl_msgs.msg import FloatArray",
"from geometry_msgs.msg import WrenchStamped",
"import numpy as np",
"class... |
#!/usr/bin/python
#
# Copyright (c) 2009, Georgia Tech Research Corporation
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright
#... | [
[
1,
0,
0.3929,
0.0119,
0,
0.66,
0,
796,
0,
1,
0,
0,
796,
0,
0
],
[
8,
0,
0.3929,
0.0119,
0,
0.66,
0.125,
630,
3,
1,
0,
0,
0,
0,
1
],
[
1,
0,
0.4048,
0.0119,
0,
0.6... | [
"import roslib; roslib.load_manifest('force_torque')",
"import roslib; roslib.load_manifest('force_torque')",
"import rospy",
"from hrl_msgs.msg import FloatArray",
"import AMTIForce2 as af",
"import threading",
"import time",
"class AMTIForceServer(threading.Thread):\n def __init__(self, device_pa... |
#
# Copyright (c) 2009, Georgia Tech Research Corporation
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright
# notice, thi... | [] | [] |
import roslib; roslib.load_manifest('hrl_lib')
import rospy
import std_srvs.srv as srv
from hrl_msgs.msg import FloatArray
import time
x = 3.0
rospy.init_node('trial_publisher')
pub = rospy.Publisher( 'trial_pub', FloatArray)
while not rospy.is_shutdown():
x += 0.1
fa = FloatArray()
fa.data = [ x, x+1.0, ... | [
[
1,
0,
0.0625,
0.0625,
0,
0.66,
0,
796,
0,
1,
0,
0,
796,
0,
0
],
[
8,
0,
0.0625,
0.0625,
0,
0.66,
0.1111,
630,
3,
1,
0,
0,
0,
0,
1
],
[
1,
0,
0.125,
0.0625,
0,
0.6... | [
"import roslib; roslib.load_manifest('hrl_lib')",
"import roslib; roslib.load_manifest('hrl_lib')",
"import rospy",
"import std_srvs.srv as srv",
"from hrl_msgs.msg import FloatArray",
"import time",
"x = 3.0",
"rospy.init_node('trial_publisher')",
"pub = rospy.Publisher( 'trial_pub', FloatArray)",
... |
#!/usr/bin/python
#
# Copyright (c) 2009, Georgia Tech Research Corporation
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright
#... | [
[
1,
0,
0.2162,
0.0068,
0,
0.66,
0,
796,
0,
1,
0,
0,
796,
0,
0
],
[
8,
0,
0.2162,
0.0068,
0,
0.66,
0.1111,
630,
3,
1,
0,
0,
0,
0,
1
],
[
1,
0,
0.223,
0.0068,
0,
0.6... | [
"import roslib; roslib.load_manifest('force_torque')",
"import roslib; roslib.load_manifest('force_torque')",
"import rospy",
"import hrl_lib.rutils as ru",
"import hrl_lib.util as ut",
"from hrl_msgs.msg import FloatArray",
"from geometry_msgs.msg import WrenchStamped",
"import numpy as np",
"class... |
#!/usr/bin/python
import roslib
roslib.load_manifest('force_torque')
import rospy
from geometry_msgs.msg import Vector3Stamped
from threading import RLock
## 1D kalman filter update.
def kalman_update(xhat, P, Q, R, z):
#time update
xhatminus = xhat
Pminus = P + Q
#measurement update
K = Pminus... | [
[
1,
0,
0.0159,
0.0079,
0,
0.66,
0,
796,
0,
1,
0,
0,
796,
0,
0
],
[
8,
0,
0.0238,
0.0079,
0,
0.66,
0.125,
630,
3,
1,
0,
0,
0,
0,
1
],
[
1,
0,
0.0317,
0.0079,
0,
0.6... | [
"import roslib",
"roslib.load_manifest('force_torque')",
"import rospy",
"from geometry_msgs.msg import Vector3Stamped",
"from threading import RLock",
"def kalman_update(xhat, P, Q, R, z):\n #time update\n xhatminus = xhat\n Pminus = P + Q\n #measurement update\n K = Pminus / (Pminus + R)\... |
import pygame
import pygame.locals
import numpy as np
import time
import copy
#------ Slider class is code copied from the internet. (http://www.pygame.org/project/668/)
class Slider(object):
#Constructs the object
def __init__(self, pos, value=0):
self.pos = pos
self.size = (275,15)
... | [
[
1,
0,
0.0169,
0.0169,
0,
0.66,
0,
87,
0,
1,
0,
0,
87,
0,
0
],
[
1,
0,
0.0339,
0.0169,
0,
0.66,
0.2,
515,
0,
1,
0,
0,
515,
0,
0
],
[
1,
0,
0.0508,
0.0169,
0,
0.66,... | [
"import pygame",
"import pygame.locals",
"import numpy as np",
"import time",
"import copy",
"class Slider(object):\n\n #Constructs the object\n def __init__(self, pos, value=0):\n self.pos = pos\n self.size = (275,15)\n\n self.bar = pygame.Surface((275, 15))",
" def __init... |
#
# Copyright (c) 2009, Georgia Tech Research Corporation
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright
# notice, thi... | [
[
1,
0,
0.0477,
0.0014,
0,
0.66,
0,
796,
0,
1,
0,
0,
796,
0,
0
],
[
8,
0,
0.0491,
0.0014,
0,
0.66,
0.0238,
630,
3,
1,
0,
0,
0,
0,
1
],
[
1,
0,
0.0519,
0.0014,
0,
0.... | [
"import roslib",
"roslib.load_manifest('hrl_hokuyo')",
"import pygame",
"import pygame.locals",
"import hokuyo_scan as hs",
"import hrl_lib.transforms as tr",
"import hrl_lib.util as ut",
"import math, numpy as np",
"import scipy.ndimage as ni",
"import pylab as pl",
"import sys, time",
"impor... |
#
# Copyright (c) 2009, Georgia Tech Research Corporation
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright
# notice, thi... | [
[
1,
0,
0.0055,
0.0055,
0,
0.66,
0,
526,
0,
2,
0,
0,
526,
0,
0
],
[
1,
0,
0.011,
0.0055,
0,
0.66,
0.0769,
509,
0,
2,
0,
0,
509,
0,
0
],
[
1,
0,
0.022,
0.0055,
0,
0.... | [
"import math, numpy as np",
"import sys, time",
"import roslib; roslib.load_manifest('hrl_hokuyo')",
"import roslib; roslib.load_manifest('hrl_hokuyo')",
"import rospy",
"from sensor_msgs.msg import LaserScan",
"from threading import RLock",
"import hokuyo_processing as hp",
"import copy",
"import... |
import math
# home position in encoder ticks for the servo.
servo_param = {
# 1: { # Default for new servo. Please issue 'new_servo.write_id(new_id)' and setup your own home position!
# 'home_encoder': 351
# },
2: { # Tilting Hokuyo on El-E
'... | [
[
1,
0,
0.0092,
0.0092,
0,
0.66,
0,
526,
0,
1,
0,
0,
526,
0,
0
],
[
14,
0,
0.5183,
0.9541,
0,
0.66,
1,
241,
0,
0,
0,
0,
0,
6,
14
]
] | [
"import math",
"servo_param = {\n# 1: { # Default for new servo. Please issue 'new_servo.write_id(new_id)' and setup your own home position!\n# 'home_encoder': 351\n# }, \n 2: { # Tilting Hokuyo on El-E\n 'home_encoder': 446\n }, \n ... |
__all__ = [
'robotis_servo',
'lib_robotis',
'ros_robotis',
'servo_config'
]
| [
[
14,
0,
0.5833,
1,
0,
0.66,
0,
272,
0,
0,
0,
0,
0,
5,
0
]
] | [
"__all__ = [\n'robotis_servo',\n'lib_robotis',\n'ros_robotis',\n'servo_config'\n]"
] |
#!/usr/bin/python
#
# Copyright (c) 2009, Georgia Tech Research Corporation
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright
... | [
[
1,
0,
0.1629,
0.0045,
0,
0.66,
0,
796,
0,
1,
0,
0,
796,
0,
0
],
[
8,
0,
0.1674,
0.0045,
0,
0.66,
0.0588,
630,
3,
1,
0,
0,
0,
0,
1
],
[
1,
0,
0.1719,
0.0045,
0,
0.... | [
"import roslib",
"roslib.load_manifest('robotis')",
"import rospy",
"from std_msgs.msg import Float64",
"from robotis.srv import None_Float",
"from robotis.srv import None_FloatResponse",
"from robotis.srv import MoveAng",
"from robotis.srv import MoveAngResponse",
"from robotis.srv import None_Int3... |
#
# Copyright (c) 2009, Georgia Tech Research Corporation
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright
# notice, thi... | [
[
1,
0,
0.1923,
0.0064,
0,
0.66,
0,
796,
0,
1,
0,
0,
796,
0,
0
],
[
8,
0,
0.1923,
0.0064,
0,
0.66,
0.125,
630,
3,
1,
0,
0,
0,
0,
1
],
[
1,
0,
0.2051,
0.0064,
0,
0.6... | [
"import roslib; roslib.load_manifest('pan_tilt_robotis')",
"import roslib; roslib.load_manifest('pan_tilt_robotis')",
"import time",
"import sys, optparse",
"import numpy as np, math",
"import hrl_lib.util as ut",
"import robotis.robotis_servo as rs",
"class PanTilt():\n \n ## Assumes that both ... |
import time
import sys, os, copy
import numpy as np, math
import scipy.ndimage as ni
class occupancy_grid_3d():
##
# @param resolution - 3x1 matrix. size of each cell (in meters) along
# the different directions.
def __init__(self, center, size, resolution, data,
... | [
[
1,
0,
0.0225,
0.0112,
0,
0.66,
0,
654,
0,
1,
0,
0,
654,
0,
0
],
[
1,
0,
0.0337,
0.0112,
0,
0.66,
0.2,
509,
0,
3,
0,
0,
509,
0,
0
],
[
1,
0,
0.0449,
0.0112,
0,
0.6... | [
"import time",
"import sys, os, copy",
"import numpy as np, math",
"import scipy.ndimage as ni",
"class occupancy_grid_3d():\n\n ##\n # @param resolution - 3x1 matrix. size of each cell (in meters) along\n # the different directions.\n def __init__(self, center, size, resolut... |
import sys
import numpy as np, math
import add_cylinder as ac
import online_collision_detection as ocd
import roslib; roslib.load_manifest('arm_navigation_tutorials')
import rospy
from mapping_msgs.msg import CollisionObject
from visualization_msgs.msg import Marker
import hrl_lib.transforms as tr
import hrl_lib.vi... | [
[
1,
0,
0.0225,
0.0112,
0,
0.66,
0,
509,
0,
1,
0,
0,
509,
0,
0
],
[
1,
0,
0.0337,
0.0112,
0,
0.66,
0.0556,
954,
0,
2,
0,
0,
954,
0,
0
],
[
1,
0,
0.0562,
0.0112,
0,
... | [
"import sys",
"import numpy as np, math",
"import add_cylinder as ac",
"import online_collision_detection as ocd",
"import roslib; roslib.load_manifest('arm_navigation_tutorials')",
"import roslib; roslib.load_manifest('arm_navigation_tutorials')",
"import rospy",
"from mapping_msgs.msg import Collisi... |
import roslib; roslib.load_manifest('arm_navigation_tutorials')
import sys
import rospy
from planning_environment_msgs.srv import GetStateValidity
from planning_environment_msgs.srv import GetStateValidityRequest
if __name__ == '__main__':
rospy.init_node('get_state_validity_python')
srv_nm = 'environment_... | [
[
1,
0,
0.05,
0.025,
0,
0.66,
0,
796,
0,
1,
0,
0,
796,
0,
0
],
[
8,
0,
0.05,
0.025,
0,
0.66,
0.1667,
630,
3,
1,
0,
0,
0,
0,
1
],
[
1,
0,
0.075,
0.025,
0,
0.66,
... | [
"import roslib; roslib.load_manifest('arm_navigation_tutorials')",
"import roslib; roslib.load_manifest('arm_navigation_tutorials')",
"import sys",
"import rospy",
"from planning_environment_msgs.srv import GetStateValidity",
"from planning_environment_msgs.srv import GetStateValidityRequest",
"if __nam... |
import sys
import numpy as np, math
import add_cylinder as ac
import online_collision_detection as ocd
import force_visualize_test as fvt
import roslib; roslib.load_manifest('arm_navigation_tutorials')
import rospy
from mapping_msgs.msg import CollisionObject
from visualization_msgs.msg import Marker
import hrl_lib... | [
[
1,
0,
0.0172,
0.0086,
0,
0.66,
0,
509,
0,
1,
0,
0,
509,
0,
0
],
[
1,
0,
0.0259,
0.0086,
0,
0.66,
0.0667,
954,
0,
2,
0,
0,
954,
0,
0
],
[
1,
0,
0.0431,
0.0086,
0,
... | [
"import sys",
"import numpy as np, math",
"import add_cylinder as ac",
"import online_collision_detection as ocd",
"import force_visualize_test as fvt",
"import roslib; roslib.load_manifest('arm_navigation_tutorials')",
"import roslib; roslib.load_manifest('arm_navigation_tutorials')",
"import rospy",... |
import roslib; roslib.load_manifest('arm_navigation_tutorials')
import sys
import rospy
from mapping_msgs.msg import CollisionObject
from mapping_msgs.msg import CollisionObjectOperation
from geometric_shapes_msgs.msg import Shape
from geometry_msgs.msg import Pose
def add_cylinder(id, bottom, radius, height, frame... | [
[
1,
0,
0.04,
0.02,
0,
0.66,
0,
796,
0,
1,
0,
0,
796,
0,
0
],
[
8,
0,
0.04,
0.02,
0,
0.66,
0.1111,
630,
3,
1,
0,
0,
0,
0,
1
],
[
1,
0,
0.06,
0.02,
0,
0.66,
0.22... | [
"import roslib; roslib.load_manifest('arm_navigation_tutorials')",
"import roslib; roslib.load_manifest('arm_navigation_tutorials')",
"import sys",
"import rospy",
"from mapping_msgs.msg import CollisionObject",
"from mapping_msgs.msg import CollisionObjectOperation",
"from geometric_shapes_msgs.msg imp... |
import roslib; roslib.load_manifest('arm_navigation_tutorials')
import sys
import rospy
import hrl_lib.transforms as tr
from planning_environment_msgs.srv import GetStateValidity
from planning_environment_msgs.srv import GetStateValidityRequest
from sensor_msgs.msg import JointState
roslib.load_manifest('hrl_pr2_li... | [
[
1,
0,
0.0333,
0.0167,
0,
0.66,
0,
796,
0,
1,
0,
0,
796,
0,
0
],
[
8,
0,
0.0333,
0.0167,
0,
0.66,
0.0909,
630,
3,
1,
0,
0,
0,
0,
1
],
[
1,
0,
0.05,
0.0167,
0,
0.66... | [
"import roslib; roslib.load_manifest('arm_navigation_tutorials')",
"import roslib; roslib.load_manifest('arm_navigation_tutorials')",
"import sys",
"import rospy",
"import hrl_lib.transforms as tr",
"from planning_environment_msgs.srv import GetStateValidity",
"from planning_environment_msgs.srv import ... |
#
# Copyright (c) 2010, Georgia Tech Research Corporation
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright
# notice, th... | [
[
1,
0,
0.4412,
0.0147,
0,
0.66,
0,
796,
0,
1,
0,
0,
796,
0,
0
],
[
8,
0,
0.4412,
0.0147,
0,
0.66,
0.1667,
630,
3,
1,
0,
0,
0,
0,
1
],
[
1,
0,
0.4559,
0.0147,
0,
0.... | [
"import roslib; roslib.load_manifest('arm_navigation_tutorials')",
"import roslib; roslib.load_manifest('arm_navigation_tutorials')",
"import sys",
"import rospy",
"from planning_environment_msgs.srv import GetStateValidity",
"from planning_environment_msgs.srv import GetStateValidityRequest",
"if __nam... |
#
# Copyright (c) 2010, Georgia Tech Research Corporation
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright
# notice, th... | [
[
1,
0,
0.3924,
0.0127,
0,
0.66,
0,
796,
0,
1,
0,
0,
796,
0,
0
],
[
8,
0,
0.3924,
0.0127,
0,
0.66,
0.1111,
630,
3,
1,
0,
0,
0,
0,
1
],
[
1,
0,
0.4051,
0.0127,
0,
0.... | [
"import roslib; roslib.load_manifest('arm_navigation_tutorials')",
"import roslib; roslib.load_manifest('arm_navigation_tutorials')",
"import sys",
"import rospy",
"from mapping_msgs.msg import CollisionObject",
"from mapping_msgs.msg import CollisionObjectOperation",
"from geometric_shapes_msgs.msg imp... |
import PyKDL as kdl
import numpy as np, math
import roslib; roslib.load_manifest('pr2_arms_kdl')
import rospy
import hrl_lib.kdl_utils as ku
class PR2_arm_kdl():
def __init__(self):
self.right_chain = self.create_right_chain()
fk, ik_v, ik_p = self.create_solvers(self.right_chain)
self.... | [
[
1,
0,
0.0085,
0.0085,
0,
0.66,
0,
198,
0,
1,
0,
0,
198,
0,
0
],
[
1,
0,
0.0254,
0.0085,
0,
0.66,
0.1429,
954,
0,
2,
0,
0,
954,
0,
0
],
[
1,
0,
0.0424,
0.0085,
0,
... | [
"import PyKDL as kdl",
"import numpy as np, math",
"import roslib; roslib.load_manifest('pr2_arms_kdl')",
"import roslib; roslib.load_manifest('pr2_arms_kdl')",
"import rospy",
"import hrl_lib.kdl_utils as ku",
"class PR2_arm_kdl():\n\n def __init__(self):\n self.right_chain = self.create_righ... |
import numpy as np, math
import roslib; roslib.load_manifest('point_cloud_ros')
import rospy
import hrl_tilting_hokuyo.display_3d_mayavi as d3m
from point_cloud_ros.msg import OccupancyGrid
import point_cloud_ros.occupancy_grid as pog
## convert OccupancyGrid message to the occupancy_grid_3d object.
# @param to_bi... | [
[
1,
0,
0.0217,
0.0109,
0,
0.66,
0,
954,
0,
2,
0,
0,
954,
0,
0
],
[
1,
0,
0.0435,
0.0109,
0,
0.66,
0.1,
796,
0,
1,
0,
0,
796,
0,
0
],
[
8,
0,
0.0435,
0.0109,
0,
0.6... | [
"import numpy as np, math",
"import roslib; roslib.load_manifest('point_cloud_ros')",
"import roslib; roslib.load_manifest('point_cloud_ros')",
"import rospy",
"import hrl_tilting_hokuyo.display_3d_mayavi as d3m",
"from point_cloud_ros.msg import OccupancyGrid",
"import point_cloud_ros.occupancy_grid as... |
#!/usr/bin/python
#
# Copyright (c) 2009, Georgia Tech Research Corporation
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright
... | [
[
1,
0,
0.1737,
0.0053,
0,
0.66,
0,
796,
0,
1,
0,
0,
796,
0,
0
],
[
8,
0,
0.1737,
0.0053,
0,
0.66,
0.0556,
630,
3,
1,
0,
0,
0,
0,
1
],
[
1,
0,
0.1842,
0.0053,
0,
0.... | [
"import roslib; roslib.load_manifest('point_cloud_ros')",
"import roslib; roslib.load_manifest('point_cloud_ros')",
"import rospy",
"from sensor_msgs.msg import PointCloud",
"from geometry_msgs.msg import Point32",
"import numpy as np, math",
"from numpy import pi",
"import sys, os, optparse, time",
... |
#
# Copyright (c) 2009, Georgia Tech Research Corporation
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright
# notice, thi... | [
[
1,
0,
0.0489,
0.0016,
0,
0.66,
0,
509,
0,
3,
0,
0,
509,
0,
0
],
[
1,
0,
0.0506,
0.0016,
0,
0.66,
0.125,
654,
0,
1,
0,
0,
654,
0,
0
],
[
1,
0,
0.0538,
0.0016,
0,
0... | [
"import sys, optparse, os",
"import time",
"import math, numpy as np",
"import scipy.ndimage as ni",
"import copy",
"import hrl_lib.util as ut, hrl_lib.transforms as tr",
"def subtract(og1,og2):\n\n if np.all(og1.resolution==og2.resolution) == False:\n print('occupancy_grid_3d.subtract: The re... |
import roslib; roslib.load_manifest('point_cloud_ros')
from sensor_msgs.msg import PointCloud
from geometry_msgs.msg import Point32
from sensor_msgs.msg import ChannelFloat32
import numpy as np
import time
## PointCloud -> 3xN np matrix
# @param ros_pointcloud - robot_msgs/PointCloud
# @return 3xN np matrix
def ros_p... | [
[
1,
0,
0.0222,
0.0222,
0,
0.66,
0,
796,
0,
1,
0,
0,
796,
0,
0
],
[
8,
0,
0.0222,
0.0222,
0,
0.66,
0.1111,
630,
3,
1,
0,
0,
0,
0,
1
],
[
1,
0,
0.0444,
0.0222,
0,
0.... | [
"import roslib; roslib.load_manifest('point_cloud_ros')",
"import roslib; roslib.load_manifest('point_cloud_ros')",
"from sensor_msgs.msg import PointCloud",
"from geometry_msgs.msg import Point32",
"from sensor_msgs.msg import ChannelFloat32",
"import numpy as np",
"import time",
"def ros_pointcloud_... |
#!/usr/bin/python
import numpy as np, math
import scipy.ndimage as ni
import roslib; roslib.load_manifest('point_cloud_ros')
import rospy
import hrl_lib.util as ut
import point_cloud_ros.occupancy_grid as pog
import point_cloud_ros.ros_occupancy_grid as rog
from point_cloud_ros.msg import OccupancyGrid
def og_cb(... | [
[
1,
0,
0.0508,
0.0169,
0,
0.66,
0,
954,
0,
2,
0,
0,
954,
0,
0
],
[
1,
0,
0.0678,
0.0169,
0,
0.66,
0.0833,
348,
0,
1,
0,
0,
348,
0,
0
],
[
1,
0,
0.1017,
0.0169,
0,
... | [
"import numpy as np, math",
"import scipy.ndimage as ni",
"import roslib; roslib.load_manifest('point_cloud_ros')",
"import roslib; roslib.load_manifest('point_cloud_ros')",
"import rospy",
"import hrl_lib.util as ut",
"import point_cloud_ros.occupancy_grid as pog",
"import point_cloud_ros.ros_occupan... |
import time
import sys, os, copy
import numpy as np, math
import scipy.ndimage as ni
class occupancy_grid_3d():
##
# @param resolution - 3x1 matrix. size of each cell (in meters) along
# the different directions.
def __init__(self, center, size, resolution, data,
... | [
[
1,
0,
0.0183,
0.0092,
0,
0.66,
0,
654,
0,
1,
0,
0,
654,
0,
0
],
[
1,
0,
0.0275,
0.0092,
0,
0.66,
0.1667,
509,
0,
3,
0,
0,
509,
0,
0
],
[
1,
0,
0.0367,
0.0092,
0,
... | [
"import time",
"import sys, os, copy",
"import numpy as np, math",
"import scipy.ndimage as ni",
"class occupancy_grid_3d():\n\n ##\n # @param resolution - 3x1 matrix. size of each cell (in meters) along\n # the different directions.\n def __init__(self, center, size, resolut... |
#!/usr/bin/python
import numpy as np, math
import time
import roslib; roslib.load_manifest('point_cloud_ros')
import rospy
from point_cloud_ros.msg import OccupancyGrid
import hrl_tilting_hokuyo.display_3d_mayavi as d3m
import point_cloud_ros.ros_occupancy_grid as rog
def mayavi_cb(og, param_list):
og3d = rog.... | [
[
1,
0,
0.0375,
0.0125,
0,
0.66,
0,
954,
0,
2,
0,
0,
954,
0,
0
],
[
1,
0,
0.05,
0.0125,
0,
0.66,
0.0909,
654,
0,
1,
0,
0,
654,
0,
0
],
[
1,
0,
0.075,
0.0125,
0,
0.6... | [
"import numpy as np, math",
"import time",
"import roslib; roslib.load_manifest('point_cloud_ros')",
"import roslib; roslib.load_manifest('point_cloud_ros')",
"import rospy",
"from point_cloud_ros.msg import OccupancyGrid",
"import hrl_tilting_hokuyo.display_3d_mayavi as d3m",
"import point_cloud_ros.... |
#!/usr/bin/python
import numpy as np, math
import roslib; roslib.load_manifest('point_cloud_ros')
import rospy
import point_cloud_ros.ros_occupancy_grid as rog
from point_cloud_ros.msg import OccupancyGrid
from visualization_msgs.msg import Marker
## return a Marker message object
# @param loc - (x,y,z)
# @param sc... | [
[
1,
0,
0.04,
0.0133,
0,
0.66,
0,
954,
0,
2,
0,
0,
954,
0,
0
],
[
1,
0,
0.0667,
0.0133,
0,
0.66,
0.125,
796,
0,
1,
0,
0,
796,
0,
0
],
[
8,
0,
0.0667,
0.0133,
0,
0.6... | [
"import numpy as np, math",
"import roslib; roslib.load_manifest('point_cloud_ros')",
"import roslib; roslib.load_manifest('point_cloud_ros')",
"import rospy",
"import point_cloud_ros.ros_occupancy_grid as rog",
"from point_cloud_ros.msg import OccupancyGrid",
"from visualization_msgs.msg import Marker"... |
#
# Copyright (c) 2010, Georgia Tech Research Corporation
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright
# notice, th... | [
[
1,
0,
0.2353,
0.0074,
0,
0.66,
0,
796,
0,
1,
0,
0,
796,
0,
0
],
[
8,
0,
0.2353,
0.0074,
0,
0.66,
0.0769,
630,
3,
1,
0,
0,
0,
0,
1
],
[
1,
0,
0.25,
0.0074,
0,
0.66... | [
"import roslib; roslib.load_manifest('move_arm_tutorials')",
"import roslib; roslib.load_manifest('move_arm_tutorials')",
"import rospy",
"import actionlib",
"import geometric_shapes_msgs",
"from move_arm_msgs.msg import MoveArmAction",
"from move_arm_msgs.msg import MoveArmGoal",
"from motion_plannin... |
#
# Copyright (c) 2010, Georgia Tech Research Corporation
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright
# notice, th... | [
[
1,
0,
0.3137,
0.0098,
0,
0.66,
0,
796,
0,
1,
0,
0,
796,
0,
0
],
[
8,
0,
0.3137,
0.0098,
0,
0.66,
0.1111,
630,
3,
1,
0,
0,
0,
0,
1
],
[
1,
0,
0.3333,
0.0098,
0,
0.... | [
"import roslib; roslib.load_manifest('move_arm_tutorials')",
"import roslib; roslib.load_manifest('move_arm_tutorials')",
"import rospy",
"import actionlib",
"import geometric_shapes_msgs",
"from move_arm_msgs.msg import MoveArmAction",
"from move_arm_msgs.msg import MoveArmGoal",
"from motion_plannin... |
import roslib; roslib.load_manifest('hrl_pr2_kinematics_tutorials')
import rospy
import numpy as np, math
## Class defining the core EPC function and a few simple examples.
# More complex behaviors that use EPC should have their own ROS
# packages.
class EPC():
def __init__(self, robot):
self.robot = rob... | [
[
1,
0,
0.0145,
0.0072,
0,
0.66,
0,
796,
0,
1,
0,
0,
796,
0,
0
],
[
8,
0,
0.0145,
0.0072,
0,
0.66,
0.2,
630,
3,
1,
0,
0,
0,
0,
1
],
[
1,
0,
0.0217,
0.0072,
0,
0.66,... | [
"import roslib; roslib.load_manifest('hrl_pr2_kinematics_tutorials')",
"import roslib; roslib.load_manifest('hrl_pr2_kinematics_tutorials')",
"import rospy",
"import numpy as np, math",
"class EPC():\n def __init__(self, robot):\n self.robot = robot\n\n ##\n # @param equi_pt_generator: funct... |
import numpy as np, math
from threading import RLock
import roslib; roslib.load_manifest('hrl_pr2_kinematics_tutorials')
import rospy
import actionlib
from kinematics_msgs.srv import GetPositionFK, GetPositionFKRequest, GetPositionFKResponse
from kinematics_msgs.srv import GetPositionIK, GetPositionIKRequest, GetPo... | [
[
1,
0,
0.0089,
0.0044,
0,
0.66,
0,
954,
0,
2,
0,
0,
954,
0,
0
],
[
1,
0,
0.0133,
0.0044,
0,
0.66,
0.0588,
83,
0,
1,
0,
0,
83,
0,
0
],
[
1,
0,
0.0222,
0.0044,
0,
0.... | [
"import numpy as np, math",
"from threading import RLock",
"import roslib; roslib.load_manifest('hrl_pr2_kinematics_tutorials')",
"import roslib; roslib.load_manifest('hrl_pr2_kinematics_tutorials')",
"import rospy",
"import actionlib",
"from kinematics_msgs.srv import GetPositionFK, GetPositionFKReques... |
import roslib; roslib.load_manifest('pr2_doors_epc')
import rospy
import hrl_lib.transforms as tr
import force_torque.FTClient as ftc
import math, numpy as np
from rviz_marker_test import *
from hrl_msgs.msg import FloatArray
if __name__ == '__main__':
ft_client = ftc.FTClient('force_torque_ft2')
ft_client.b... | [
[
1,
0,
0.0526,
0.0263,
0,
0.66,
0,
796,
0,
1,
0,
0,
796,
0,
0
],
[
8,
0,
0.0526,
0.0263,
0,
0.66,
0.125,
630,
3,
1,
0,
0,
0,
0,
1
],
[
1,
0,
0.0789,
0.0263,
0,
0.6... | [
"import roslib; roslib.load_manifest('pr2_doors_epc')",
"import roslib; roslib.load_manifest('pr2_doors_epc')",
"import rospy",
"import hrl_lib.transforms as tr",
"import force_torque.FTClient as ftc",
"import math, numpy as np",
"from rviz_marker_test import *",
"from hrl_msgs.msg import FloatArray",... |
import roslib; roslib.load_manifest('hrl_pr2_kinematics')
import rospy
from equilibrium_point_control.msg import MechanismKinematicsRot
from equilibrium_point_control.msg import MechanismKinematicsJac
import epc
from threading import RLock
##
# compute the end effector rotation matrix.
# @param hook - hook angle. ... | [
[
1,
0,
0.0052,
0.0026,
0,
0.66,
0,
796,
0,
1,
0,
0,
796,
0,
0
],
[
8,
0,
0.0052,
0.0026,
0,
0.66,
0.1111,
630,
3,
1,
0,
0,
0,
0,
1
],
[
1,
0,
0.0078,
0.0026,
0,
0.... | [
"import roslib; roslib.load_manifest('hrl_pr2_kinematics')",
"import roslib; roslib.load_manifest('hrl_pr2_kinematics')",
"import rospy",
"from equilibrium_point_control.msg import MechanismKinematicsRot",
"from equilibrium_point_control.msg import MechanismKinematicsJac",
"import epc",
"from threading ... |
__all__ = [
'door_epc',
'epc',
'hrl_pr2',
]
| [
[
14,
0,
0.625,
0.625,
0,
0.66,
0,
272,
0,
0,
0,
0,
0,
5,
0
]
] | [
"__all__ = [\n'door_epc',\n'epc',\n'hrl_pr2',\n]"
] |
import roslib; roslib.load_manifest('hrl_pr2_kinematics_tutorials')
import rospy
from visualization_msgs.msg import Marker
from geometry_msgs.msg import Point
import hrl_lib.transforms as tr
import math, numpy as np
def get_marker_arrow(p_st, p_end, frame_id):
m = Marker()
m.header.stamp = rospy.rostime.get_... | [
[
1,
0,
0.0408,
0.0204,
0,
0.66,
0,
796,
0,
1,
0,
0,
796,
0,
0
],
[
8,
0,
0.0408,
0.0204,
0,
0.66,
0.125,
630,
3,
1,
0,
0,
0,
0,
1
],
[
1,
0,
0.0612,
0.0204,
0,
0.6... | [
"import roslib; roslib.load_manifest('hrl_pr2_kinematics_tutorials')",
"import roslib; roslib.load_manifest('hrl_pr2_kinematics_tutorials')",
"import rospy",
"from visualization_msgs.msg import Marker",
"from geometry_msgs.msg import Point",
"import hrl_lib.transforms as tr",
"import math, numpy as np",... |
#
#
# Copyright (c) 2010, Georgia Tech Research Corporation
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright
# notice, ... | [
[
1,
0,
0.3048,
0.0095,
0,
0.66,
0,
796,
0,
1,
0,
0,
796,
0,
0
],
[
8,
0,
0.3143,
0.0095,
0,
0.66,
0.1,
630,
3,
1,
0,
0,
0,
0,
1
],
[
1,
0,
0.3333,
0.0095,
0,
0.66,... | [
"import roslib",
"roslib.load_manifest('hrl_simple_arm_goals')",
"import rospy",
"import actionlib",
"from move_arm_msgs.msg import MoveArmGoal",
"from move_arm_msgs.msg import MoveArmAction",
"from motion_planning_msgs.msg import PositionConstraint",
"from motion_planning_msgs.msg import OrientationC... |
import matplotlib.pyplot as pp
import numpy as np
import roslib; roslib.load_manifest('hrl_pr2_door_opening')
roslib.load_manifest('equilibrium_point_control')
import hrl_lib.util as ut
import equilibrium_point_control.arm_trajectories_ram as atr
d = ut.load_pickle('pkls/ikea_cabinet_log.pkl')
#d = ut.load_pickle('... | [
[
1,
0,
0.0513,
0.0256,
0,
0.66,
0,
596,
0,
1,
0,
0,
596,
0,
0
],
[
1,
0,
0.0769,
0.0256,
0,
0.66,
0.0556,
954,
0,
1,
0,
0,
954,
0,
0
],
[
1,
0,
0.1282,
0.0256,
0,
... | [
"import matplotlib.pyplot as pp",
"import numpy as np",
"import roslib; roslib.load_manifest('hrl_pr2_door_opening')",
"import roslib; roslib.load_manifest('hrl_pr2_door_opening')",
"roslib.load_manifest('equilibrium_point_control')",
"import hrl_lib.util as ut",
"import equilibrium_point_control.arm_tr... |
import numpy as np, math
from threading import RLock, Timer
import sys, copy
import roslib; roslib.load_manifest('hrl_pr2_lib')
roslib.load_manifest('force_torque') # hack by Advait
import force_torque.FTClient as ftc
import tf
import hrl_lib.transforms as tr
import hrl_lib.viz as hv
import rospy
import PyKDL as ... | [
[
1,
0,
0.0043,
0.0014,
0,
0.66,
0,
954,
0,
2,
0,
0,
954,
0,
0
],
[
1,
0,
0.0058,
0.0014,
0,
0.66,
0.0323,
83,
0,
2,
0,
0,
83,
0,
0
],
[
1,
0,
0.0072,
0.0014,
0,
0.... | [
"import numpy as np, math",
"from threading import RLock, Timer",
"import sys, copy",
"import roslib; roslib.load_manifest('hrl_pr2_lib')",
"import roslib; roslib.load_manifest('hrl_pr2_lib')",
"roslib.load_manifest('force_torque') # hack by Advait",
"import force_torque.FTClient as ftc",
"import tf",... |
#
# Temoprarily in this package. Advait needs to move it to a better
# location.
#
import numpy as np, math
import copy
import roslib; roslib.load_manifest('hrl_pr2_door_opening')
import rospy
import hrl_lib.util as ut
## Class defining the core EPC function and a few simple examples.
# More complex behaviors that... | [
[
1,
0,
0.0341,
0.0049,
0,
0.66,
0,
954,
0,
2,
0,
0,
954,
0,
0
],
[
1,
0,
0.039,
0.0049,
0,
0.66,
0.1429,
739,
0,
1,
0,
0,
739,
0,
0
],
[
1,
0,
0.0488,
0.0049,
0,
0... | [
"import numpy as np, math",
"import copy",
"import roslib; roslib.load_manifest('hrl_pr2_door_opening')",
"import roslib; roslib.load_manifest('hrl_pr2_door_opening')",
"import rospy",
"import hrl_lib.util as ut",
"class EPC():\n def __init__(self, robot):\n self.robot = robot\n self.f_... |
import numpy as np, math
import copy
from threading import RLock
import roslib; roslib.load_manifest('hrl_pr2_door_opening')
roslib.load_manifest('equilibrium_point_control')
import rospy
from equilibrium_point_control.msg import MechanismKinematicsRot
from equilibrium_point_control.msg import MechanismKinematicsJac... | [
[
1,
0,
0.0052,
0.0026,
0,
0.66,
0,
954,
0,
2,
0,
0,
954,
0,
0
],
[
1,
0,
0.0078,
0.0026,
0,
0.66,
0.0667,
739,
0,
1,
0,
0,
739,
0,
0
],
[
1,
0,
0.0104,
0.0026,
0,
... | [
"import numpy as np, math",
"import copy",
"from threading import RLock",
"import roslib; roslib.load_manifest('hrl_pr2_door_opening')",
"import roslib; roslib.load_manifest('hrl_pr2_door_opening')",
"roslib.load_manifest('equilibrium_point_control')",
"import rospy",
"from equilibrium_point_control.m... |
#!/usr/bin/python
import numpy as np, math
import copy
from threading import RLock
import roslib; roslib.load_manifest('hrl_pr2_door_opening')
import rospy
from hrl_msgs.msg import FloatArray
from geometry_msgs.msg import Twist
def ft_cb(data):
lock.acquire()
ft_val[0] = data.linear.x
ft_val[1] = data.l... | [
[
1,
0,
0.0769,
0.0256,
0,
0.66,
0,
954,
0,
2,
0,
0,
954,
0,
0
],
[
1,
0,
0.1026,
0.0256,
0,
0.66,
0.1111,
739,
0,
1,
0,
0,
739,
0,
0
],
[
1,
0,
0.1282,
0.0256,
0,
... | [
"import numpy as np, math",
"import copy",
"from threading import RLock",
"import roslib; roslib.load_manifest('hrl_pr2_door_opening')",
"import roslib; roslib.load_manifest('hrl_pr2_door_opening')",
"import rospy",
"from hrl_msgs.msg import FloatArray",
"from geometry_msgs.msg import Twist",
"def f... |
import roslib
roslib.load_manifest('rospy')
roslib.load_manifest('visualization_msgs')
import rospy
from visualization_msgs.msg import Marker
import numpy as np
class SceneDraw:
def __init__(self, topic='contact_visualization', node='contact_sim', frame='/world_frame'):
self.pub = rospy.Publisher(topic+'_m... | [
[
1,
0,
0.02,
0.02,
0,
0.66,
0,
796,
0,
1,
0,
0,
796,
0,
0
],
[
8,
0,
0.04,
0.02,
0,
0.66,
0.1667,
630,
3,
1,
0,
0,
0,
0,
1
],
[
8,
0,
0.06,
0.02,
0,
0.66,
0.33... | [
"import roslib",
"roslib.load_manifest('rospy')",
"roslib.load_manifest('visualization_msgs')",
"import rospy",
"from visualization_msgs.msg import Marker",
"import numpy as np",
"class SceneDraw:\n def __init__(self, topic='contact_visualization', node='contact_sim', frame='/world_frame'):\n ... |
#!/usr/bin/env python
#
# Copyright (c) 2009, Georgia Tech Research Corporation
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyrig... | [
[
1,
0,
0.4444,
0.0139,
0,
0.66,
0,
796,
0,
1,
0,
0,
796,
0,
0
],
[
8,
0,
0.4444,
0.0139,
0,
0.66,
0.1667,
630,
3,
1,
0,
0,
0,
0,
1
],
[
1,
0,
0.4583,
0.0139,
0,
0.... | [
"import roslib; roslib.load_manifest('pr2_playpen')",
"import roslib; roslib.load_manifest('pr2_playpen')",
"import rospy",
"from pr2_playpen.srv import *",
"from robotis.lib_robotis import *",
"class Play:\n\n def __init__(self):\n dyn = USB2Dynamixel_Device('/dev/ttyUSB0')\n self.plaype... |
#!/usr/bin/env python
#
# Copyright (c) 2009, Georgia Tech Research Corporation
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyr... | [
[
1,
0,
0.3563,
0.0115,
0,
0.66,
0,
688,
0,
1,
0,
0,
688,
0,
0
],
[
1,
0,
0.3678,
0.0115,
0,
0.66,
0.0909,
796,
0,
1,
0,
0,
796,
0,
0
],
[
8,
0,
0.3793,
0.0115,
0,
... | [
"import os",
"import roslib",
"roslib.load_manifest('pr2_playpen')",
"roslib.load_manifest('tf_conversions')",
"import rospy",
"import math",
"import tf",
"import sys",
"import tf_conversions.posemath as pm",
"import numpy as np",
"from geometry_msgs.msg import Pose",
"if __name__ == '__main__... |
#!/usr/bin/env python
import roslib
roslib.load_manifest('pr2_playpen')
import rospy
import hrl_pr2_lib.pressure_listener as pl
import cPickle
class PressureWriter:
def __init__(self):
rospy.init_node('pressure_writer')
self.r_grip_press = pl.PressureListener(topic='/pressure/r_gripper_motor')
... | [
[
1,
0,
0.037,
0.0185,
0,
0.66,
0,
796,
0,
1,
0,
0,
796,
0,
0
],
[
8,
0,
0.0556,
0.0185,
0,
0.66,
0.1667,
630,
3,
1,
0,
0,
0,
0,
1
],
[
1,
0,
0.0741,
0.0185,
0,
0.6... | [
"import roslib",
"roslib.load_manifest('pr2_playpen')",
"import rospy",
"import hrl_pr2_lib.pressure_listener as pl",
"import cPickle",
"class PressureWriter:\n\n def __init__(self):\n rospy.init_node('pressure_writer')\n self.r_grip_press = pl.PressureListener(topic='/pressure/r_gripper_... |
#
# Copyright (c) 2009, Georgia Tech Research Corporation
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright
# notice, thi... | [
[
1,
0,
0.0175,
0.0175,
0,
0.66,
0,
796,
0,
1,
0,
0,
796,
0,
0
],
[
1,
0,
0.0351,
0.0175,
0,
0.66,
0.0714,
164,
0,
1,
0,
0,
164,
0,
0
],
[
1,
0,
0.0526,
0.0175,
0,
... | [
"import roslib",
"import rospy",
"from pr2_playpen.pick_and_place_manager import *",
"from object_manipulator.convert_functions import *",
"from pr2_playpen.srv import Playpen",
"from pr2_playpen.srv import Conveyor",
"from pr2_playpen.srv import Check",
"from pr2_playpen.srv import Train",
"from UI... |
#! /usr/bin/python
#
# Copyright (c) 2009, Georgia Tech Research Corporation
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright
... | [
[
1,
0,
0.0083,
0.0083,
0,
0.66,
0,
796,
0,
1,
0,
0,
796,
0,
0
],
[
1,
0,
0.0167,
0.0083,
0,
0.66,
0.0625,
164,
0,
1,
0,
0,
164,
0,
0
],
[
1,
0,
0.025,
0.0083,
0,
0... | [
"import roslib",
"import rospy",
"import actionlib",
"import hrl_pr2_lib.pressure_listener as pl",
"from object_manipulator.convert_functions import *",
"from pr2_playpen.srv import Playpen",
"from pr2_playpen.srv import Conveyor",
"from pr2_playpen.srv import Check",
"from pr2_playpen.srv import Tr... |
#!/usr/bin/env python
# Calculating and displaying 2D Hue-Saturation histogram of a color image
import roslib
roslib.load_manifest('opencv2')
import sys
import cv
cv.NamedWindow("back_projection", cv.CV_WINDOW_AUTOSIZE)
cv.NamedWindow("back_modified", cv.CV_WINDOW_AUTOSIZE)
cv.NamedWindow("back_modified2", cv.CV_WIN... | [
[
1,
0,
0.0126,
0.0042,
0,
0.66,
0,
796,
0,
1,
0,
0,
796,
0,
0
],
[
8,
0,
0.0167,
0.0042,
0,
0.66,
0.1111,
630,
3,
1,
0,
0,
0,
0,
1
],
[
1,
0,
0.0209,
0.0042,
0,
0.... | [
"import roslib",
"roslib.load_manifest('opencv2')",
"import sys",
"import cv",
"cv.NamedWindow(\"back_projection\", cv.CV_WINDOW_AUTOSIZE)",
"cv.NamedWindow(\"back_modified\", cv.CV_WINDOW_AUTOSIZE)",
"cv.NamedWindow(\"back_modified2\", cv.CV_WINDOW_AUTOSIZE)",
"def hs_histogram(src, patch):\n # Co... |
#!/usr/bin/env python
# Calculating and displaying 2D Hue-Saturation histogram of a color image
import roslib
roslib.load_manifest('opencv2')
import sys
import cv
import numpy as np
from collections import deque
cv.NamedWindow("avg_noise", cv.CV_WINDOW_AUTOSIZE)
cv.NamedWindow("back_modified", cv.CV_WINDOW_AUTOSIZE)... | [
[
1,
0,
0.0186,
0.0062,
0,
0.66,
0,
796,
0,
1,
0,
0,
796,
0,
0
],
[
8,
0,
0.0248,
0.0062,
0,
0.66,
0.1,
630,
3,
1,
0,
0,
0,
0,
1
],
[
1,
0,
0.0311,
0.0062,
0,
0.66,... | [
"import roslib",
"roslib.load_manifest('opencv2')",
"import sys",
"import cv",
"import numpy as np",
"from collections import deque",
"cv.NamedWindow(\"avg_noise\", cv.CV_WINDOW_AUTOSIZE)",
"cv.NamedWindow(\"back_modified\", cv.CV_WINDOW_AUTOSIZE)",
"cv.NamedWindow(\"back_modified2\", cv.CV_WINDOW_A... |
#!/usr/bin/env python
import roslib
roslib.load_manifest('pr2_playpen')
import rospy
import math
import tf
import numpy as np
import os
import sys
import cPickle as pkl
def is_topic_pub(topic):
flag = False
for item in rospy.get_published_topics():
for thing in item:
if topic in thing:
... | [
[
1,
0,
0.0241,
0.012,
0,
0.66,
0,
796,
0,
1,
0,
0,
796,
0,
0
],
[
8,
0,
0.0361,
0.012,
0,
0.66,
0.0909,
630,
3,
1,
0,
0,
0,
0,
1
],
[
1,
0,
0.0482,
0.012,
0,
0.66,... | [
"import roslib",
"roslib.load_manifest('pr2_playpen')",
"import rospy",
"import math",
"import tf",
"import numpy as np",
"import os",
"import sys",
"import cPickle as pkl",
"def is_topic_pub(topic):\n flag = False\n for item in rospy.get_published_topics():\n for thing in item:\n ... |
#!/usr/bin/env python
import roslib
roslib.load_manifest('pr2_playpen')
import rospy
from sensor_msgs.msg import PointCloud2
import point_cloud_python as pc2py
import numpy as np
from matplotlib import pylab as pl
import draw_scene as ds
import math
from pr2_playpen.srv import * #this is for Train and Check
import thre... | [
[
1,
0,
0.0076,
0.0038,
0,
0.66,
0,
796,
0,
1,
0,
0,
796,
0,
0
],
[
8,
0,
0.0115,
0.0038,
0,
0.66,
0.0833,
630,
3,
1,
0,
0,
0,
0,
1
],
[
1,
0,
0.0153,
0.0038,
0,
0.... | [
"import roslib",
"roslib.load_manifest('pr2_playpen')",
"import rospy",
"from sensor_msgs.msg import PointCloud2",
"import point_cloud_python as pc2py",
"import numpy as np",
"from matplotlib import pylab as pl",
"import draw_scene as ds",
"import math",
"from pr2_playpen.srv import * #this is for... |
import roslib
roslib.load_manifest('opencv2')
import cv
a = cv.LoadImage('/home/mkillpack/hrl_file_server/playpen_data_sets/2011-06-30_19-01-02/object000_try011_before_pr2.png', 0)
b = cv.LoadImage('/home/mkillpack/hrl_file_server/playpen_data_sets/2011-06-30_19-01-02/object000_try011_after_pr2.png', 0)
foreground = c... | [
[
1,
0,
0.0093,
0.0093,
0,
0.66,
0,
796,
0,
1,
0,
0,
796,
0,
0
],
[
8,
0,
0.0185,
0.0093,
0,
0.66,
0.0263,
630,
3,
1,
0,
0,
0,
0,
1
],
[
1,
0,
0.0278,
0.0093,
0,
0.... | [
"import roslib",
"roslib.load_manifest('opencv2')",
"import cv",
"a = cv.LoadImage('/home/mkillpack/hrl_file_server/playpen_data_sets/2011-06-30_19-01-02/object000_try011_before_pr2.png', 0)",
"b = cv.LoadImage('/home/mkillpack/hrl_file_server/playpen_data_sets/2011-06-30_19-01-02/object000_try011_after_pr2... |
#######################################################################
#
# USE pr2_object_manipulation/pr2_gripper_reactive_approach/controller_manager.py
# That code has much of the ideas at the bottom, with more.
#
#######################################################################
# TODO Update code t... | [
[
1,
0,
0.0636,
0.0042,
0,
0.66,
0,
954,
0,
2,
0,
0,
954,
0,
0
],
[
1,
0,
0.0678,
0.0042,
0,
0.66,
0.0476,
83,
0,
2,
0,
0,
83,
0,
0
],
[
1,
0,
0.072,
0.0042,
0,
0.6... | [
"import numpy as np, math",
"from threading import RLock, Timer",
"import sys",
"import roslib; roslib.load_manifest('hrl_pr2_lib')",
"import roslib; roslib.load_manifest('hrl_pr2_lib')",
"import tf",
"import rospy",
"import actionlib",
"from actionlib_msgs.msg import GoalStatus",
"from pr2_contro... |
#!/usr/bin/env python
#
# Copyright (c) 2009, Georgia Tech Research Corporation
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyrig... | [
[
1,
0,
0.5882,
0.0196,
0,
0.66,
0,
796,
0,
1,
0,
0,
796,
0,
0
],
[
8,
0,
0.6078,
0.0196,
0,
0.66,
0.0714,
630,
3,
1,
0,
0,
0,
0,
1
],
[
1,
0,
0.6275,
0.0196,
0,
0.... | [
"import roslib",
"roslib.load_manifest('pr2_playpen')",
"from UI_segment_object.srv import GetObject",
"import rospy",
"import sys",
"import optparse",
"p = optparse.OptionParser()",
"p.add_option('--node', action='store', type='string', dest='node')",
"p.add_option('--serv', action='store', type='s... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.