code stringlengths 1 1.49M | vector listlengths 0 7.38k | snippet listlengths 0 7.38k |
|---|---|---|
#!/usr/bin/python
import roslib
roslib.load_manifest("hrl_pr2_arms")
roslib.load_manifest("hrl_generic_arms")
roslib.load_manifest("hrl_lib")
roslib.load_manifest("hrl_msgs")
roslib.load_manifest("ar_pose")
import math, time, copy
import numpy as np
import tf, rospy, actionlib
import hrl_lib.transforms as hrl_tr
impor... | [
[
1,
0,
0.0067,
0.0033,
0,
0.66,
0,
796,
0,
1,
0,
0,
796,
0,
0
],
[
8,
0,
0.01,
0.0033,
0,
0.66,
0.0417,
630,
3,
1,
0,
0,
0,
0,
1
],
[
8,
0,
0.0134,
0.0033,
0,
0.66... | [
"import roslib",
"roslib.load_manifest(\"hrl_pr2_arms\")",
"roslib.load_manifest(\"hrl_generic_arms\")",
"roslib.load_manifest(\"hrl_lib\")",
"roslib.load_manifest(\"hrl_msgs\")",
"roslib.load_manifest(\"ar_pose\")",
"import math, time, copy",
"import numpy as np",
"import tf, rospy, actionlib",
"... |
#!/usr/bin/python
import roslib
roslib.load_manifest('tf')
roslib.load_manifest('rospy')
roslib.load_manifest('geometry_msgs')
roslib.load_manifest('hrl_lib')
import rospy, optparse, math, time
import numpy as np
import tf
import tf.transformations as tr
import cPickle as pkl
import hrl_lib.transforms as hrl_tr
import... | [
[
1,
0,
0.0441,
0.0147,
0,
0.66,
0,
796,
0,
1,
0,
0,
796,
0,
0
],
[
8,
0,
0.0588,
0.0147,
0,
0.66,
0.0667,
630,
3,
1,
0,
0,
0,
0,
1
],
[
8,
0,
0.0735,
0.0147,
0,
0.... | [
"import roslib",
"roslib.load_manifest('tf')",
"roslib.load_manifest('rospy')",
"roslib.load_manifest('geometry_msgs')",
"roslib.load_manifest('hrl_lib')",
"import rospy, optparse, math, time",
"import numpy as np",
"import tf",
"import tf.transformations as tr",
"import cPickle as pkl",
"import... |
#!/usr/bin/python
import roslib
roslib.load_manifest('tf')
roslib.load_manifest('rospy')
roslib.load_manifest('adl_pr2_log')
roslib.load_manifest('geometry_msgs')
import rospy, optparse, math, time
import numpy as np
import tf
from hrl_lib.msg import WrenchPoseArrayStamped
from geometry_msgs.msg import WrenchStamped
f... | [
[
1,
0,
0.0288,
0.0096,
0,
0.66,
0,
796,
0,
1,
0,
0,
796,
0,
0
],
[
8,
0,
0.0385,
0.0096,
0,
0.66,
0.0769,
630,
3,
1,
0,
0,
0,
0,
1
],
[
8,
0,
0.0481,
0.0096,
0,
0.... | [
"import roslib",
"roslib.load_manifest('tf')",
"roslib.load_manifest('rospy')",
"roslib.load_manifest('adl_pr2_log')",
"roslib.load_manifest('geometry_msgs')",
"import rospy, optparse, math, time",
"import numpy as np",
"import tf",
"from hrl_lib.msg import WrenchPoseArrayStamped",
"from geometry_... |
#!/usr/bin/python
import roslib
roslib.load_manifest('rospy')
roslib.load_manifest('std_msgs')
import rospy, optparse, math, time
import numpy as np
import serial
from std_msgs.msg import Bool
class shaver_pub():
def __init__(self):
self.pub = rospy.Publisher('/ros_switch', Bool)
rospy.init_node('shaver_pwr_pub... | [
[
1,
0,
0.0857,
0.0286,
0,
0.66,
0,
796,
0,
1,
0,
0,
796,
0,
0
],
[
8,
0,
0.1143,
0.0286,
0,
0.66,
0.125,
630,
3,
1,
0,
0,
0,
0,
1
],
[
8,
0,
0.1429,
0.0286,
0,
0.6... | [
"import roslib",
"roslib.load_manifest('rospy')",
"roslib.load_manifest('std_msgs')",
"import rospy, optparse, math, time",
"import numpy as np",
"import serial",
"from std_msgs.msg import Bool",
"class shaver_pub():\n\tdef __init__(self):\n\t\tself.pub = rospy.Publisher('/ros_switch', Bool)\n\t\trosp... |
#!/usr/bin/python
import roslib
roslib.load_manifest('tf')
roslib.load_manifest('hrl_lib')
import math, time, optparse
import numpy as np
import tf.transformations as tr
import cPickle as pkl
import scipy.stats as st
import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import Axes3D
import scipy.optimize as so
i... | [
[
1,
0,
0.0263,
0.0263,
0,
0.66,
0,
796,
0,
1,
0,
0,
796,
0,
0
],
[
1,
0,
0.0526,
0.0263,
0,
0.66,
0.0833,
526,
0,
3,
0,
0,
526,
0,
0
],
[
1,
0,
0.0789,
0.0263,
0,
... | [
"import roslib",
"import math, time, optparse",
"import numpy as np",
"import tf.transformations as tr",
"import cPickle as pkl",
"import scipy.stats as st",
"import matplotlib.pyplot as plt",
"from mpl_toolkits.mplot3d import Axes3D",
"import scipy.optimize as so",
"import hrl_lib.util as ut",
... |
#!/usr/bin/python
import roslib
roslib.load_manifest('stereo_anaglyph')
import rospy
import hrl_camera.ros_camera as rc
import cv
def add_alpha_channel(bgr, alpha_val):
w, h = cv.GetSize(bgr)
bgra = cv.CreateImage((w, h), cv.IPL_DEPTH_8U, 4)
alpha = cv.CreateImage((w, h), cv.IPL_DEPTH_8U, 1)
chan1 = c... | [
[
1,
0,
0.0099,
0.005,
0,
0.66,
0,
796,
0,
1,
0,
0,
796,
0,
0
],
[
8,
0,
0.0149,
0.005,
0,
0.66,
0.125,
630,
3,
1,
0,
0,
0,
0,
1
],
[
1,
0,
0.0198,
0.005,
0,
0.66,
... | [
"import roslib",
"roslib.load_manifest('stereo_anaglyph')",
"import rospy",
"import hrl_camera.ros_camera as rc",
"import cv",
"def add_alpha_channel(bgr, alpha_val):\n w, h = cv.GetSize(bgr)\n bgra = cv.CreateImage((w, h), cv.IPL_DEPTH_8U, 4)\n alpha = cv.CreateImage((w, h), cv.IPL_DEPTH_8U, 1)... |
#!/usr/bin/python
import roslib
roslib.load_manifest('stereo_anaglyph')
import rospy
import hrl_camera.ros_camera as rc
import cv
def anaglyph(left_color, right_color):
left_mono = cv.CreateImage(cv.GetSize(left_color), cv.IPL_DEPTH_8U, 1)
right_mono = cv.CreateImage(cv.GetSize(right_color), cv.IPL_DEPTH_8U, ... | [
[
1,
0,
0.0185,
0.0093,
0,
0.66,
0,
796,
0,
1,
0,
0,
796,
0,
0
],
[
8,
0,
0.0278,
0.0093,
0,
0.66,
0.1,
630,
3,
1,
0,
0,
0,
0,
1
],
[
1,
0,
0.037,
0.0093,
0,
0.66,
... | [
"import roslib",
"roslib.load_manifest('stereo_anaglyph')",
"import rospy",
"import hrl_camera.ros_camera as rc",
"import cv",
"def anaglyph(left_color, right_color):\n left_mono = cv.CreateImage(cv.GetSize(left_color), cv.IPL_DEPTH_8U, 1)\n right_mono = cv.CreateImage(cv.GetSize(right_color), cv.IP... |
#Particle filter imports
import pfilter as pf
import robot_motion as rm
import object_motion as om
import detection_appearance as da
#Others
import nodes as nd
import transforms2d as t2d
import numpy as np
import math as mt
import opencv.cv as cv
import types
import functools as ft
velocity = np.matrix([0.01, 0.0... | [
[
1,
0,
0.0168,
0.0084,
0,
0.66,
0,
180,
0,
1,
0,
0,
180,
0,
0
],
[
1,
0,
0.0252,
0.0084,
0,
0.66,
0.0435,
99,
0,
1,
0,
0,
99,
0,
0
],
[
1,
0,
0.0336,
0.0084,
0,
0.... | [
"import pfilter as pf",
"import robot_motion as rm",
"import object_motion as om",
"import detection_appearance as da",
"import nodes as nd",
"import transforms2d as t2d",
"import numpy as np",
"import math as mt",
"import opencv.cv as cv",
"import types",
"import functools as ft",
"velocity ... |
#!/usr/bin/python
import numpy as np
import random as rd
############################################################################
### Functions implementing a particle filter
############################################################################
# Note:
# To instantiate a particle filter you... | [
[
1,
0,
0.0112,
0.0056,
0,
0.66,
0,
954,
0,
1,
0,
0,
954,
0,
0
],
[
1,
0,
0.0168,
0.0056,
0,
0.66,
0.0909,
715,
0,
1,
0,
0,
715,
0,
0
],
[
2,
0,
0.148,
0.0112,
0,
0... | [
"import numpy as np",
"import random as rd",
"def retTrue( *args ):\n return True",
" return True",
"def retFalse( *args ):\n return False",
" return False",
"class PFilter:\n def __init__(self, motion, appearance):\n \"\"\" Makes a particle filter \"\"\"\n self.motion = mot... |
__all__ = [
'pfilter'
]
| [
[
14,
0,
0.6667,
1,
0,
0.66,
0,
272,
0,
0,
0,
0,
0,
5,
0
]
] | [
"__all__ = [\n'pfilter'\n]"
] |
import numpy as np
import util as ut
import prob as pr
import itertools as it
import types
import opencv.cv as cv
class DetectionAppearance:
def __init__(self, cov):
"""
Appearance model for tracking when there is a detector
available that gives 2d poses of objects.
... | [
[
1,
0,
0.0104,
0.0104,
0,
0.66,
0,
954,
0,
1,
0,
0,
954,
0,
0
],
[
1,
0,
0.0208,
0.0104,
0,
0.66,
0.1429,
811,
0,
1,
0,
0,
811,
0,
0
],
[
1,
0,
0.0312,
0.0104,
0,
... | [
"import numpy as np",
"import util as ut",
"import prob as pr",
"import itertools as it",
"import types",
"import opencv.cv as cv",
"class DetectionAppearance:\n def __init__(self, cov):\n \"\"\" \n Appearance model for tracking when there is a detector\n available th... |
import util as ut
import math as mt
import numpy as np
from StringIO import StringIO
import transforms2d as t2d
import opencv.cv as cv
import types
class RobotMotion:
"""
Generates sample from robot motion model, has methods used in particle filter
Use:
motion_var- motion_var object
... | [
[
1,
0,
0.004,
0.004,
0,
0.66,
0,
811,
0,
1,
0,
0,
811,
0,
0
],
[
1,
0,
0.008,
0.004,
0,
0.66,
0.0526,
526,
0,
1,
0,
0,
526,
0,
0
],
[
1,
0,
0.012,
0.004,
0,
0.66,
... | [
"import util as ut",
"import math as mt",
"import numpy as np",
"from StringIO import StringIO",
"import transforms2d as t2d",
"import opencv.cv as cv",
"import types",
"class RobotMotion:\n \"\"\" \n Generates sample from robot motion model, has methods used in particle filter \n Use... |
#!/usr/bin/python
import roslib
roslib.load_manifest("pr2_laser_follow_behavior")
import rospy
import numpy as np
import math
from actionlib_msgs.msg import *
from pr2_controllers_msgs.msg import *
from geometry_msgs.msg import *
from std_msgs.msg import String
from move_base_msgs.msg import *
import actionlib
impor... | [
[
1,
0,
0.012,
0.006,
0,
0.66,
0,
796,
0,
1,
0,
0,
796,
0,
0
],
[
8,
0,
0.018,
0.006,
0,
0.66,
0.0588,
630,
3,
1,
0,
0,
0,
0,
1
],
[
1,
0,
0.024,
0.006,
0,
0.66,
... | [
"import roslib",
"roslib.load_manifest(\"pr2_laser_follow_behavior\")",
"import rospy",
"import numpy as np",
"import math",
"from actionlib_msgs.msg import *",
"from pr2_controllers_msgs.msg import *",
"from geometry_msgs.msg import *",
"from std_msgs.msg import String",
"from move_base_msgs.msg ... |
import roslib
roslib.load_manifest('pr2_laser_follow_behavior')
import rospy
from geometry_msgs.msg import PointStamped
from geometry_msgs.msg import PoseStamped
import hrl_lib.tf_utils as tfu
import tf
class FollowPointBehavior:
def __init__(self):
rospy.Subscriber('cursor3dcentered', PointStamped, follo... | [
[
1,
0,
0.0152,
0.0152,
0,
0.66,
0,
796,
0,
1,
0,
0,
796,
0,
0
],
[
8,
0,
0.0303,
0.0152,
0,
0.66,
0.125,
630,
3,
1,
0,
0,
0,
0,
1
],
[
1,
0,
0.0455,
0.0152,
0,
0.6... | [
"import roslib",
"roslib.load_manifest('pr2_laser_follow_behavior')",
"import rospy",
"from geometry_msgs.msg import PointStamped",
"from geometry_msgs.msg import PoseStamped",
"import hrl_lib.tf_utils as tfu",
"import tf",
"class FollowPointBehavior:\n\n def __init__(self):\n rospy.Subscrib... |
#! /usr/bin/python
import roslib
roslib.load_manifest('pr2_follow_laser_behavior')
import rospy
import actionlib
from actionlib_msgs.msg import *
from pr2_controllers_msgs.msg import *
from geometry_msgs.msg import *
rospy.init_node('move_the_head', anonymous=True)
client = actionlib.SimpleActionClient(
'/head_t... | [
[
1,
0,
0.0625,
0.0312,
0,
0.66,
0,
796,
0,
1,
0,
0,
796,
0,
0
],
[
8,
0,
0.0938,
0.0312,
0,
0.66,
0.0556,
630,
3,
1,
0,
0,
0,
0,
1
],
[
1,
0,
0.1562,
0.0312,
0,
0.... | [
"import roslib",
"roslib.load_manifest('pr2_follow_laser_behavior')",
"import rospy",
"import actionlib",
"from actionlib_msgs.msg import *",
"from pr2_controllers_msgs.msg import *",
"from geometry_msgs.msg import *",
"rospy.init_node('move_the_head', anonymous=True)",
"client = actionlib.SimpleAct... |
#!/usr/bin/python
import roslib
roslib.load_manifest("pr2_laser_follow_behavior")
import rospy
import numpy as np
import math
from actionlib_msgs.msg import *
from pr2_controllers_msgs.msg import *
from geometry_msgs.msg import *
from std_msgs.msg import String
from move_base_msgs.msg import *
import actionlib
impor... | [
[
1,
0,
0.0113,
0.0056,
0,
0.66,
0,
796,
0,
1,
0,
0,
796,
0,
0
],
[
8,
0,
0.0169,
0.0056,
0,
0.66,
0.0588,
630,
3,
1,
0,
0,
0,
0,
1
],
[
1,
0,
0.0226,
0.0056,
0,
0.... | [
"import roslib",
"roslib.load_manifest(\"pr2_laser_follow_behavior\")",
"import rospy",
"import numpy as np",
"import math",
"from actionlib_msgs.msg import *",
"from pr2_controllers_msgs.msg import *",
"from geometry_msgs.msg import *",
"from std_msgs.msg import String",
"from move_base_msgs.msg ... |
import roslib; roslib.load_manifest('hai_sandbox')
from cv_bridge.cv_bridge import CvBridge, CvBridgeError
import rospy
import cv
import sys
import hrl_lib.tf_utils as tfu
import tf.transformations as tr
import tf
import hrl_camera.ros_camera as cam
from sensor_msgs.msg import CameraInfo
import numpy as np
import hai_... | [
[
1,
0,
0.0093,
0.0093,
0,
0.66,
0,
796,
0,
1,
0,
0,
796,
0,
0
],
[
8,
0,
0.0093,
0.0093,
0,
0.66,
0.0667,
630,
3,
1,
0,
0,
0,
0,
1
],
[
1,
0,
0.0185,
0.0093,
0,
0.... | [
"import roslib; roslib.load_manifest('hai_sandbox')",
"import roslib; roslib.load_manifest('hai_sandbox')",
"from cv_bridge.cv_bridge import CvBridge, CvBridgeError",
"import rospy",
"import cv",
"import sys",
"import hrl_lib.tf_utils as tfu",
"import tf.transformations as tr",
"import tf",
"impor... |
#! /usr/bin/python
import roslib; roslib.load_manifest('hai_sandbox')
import hrl_camera.ros_camera as rc
import hrl_lib.rutils as ru
import hrl_lib.util as ut
import rospy
import math
import cv
#TF
import tf
import hrl_lib.tf_utils as tfu
import tf.transformations as tr
if __name__ == '__main__':
ls = ru.LaserSca... | [
[
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.0833,
630,
3,
1,
0,
0,
0,
0,
1
],
[
1,
0,
0.05,
0.0167,
0,
0.66... | [
"import roslib; roslib.load_manifest('hai_sandbox')",
"import roslib; roslib.load_manifest('hai_sandbox')",
"import hrl_camera.ros_camera as rc",
"import hrl_lib.rutils as ru",
"import hrl_lib.util as ut",
"import rospy",
"import math",
"import cv",
"import tf",
"import hrl_lib.tf_utils as tfu",
... |
import csv
import roslib; roslib.load_manifest('hai_sandbox')
from cv_bridge.cv_bridge import CvBridge, CvBridgeError
import rospy
import cv
import sys
import hrl_lib.rutils as ru
import hrl_lib.tf_utils as tfu
import tf.transformations as tr
import tf
import hrl_camera.ros_camera as cam
from sensor_msgs.msg import Ca... | [
[
1,
0,
0.0294,
0.0294,
0,
0.66,
0,
312,
0,
1,
0,
0,
312,
0,
0
],
[
1,
0,
0.0588,
0.0294,
0,
0.66,
0.05,
796,
0,
1,
0,
0,
796,
0,
0
],
[
8,
0,
0.0588,
0.0294,
0,
0.... | [
"import csv",
"import roslib; roslib.load_manifest('hai_sandbox')",
"import roslib; roslib.load_manifest('hai_sandbox')",
"from cv_bridge.cv_bridge import CvBridge, CvBridgeError",
"import rospy",
"import cv",
"import sys",
"import hrl_lib.rutils as ru",
"import hrl_lib.tf_utils as tfu",
"import t... |
import roslib; roslib.load_manifest('hai_sandbox')
import rospy
import tf.transformations as tr
import hrl_lib.tf_utils as tfu
import hrl_lib.util as ut
import tf
import geometry_msgs.msg as gm
import trigger_msgs.msg as trm
import sys
import math
import numpy as np
class MoveBase:
def __init__(self):
ros... | [
[
1,
0,
0.0112,
0.0112,
0,
0.66,
0,
796,
0,
1,
0,
0,
796,
0,
0
],
[
8,
0,
0.0112,
0.0112,
0,
0.66,
0.0769,
630,
3,
1,
0,
0,
0,
0,
1
],
[
1,
0,
0.0225,
0.0112,
0,
0.... | [
"import roslib; roslib.load_manifest('hai_sandbox')",
"import roslib; roslib.load_manifest('hai_sandbox')",
"import rospy",
"import tf.transformations as tr",
"import hrl_lib.tf_utils as tfu",
"import hrl_lib.util as ut",
"import tf",
"import geometry_msgs.msg as gm",
"import trigger_msgs.msg as trm... |
import csv
import roslib; roslib.load_manifest('hai_sandbox')
from cv_bridge.cv_bridge import CvBridge, CvBridgeError
import rospy
import cv
import sys
import hrl_lib.rutils as ru
import hrl_lib.tf_utils as tfu
import tf.transformations as tr
import tf
import hrl_camera.ros_camera as cam
from sensor_msgs.msg import Ca... | [
[
1,
0,
0.0088,
0.0088,
0,
0.66,
0,
312,
0,
1,
0,
0,
312,
0,
0
],
[
1,
0,
0.0175,
0.0088,
0,
0.66,
0.0435,
796,
0,
1,
0,
0,
796,
0,
0
],
[
8,
0,
0.0175,
0.0088,
0,
... | [
"import csv",
"import roslib; roslib.load_manifest('hai_sandbox')",
"import roslib; roslib.load_manifest('hai_sandbox')",
"from cv_bridge.cv_bridge import CvBridge, CvBridgeError",
"import rospy",
"import cv",
"import sys",
"import hrl_lib.rutils as ru",
"import hrl_lib.tf_utils as tfu",
"import t... |
import roslib; roslib.load_manifest('hai_sandbox')
import rospy
import glob
import hrl_lib.rutils as ru
import hrl_pr2_lib.devices as hpr2
import hai_sandbox.bag_processor as bp
import hrl_lib.util as ut
import visualization_msgs.msg as vm
import numpy as np
import hrl_lib.viz as viz
import hai_sandbox.dimreduce as dim... | [
[
1,
0,
0.0012,
0.0012,
0,
0.66,
0,
796,
0,
1,
0,
0,
796,
0,
0
],
[
8,
0,
0.0012,
0.0012,
0,
0.66,
0.0303,
630,
3,
1,
0,
0,
0,
0,
1
],
[
1,
0,
0.0023,
0.0012,
0,
0.... | [
"import roslib; roslib.load_manifest('hai_sandbox')",
"import roslib; roslib.load_manifest('hai_sandbox')",
"import rospy",
"import glob",
"import hrl_lib.rutils as ru",
"import hrl_pr2_lib.devices as hpr2",
"import hai_sandbox.bag_processor as bp",
"import hrl_lib.util as ut",
"import visualization... |
import roslib; roslib.load_manifest('hai_sandbox')
import rospy
import rosrecord
import sys
f = open(sys.argv[1])
i = 0
for topic, message, time in rosrecord.logplayer(f):
i = i + 1
print topic, time
if i > 10:
break
f.close()
##
# In this bag, give me messages from these topics
# @param file_name... | [
[
1,
0,
0.0357,
0.0357,
0,
0.66,
0,
796,
0,
1,
0,
0,
796,
0,
0
],
[
8,
0,
0.0357,
0.0357,
0,
0.66,
0.1111,
630,
3,
1,
0,
0,
0,
0,
1
],
[
1,
0,
0.0714,
0.0357,
0,
0.... | [
"import roslib; roslib.load_manifest('hai_sandbox')",
"import roslib; roslib.load_manifest('hai_sandbox')",
"import rospy",
"import rosrecord",
"import sys",
"f = open(sys.argv[1])",
"i = 0",
"for topic, message, time in rosrecord.logplayer(f):\n i = i + 1\n print(topic, time)\n if i > 10:\n ... |
import roslib; roslib.load_manifest('hai_sandbox')
import rospy
import feature_extractor_fpfh.msg as fmsg
import hrl_lib.rutils as ru
from cv_bridge import CvBridge, CvBridgeError
import numpy as np
class KinectListener:
def __init__(self, topic=None):
if topic == None:
topic = 'fpfh_hist'
... | [
[
1,
0,
0.0286,
0.0286,
0,
0.66,
0,
796,
0,
1,
0,
0,
796,
0,
0
],
[
8,
0,
0.0286,
0.0286,
0,
0.66,
0.1429,
630,
3,
1,
0,
0,
0,
0,
1
],
[
1,
0,
0.0857,
0.0286,
0,
0.... | [
"import roslib; roslib.load_manifest('hai_sandbox')",
"import roslib; roslib.load_manifest('hai_sandbox')",
"import rospy",
"import feature_extractor_fpfh.msg as fmsg",
"import hrl_lib.rutils as ru",
"from cv_bridge import CvBridge, CvBridgeError",
"import numpy as np",
"class KinectListener:\n def... |
import roslib; roslib.load_manifest('hai_sandbox')
from cv_bridge.cv_bridge import CvBridge, CvBridgeError
import cv
import sys
import hrl_lib.rutils as ru
import hai_sandbox.features as fea
forearm_cam_l = '/l_forearm_cam/image_rect_color'
ws_l = '/wide_stereo/left/image_rect_color'
ws_r = '/wide_stereo/right/image_r... | [
[
1,
0,
0.0333,
0.0333,
0,
0.66,
0,
796,
0,
1,
0,
0,
796,
0,
0
],
[
8,
0,
0.0333,
0.0333,
0,
0.66,
0.0667,
630,
3,
1,
0,
0,
0,
0,
1
],
[
1,
0,
0.0667,
0.0333,
0,
0.... | [
"import roslib; roslib.load_manifest('hai_sandbox')",
"import roslib; roslib.load_manifest('hai_sandbox')",
"from cv_bridge.cv_bridge import CvBridge, CvBridgeError",
"import cv",
"import sys",
"import hrl_lib.rutils as ru",
"import hai_sandbox.features as fea",
"forearm_cam_l = '/l_forearm_cam/image_... |
import roslib; roslib.load_manifest('hai_sandbox')
import cv
import sys
import hai_sandbox.features as fea
if __name__ == '__main__':
fname = sys.argv[1]
image = cv.LoadImage(fname)
image_gray = cv.CreateImage((640,480), cv.IPL_DEPTH_8U,1)
cv.CvtColor(image, image_gray, cv.CV_BGR2GRAY)
star_keypoi... | [
[
1,
0,
0.037,
0.037,
0,
0.66,
0,
796,
0,
1,
0,
0,
796,
0,
0
],
[
8,
0,
0.037,
0.037,
0,
0.66,
0.2,
630,
3,
1,
0,
0,
0,
0,
1
],
[
1,
0,
0.0741,
0.037,
0,
0.66,
... | [
"import roslib; roslib.load_manifest('hai_sandbox')",
"import roslib; roslib.load_manifest('hai_sandbox')",
"import cv",
"import sys",
"import hai_sandbox.features as fea",
"if __name__ == '__main__':\n fname = sys.argv[1]\n image = cv.LoadImage(fname)\n image_gray = cv.CreateImage((640,480), cv.... |
import roslib; roslib.load_manifest('hai_sandbox')
import rospy
import hrl_lib.util as ut
import csv
import scipy.spatial as sp
import hrl_camera.ros_camera as cam
import hai_sandbox.features as fea
import numpy as np
import cv
import hrl_lib.rutils as ru
from cv_bridge.cv_bridge import CvBridge, CvBridgeError
import s... | [
[
1,
0,
0.0139,
0.0139,
0,
0.66,
0,
796,
0,
1,
0,
0,
796,
0,
0
],
[
8,
0,
0.0139,
0.0139,
0,
0.66,
0.0667,
630,
3,
1,
0,
0,
0,
0,
1
],
[
1,
0,
0.0278,
0.0139,
0,
0.... | [
"import roslib; roslib.load_manifest('hai_sandbox')",
"import roslib; roslib.load_manifest('hai_sandbox')",
"import rospy",
"import hrl_lib.util as ut",
"import csv",
"import scipy.spatial as sp",
"import hrl_camera.ros_camera as cam",
"import hai_sandbox.features as fea",
"import numpy as np",
"i... |
import roslib; roslib.load_manifest('hai_sandbox')
import rospy
import hrl_lib.util as ut
import sys
if __name__ == '__main__':
p = ut.load_pickle(sys.argv[1])
| [
[
1,
0,
0.125,
0.125,
0,
0.66,
0,
796,
0,
1,
0,
0,
796,
0,
0
],
[
8,
0,
0.125,
0.125,
0,
0.66,
0.2,
630,
3,
1,
0,
0,
0,
0,
1
],
[
1,
0,
0.25,
0.125,
0,
0.66,
0.... | [
"import roslib; roslib.load_manifest('hai_sandbox')",
"import roslib; roslib.load_manifest('hai_sandbox')",
"import rospy",
"import hrl_lib.util as ut",
"import sys",
"if __name__ == '__main__':\n p = ut.load_pickle(sys.argv[1])",
" p = ut.load_pickle(sys.argv[1])"
] |
import roslib; roslib.load_manifest('hai_sandbox')
import cv
import numpy as np
import scipy.spatial as sp
import math
class SURFMatcher:
def __init__(self):
self.model_images = {}
self.model_fea = {}
def add_file(self, model_name, label):
model_img = cv.LoadImage(model_name)
... | [
[
1,
0,
0.007,
0.007,
0,
0.66,
0,
796,
0,
1,
0,
0,
796,
0,
0
],
[
8,
0,
0.007,
0.007,
0,
0.66,
0.0588,
630,
3,
1,
0,
0,
0,
0,
1
],
[
1,
0,
0.014,
0.007,
0,
0.66,
... | [
"import roslib; roslib.load_manifest('hai_sandbox')",
"import roslib; roslib.load_manifest('hai_sandbox')",
"import cv",
"import numpy as np",
"import scipy.spatial as sp",
"import math",
"class SURFMatcher:\n def __init__(self):\n self.model_images = {}\n self.model_fea = {}\n\n def... |
import roslib; roslib.load_manifest('hai_sandbox')
import cv
import sys
import os.path as pt
img_path = sys.argv[1]
print 'loading', img_path
img = cv.LoadImageM(img_path)
dst = cv.CloneMat(img)
dif = cv.CloneMat(img)
cv.Smooth(img, dst, cv.CV_GAUSSIAN, 91)
cv.Sub(img, dst, dif)
cv.SaveImage(img_path, dif)
#orig_path... | [
[
1,
0,
0.05,
0.05,
0,
0.66,
0,
796,
0,
1,
0,
0,
796,
0,
0
],
[
8,
0,
0.05,
0.05,
0,
0.66,
0.0833,
630,
3,
1,
0,
0,
0,
0,
1
],
[
1,
0,
0.1,
0.05,
0,
0.66,
0.166... | [
"import roslib; roslib.load_manifest('hai_sandbox')",
"import roslib; roslib.load_manifest('hai_sandbox')",
"import cv",
"import sys",
"import os.path as pt",
"img_path = sys.argv[1]",
"print('loading', img_path)",
"img = cv.LoadImageM(img_path)",
"dst = cv.CloneMat(img)",
"dif = cv.CloneMat(img)"... |
import roslib; roslib.load_manifest('hai_sandbox')
import hrl_lib.util as ut
import pylab as pb
import numpy as np
import pdb
def conf_to_percent(rec):
conf = rec['mat']
conf[0,:] = conf[0,:] / rec['neg']
conf[1,:] = conf[1,:] / rec['pos']
return conf[0,0], conf[1,1]
def plot_classifier_performance(fn... | [
[
1,
0,
0.0057,
0.0057,
0,
0.66,
0,
796,
0,
1,
0,
0,
796,
0,
0
],
[
8,
0,
0.0057,
0.0057,
0,
0.66,
0.1111,
630,
3,
1,
0,
0,
0,
0,
1
],
[
1,
0,
0.0115,
0.0057,
0,
0.... | [
"import roslib; roslib.load_manifest('hai_sandbox')",
"import roslib; roslib.load_manifest('hai_sandbox')",
"import hrl_lib.util as ut",
"import pylab as pb",
"import numpy as np",
"import pdb",
"def conf_to_percent(rec):\n conf = rec['mat']\n conf[0,:] = conf[0,:] / rec['neg']\n conf[1,:] = co... |
import roslib; roslib.load_manifest('hai_sandbox')
import rospy
import hrl_lib.util as hru
import pylab as pb
import numpy as np
import itertools as it
import hrl_lib.rutils as ru
import sys
from cv_bridge.cv_bridge import CvBridge, CvBridgeError
import scipy.spatial as sp
import cv
##
# @return mat, mat, array
def co... | [
[
1,
0,
0.0081,
0.0081,
0,
0.66,
0,
796,
0,
1,
0,
0,
796,
0,
0
],
[
8,
0,
0.0081,
0.0081,
0,
0.66,
0.0213,
630,
3,
1,
0,
0,
0,
0,
1
],
[
1,
0,
0.0163,
0.0081,
0,
0.... | [
"import roslib; roslib.load_manifest('hai_sandbox')",
"import roslib; roslib.load_manifest('hai_sandbox')",
"import rospy",
"import hrl_lib.util as hru",
"import pylab as pb",
"import numpy as np",
"import itertools as it",
"import hrl_lib.rutils as ru",
"import sys",
"from cv_bridge.cv_bridge imp... |
import roslib; roslib.load_manifest('hai_sandbox')
import rospy
import sensor_msgs.msg as sm
import hrl_lib.rutils as ru
import numpy as np
import pr2_msgs.msg as pm
import geometry_msgs.msg as gm
import tf
import hrl_lib.tf_utils as tfu
import tf.transformations as tr
import time
import hrl_lib.util as ut
import pdb
... | [
[
1,
0,
0.01,
0.01,
0,
0.66,
0,
796,
0,
1,
0,
0,
796,
0,
0
],
[
8,
0,
0.01,
0.01,
0,
0.66,
0.0667,
630,
3,
1,
0,
0,
0,
0,
1
],
[
1,
0,
0.02,
0.01,
0,
0.66,
0.13... | [
"import roslib; roslib.load_manifest('hai_sandbox')",
"import roslib; roslib.load_manifest('hai_sandbox')",
"import rospy",
"import sensor_msgs.msg as sm",
"import hrl_lib.rutils as ru",
"import numpy as np",
"import pr2_msgs.msg as pm",
"import geometry_msgs.msg as gm",
"import tf",
"import hrl_l... |
import roslib; roslib.load_manifest('hai_sandbox')
import rospy
import actionlib
import pr2_controllers_msgs.msg as pr2m
import trajectory_msgs.msg as tm
import sensor_msgs.msg as sm
import cv
class Arm:
def __init__(self, name):
self.joint_names = rospy.get_param('/%s/joints' % name)
self.client =... | [
[
1,
0,
0.0075,
0.0075,
0,
0.66,
0,
796,
0,
1,
0,
0,
796,
0,
0
],
[
8,
0,
0.0075,
0.0075,
0,
0.66,
0.1,
630,
3,
1,
0,
0,
0,
0,
1
],
[
1,
0,
0.015,
0.0075,
0,
0.66,
... | [
"import roslib; roslib.load_manifest('hai_sandbox')",
"import roslib; roslib.load_manifest('hai_sandbox')",
"import rospy",
"import actionlib",
"import pr2_controllers_msgs.msg as pr2m",
"import trajectory_msgs.msg as tm",
"import sensor_msgs.msg as sm",
"import cv",
"class Arm:\n def __init__(se... |
import roslib; roslib.load_manifest('hai_sandbox')
import rospy
import message_filters
from sensor_msgs.msg import Image
from sensor_msgs.msg import PointCloud2
import feature_extractor_fpfh.msg as fmsg
import pdb
def callback(image, fpfh_hist):
print "got messages!"
#print image.header.frame_id, fpfh_hist.header... | [
[
1,
0,
0.0278,
0.0278,
0,
0.66,
0,
796,
0,
1,
0,
0,
796,
0,
0
],
[
8,
0,
0.0278,
0.0278,
0,
0.66,
0.0556,
630,
3,
1,
0,
0,
0,
0,
1
],
[
1,
0,
0.0556,
0.0278,
0,
0.... | [
"import roslib; roslib.load_manifest('hai_sandbox')",
"import roslib; roslib.load_manifest('hai_sandbox')",
"import rospy",
"import message_filters",
"from sensor_msgs.msg import Image",
"from sensor_msgs.msg import PointCloud2",
"import feature_extractor_fpfh.msg as fmsg",
"import pdb",
"def callba... |
import numpy as np
import pdb
def max_wrt_constrain(a, b, constraint_f, toler):
return find_split(a, None, b, None, constraint_f, toler)
def min_wrt_constrain(a, b, constraint_f, toler):
return find_split(b, None, a, None, constraint_f, toler)
def find_split(a, qa, b, qb, constraint_f, toler):
#pdb.set... | [
[
1,
0,
0.0238,
0.0238,
0,
0.66,
0,
954,
0,
1,
0,
0,
954,
0,
0
],
[
1,
0,
0.0476,
0.0238,
0,
0.66,
0.1667,
91,
0,
1,
0,
0,
91,
0,
0
],
[
2,
0,
0.1071,
0.0476,
0,
0.... | [
"import numpy as np",
"import pdb",
"def max_wrt_constrain(a, b, constraint_f, toler):\n return find_split(a, None, b, None, constraint_f, toler)",
" return find_split(a, None, b, None, constraint_f, toler)",
"def min_wrt_constrain(a, b, constraint_f, toler):\n return find_split(b, None, a, None... |
import roslib; roslib.load_manifest('hai_sandbox')
import rospy
import pr2_msgs.msg as pm
import time
import hrl_lib.util as hru
class DataAccumulate:
def __init__(self, topic, type):
rospy.Subscriber(topic, type, self.callback)
self.data = []
self.headers = []
self.t = None
d... | [
[
1,
0,
0.0106,
0.0106,
0,
0.66,
0,
796,
0,
1,
0,
0,
796,
0,
0
],
[
8,
0,
0.0106,
0.0106,
0,
0.66,
0.1429,
630,
3,
1,
0,
0,
0,
0,
1
],
[
1,
0,
0.0213,
0.0106,
0,
0.... | [
"import roslib; roslib.load_manifest('hai_sandbox')",
"import roslib; roslib.load_manifest('hai_sandbox')",
"import rospy",
"import pr2_msgs.msg as pm",
"import time",
"import hrl_lib.util as hru",
"class DataAccumulate:\n def __init__(self, topic, type):\n rospy.Subscriber(topic, type, self.c... |
import roslib; roslib.load_manifest('hai_sandbox')
import rospy
import hrl_lib.util as ut
import hai_sandbox.pr2 as pr2
import numpy as np
import time
import pdb
import sys
def dict_to_ps(d):
ps = gm.PoseStamped()
ps.pose.position.x = d['pose']['position']['x']
ps.pose.position.y = d['pose']['position'][... | [
[
1,
0,
0.0066,
0.0066,
0,
0.66,
0,
796,
0,
1,
0,
0,
796,
0,
0
],
[
8,
0,
0.0066,
0.0066,
0,
0.66,
0.0833,
630,
3,
1,
0,
0,
0,
0,
1
],
[
1,
0,
0.0132,
0.0066,
0,
0.... | [
"import roslib; roslib.load_manifest('hai_sandbox')",
"import roslib; roslib.load_manifest('hai_sandbox')",
"import rospy",
"import hrl_lib.util as ut",
"import hai_sandbox.pr2 as pr2",
"import numpy as np",
"import time",
"import pdb",
"import sys",
"def dict_to_ps(d):\n ps = gm.PoseStamped()\... |
import roslib; roslib.load_manifest('hai_sandbox')
import cv
import hai_sandbox.features as fea
import hrl_camera.ros_camera as rc
import rospy
#prosilica = rc.Prosilica('prosilica', 'streaming')
#prosilica = rc.ROSCamera('/narrow_stereo/right/image_rect')
prosilica = rc.ROSCamera('/wide_stereo/right/image_rect_color'... | [
[
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.125,
630,
3,
1,
0,
0,
0,
0,
1
],
[
1,
0,
0.1176,
0.0588,
0,
0.6... | [
"import roslib; roslib.load_manifest('hai_sandbox')",
"import roslib; roslib.load_manifest('hai_sandbox')",
"import cv",
"import hai_sandbox.features as fea",
"import hrl_camera.ros_camera as rc",
"import rospy",
"prosilica = rc.ROSCamera('/wide_stereo/right/image_rect_color')",
"cv.NamedWindow('surf'... |
import roslib; roslib.load_manifest('hai_sandbox')
import rospy
import sensor_msgs.msg as sm
import hrl_lib.rutils as ru
import numpy as np
import pr2_msgs.msg as pm
import tf
import hrl_lib.tf_utils as tfu
import tf.transformations as tr
import time
import hrl_lib.util as ut
def pointcloud_to_np(pc):
... | [
[
1,
0,
0.0069,
0.0069,
0,
0.66,
0,
796,
0,
1,
0,
0,
796,
0,
0
],
[
8,
0,
0.0069,
0.0069,
0,
0.66,
0.0714,
630,
3,
1,
0,
0,
0,
0,
1
],
[
1,
0,
0.0139,
0.0069,
0,
0.... | [
"import roslib; roslib.load_manifest('hai_sandbox')",
"import roslib; roslib.load_manifest('hai_sandbox')",
"import rospy",
"import sensor_msgs.msg as sm",
"import hrl_lib.rutils as ru",
"import numpy as np",
"import pr2_msgs.msg as pm",
"import tf",
"import hrl_lib.tf_utils as tfu",
"import tf.tr... |
import roslib; roslib.load_manifest('hai_sandbox')
import rospy
import hrl_lib.util as ut
import sensor_msgs.msg as sm
import sys
class CamInfoCB:
def __init__(self, topic):
rospy.init_node('grab_cam_info')
rospy.Subscriber(topic, sm.CameraInfo, self.cb)
self.msg = None
def cb(self, ms... | [
[
1,
0,
0.0417,
0.0417,
0,
0.66,
0,
796,
0,
1,
0,
0,
796,
0,
0
],
[
8,
0,
0.0417,
0.0417,
0,
0.66,
0.0833,
630,
3,
1,
0,
0,
0,
0,
1
],
[
1,
0,
0.0833,
0.0417,
0,
0.... | [
"import roslib; roslib.load_manifest('hai_sandbox')",
"import roslib; roslib.load_manifest('hai_sandbox')",
"import rospy",
"import hrl_lib.util as ut",
"import sensor_msgs.msg as sm",
"import sys",
"class CamInfoCB:\n def __init__(self, topic):\n rospy.init_node('grab_cam_info')\n rosp... |
import roslib; roslib.load_manifest('hai_sandbox')
import rospy
import kinematics_msgs.srv as ks
import hrl_lib.tf_utils as tfu
import tf
import hai_sandbox.pr2_kinematics as pr2k
import sensor_msgs.msg as sm
import hrl_lib.rutils as ru
import numpy as np
import hrl_lib.util as ut
def script():
rospy.init_node('fo... | [
[
1,
0,
0.0085,
0.0085,
0,
0.66,
0,
796,
0,
1,
0,
0,
796,
0,
0
],
[
8,
0,
0.0085,
0.0085,
0,
0.66,
0.0714,
630,
3,
1,
0,
0,
0,
0,
1
],
[
1,
0,
0.0169,
0.0085,
0,
0.... | [
"import roslib; roslib.load_manifest('hai_sandbox')",
"import roslib; roslib.load_manifest('hai_sandbox')",
"import rospy",
"import kinematics_msgs.srv as ks",
"import hrl_lib.tf_utils as tfu",
"import tf",
"import hai_sandbox.pr2_kinematics as pr2k",
"import sensor_msgs.msg as sm",
"import hrl_lib.... |
import roslib; roslib.load_manifest('hai_sandbox')
import rospy
rospy.init_node('param_saver')
import hrl_lib.util as ut
joint_groups = {}
joint_groups['rarm'] = rospy.get_param('/r_arm_controller/joints')
joint_groups['larm'] = rospy.get_param('/l_arm_controller/joints')
joint_groups['head_traj'] = rospy.ge... | [
[
1,
0,
0.0909,
0.0909,
0,
0.66,
0,
796,
0,
1,
0,
0,
796,
0,
0
],
[
8,
0,
0.0909,
0.0909,
0,
0.66,
0.1,
630,
3,
1,
0,
0,
0,
0,
1
],
[
1,
0,
0.1818,
0.0909,
0,
0.66,... | [
"import roslib; roslib.load_manifest('hai_sandbox')",
"import roslib; roslib.load_manifest('hai_sandbox')",
"import rospy",
"rospy.init_node('param_saver')",
"import hrl_lib.util as ut",
"joint_groups = {}",
"joint_groups['rarm'] = rospy.get_param('/r_arm_controller/joints')",
"joint_groups['larm... |
import roslib; roslib.load_manifest('hai_sandbox')
import rospy
import actionlib
import hrl_lib.tf_utils as tfu
import hrl_lib.util as ut
import hrl_pr2_lib.devices as hd
import hrl_camera.ros_camera as rc
import hai_sandbox.recognize_3d as r3d
#import hai_sandbox.msg as hmsg
import geometry_msgs.msg as gmsg
import t... | [
[
1,
0,
0.0035,
0.0035,
0,
0.66,
0,
796,
0,
1,
0,
0,
796,
0,
0
],
[
8,
0,
0.0035,
0.0035,
0,
0.66,
0.05,
630,
3,
1,
0,
0,
0,
0,
1
],
[
1,
0,
0.0071,
0.0035,
0,
0.66... | [
"import roslib; roslib.load_manifest('hai_sandbox')",
"import roslib; roslib.load_manifest('hai_sandbox')",
"import rospy",
"import actionlib",
"import hrl_lib.tf_utils as tfu",
"import hrl_lib.util as ut",
"import hrl_pr2_lib.devices as hd",
"import hrl_camera.ros_camera as rc",
"import hai_sandbox... |
import numpy as np
camera_t = np.matrix([1299102299.98, 1299102300.04, 1299102300.09, 1299102300.11, 1299102300.16, 1299102300.21, 1299102300.26, 1299102300.28, 1299102300.33, 1299102300.38, 1299102300.43, 1299102300.45, 1299102300.5, 1299102300.55, 1299102300.6, 1299102300.63, 1299102300.73, 1299102300.79, 1299102300.... | [
[
1,
0,
0.3333,
0.3333,
0,
0.66,
0,
954,
0,
1,
0,
0,
954,
0,
0
],
[
14,
0,
0.6667,
0.3333,
0,
0.66,
0.5,
509,
3,
1,
0,
0,
162,
10,
1
],
[
14,
0,
1,
0.3333,
0,
0.66,... | [
"import numpy as np",
"camera_t = np.matrix([1299102299.98, 1299102300.04, 1299102300.09, 1299102300.11, 1299102300.16, 1299102300.21, 1299102300.26, 1299102300.28, 1299102300.33, 1299102300.38, 1299102300.43, 1299102300.45, 1299102300.5, 1299102300.55, 1299102300.6, 1299102300.63, 1299102300.73, 1299102300.79, 1... |
import roslib; roslib.load_manifest('hai_sandbox')
import rospy
import hrl_camera.ros_camera as rc
import cv
import hai_sandbox.features as fea
import sys
import threading as thr
import scipy.spatial as sp
import numpy as np
import pdb
class ShowImage(thr.Thread):
def __init__(self, name):
thr.Thread.__ini... | [
[
1,
0,
0.005,
0.005,
0,
0.66,
0,
796,
0,
1,
0,
0,
796,
0,
0
],
[
8,
0,
0.005,
0.005,
0,
0.66,
0.0667,
630,
3,
1,
0,
0,
0,
0,
1
],
[
1,
0,
0.0101,
0.005,
0,
0.66,
... | [
"import roslib; roslib.load_manifest('hai_sandbox')",
"import roslib; roslib.load_manifest('hai_sandbox')",
"import rospy",
"import hrl_camera.ros_camera as rc",
"import cv",
"import hai_sandbox.features as fea",
"import sys",
"import threading as thr",
"import scipy.spatial as sp",
"import numpy ... |
import csv
import roslib; roslib.load_manifest('hai_sandbox')
from cv_bridge.cv_bridge import CvBridge, CvBridgeError
import rospy
import cv
import sys
import hrl_lib.rutils as ru
import hrl_lib.tf_utils as tfu
import tf.transformations as tr
import tf
import hrl_camera.ros_camera as cam
from sensor_msgs.msg import Ca... | [
[
1,
0,
0.027,
0.027,
0,
0.66,
0,
312,
0,
1,
0,
0,
312,
0,
0
],
[
1,
0,
0.0541,
0.027,
0,
0.66,
0.0385,
796,
0,
1,
0,
0,
796,
0,
0
],
[
8,
0,
0.0541,
0.027,
0,
0.66... | [
"import csv",
"import roslib; roslib.load_manifest('hai_sandbox')",
"import roslib; roslib.load_manifest('hai_sandbox')",
"from cv_bridge.cv_bridge import CvBridge, CvBridgeError",
"import rospy",
"import cv",
"import sys",
"import hrl_lib.rutils as ru",
"import hrl_lib.tf_utils as tfu",
"import t... |
import roslib; roslib.load_manifest('hai_sandbox')
import rospy
import cv
import numpy as np
import feature_extractor_fpfh.srv as fsrv
import hrl_lib.image3d as i3d
import hrl_lib.rutils as ru
import hrl_lib.prob as pr
import hrl_lib.tf_utils as tfu
import pdb
##
# Generalized from Probabilistic robotics for N != wei... | [
[
1,
0,
0.0055,
0.0055,
0,
0.66,
0,
796,
0,
1,
0,
0,
796,
0,
0
],
[
8,
0,
0.0055,
0.0055,
0,
0.66,
0.0667,
630,
3,
1,
0,
0,
0,
0,
1
],
[
1,
0,
0.0109,
0.0055,
0,
0.... | [
"import roslib; roslib.load_manifest('hai_sandbox')",
"import roslib; roslib.load_manifest('hai_sandbox')",
"import rospy",
"import cv",
"import numpy as np",
"import feature_extractor_fpfh.srv as fsrv",
"import hrl_lib.image3d as i3d",
"import hrl_lib.rutils as ru",
"import hrl_lib.prob as pr",
"... |
import csv
import roslib; roslib.load_manifest('hai_sandbox')
from cv_bridge.cv_bridge import CvBridge, CvBridgeError
import rospy
import cv
import sys
import hrl_lib.rutils as ru
import hrl_lib.tf_utils as tfu
import tf.transformations as tr
import tf
import hrl_camera.ros_camera as cam
from sensor_msgs.msg import Ca... | [
[
1,
0,
0.0133,
0.0133,
0,
0.66,
0,
312,
0,
1,
0,
0,
312,
0,
0
],
[
1,
0,
0.0267,
0.0133,
0,
0.66,
0.0526,
796,
0,
1,
0,
0,
796,
0,
0
],
[
8,
0,
0.0267,
0.0133,
0,
... | [
"import csv",
"import roslib; roslib.load_manifest('hai_sandbox')",
"import roslib; roslib.load_manifest('hai_sandbox')",
"from cv_bridge.cv_bridge import CvBridge, CvBridgeError",
"import rospy",
"import cv",
"import sys",
"import hrl_lib.rutils as ru",
"import hrl_lib.tf_utils as tfu",
"import t... |
import roslib; roslib.load_manifest('hai_sandbox')
import rospy
import sys
import hrl_lib.util as ut
import hrl_lib.rutils as ru
import tf
import hrl_lib.transforms as htf
import hrl_lib.tf_utils as tfu
import tf.transformations as tr
import pr2_msgs.msg as pm
import scipy.spatial as sp
from multiprocessing import Pr... | [
[
1,
0,
0.0013,
0.0013,
0,
0.66,
0,
796,
0,
1,
0,
0,
796,
0,
0
],
[
8,
0,
0.0013,
0.0013,
0,
0.66,
0.027,
630,
3,
1,
0,
0,
0,
0,
1
],
[
1,
0,
0.0025,
0.0013,
0,
0.6... | [
"import roslib; roslib.load_manifest('hai_sandbox')",
"import roslib; roslib.load_manifest('hai_sandbox')",
"import rospy",
"import sys",
"import hrl_lib.util as ut",
"import hrl_lib.rutils as ru",
"import tf",
"import hrl_lib.transforms as htf",
"import hrl_lib.tf_utils as tfu",
"import tf.transf... |
import roslib; roslib.load_manifest('hai_sandbox')
import rospy
import hai_sandbox.recognize_3d as r3d
import hrl_lib.util as ut
import cv
import sys
fname = sys.argv[1]
pkl = ut.load_pickle(fname)
image_name = pkl['image']
img = cv.LoadImageM(image_name)
#Draw the center
r3d.draw_points(img, pkl['center'], [255, 0,... | [
[
1,
0,
0.0233,
0.0233,
0,
0.66,
0,
796,
0,
1,
0,
0,
796,
0,
0
],
[
8,
0,
0.0233,
0.0233,
0,
0.66,
0.0526,
630,
3,
1,
0,
0,
0,
0,
1
],
[
1,
0,
0.0465,
0.0233,
0,
0.... | [
"import roslib; roslib.load_manifest('hai_sandbox')",
"import roslib; roslib.load_manifest('hai_sandbox')",
"import rospy",
"import hai_sandbox.recognize_3d as r3d",
"import hrl_lib.util as ut",
"import cv",
"import sys",
"fname = sys.argv[1]",
"pkl = ut.load_pickle(fname)",
"image_name = pkl['ima... |
import roslib
roslib.load_manifest('trigger_msgs')
import sys
import rospy
import trigger_msgs.msg
rospy.init_node("trigger", anonymous=True)
head_up = rospy.Publisher("head_up", trigger_msgs.msg.Trigger, latch = True)
head_down = rospy.Publisher("head_down", trigger_msgs.msg.Trigger, latch = True)
arm_on = rospy.Pub... | [
[
1,
0,
0.0263,
0.0263,
0,
0.66,
0,
796,
0,
1,
0,
0,
796,
0,
0
],
[
8,
0,
0.0526,
0.0263,
0,
0.66,
0.0833,
630,
3,
1,
0,
0,
0,
0,
1
],
[
1,
0,
0.0789,
0.0263,
0,
0.... | [
"import roslib",
"roslib.load_manifest('trigger_msgs')",
"import sys",
"import rospy",
"import trigger_msgs.msg",
"rospy.init_node(\"trigger\", anonymous=True)",
"head_up = rospy.Publisher(\"head_up\", trigger_msgs.msg.Trigger, latch = True)",
"head_down = rospy.Publisher(\"head_down\", trigger_msgs.m... |
import roslib
roslib.load_manifest('trigger_msgs')
import sys
import rospy
import cv
import trigger_msgs.msg
rospy.init_node("trigger", anonymous=True)
arm_trigger = rospy.Publisher("arm_trigger", trigger_msgs.msg.Trigger, latch = True)
head_trigger = rospy.Publisher("head_trigger", trigger_msgs.msg.Trigger, latch = ... | [
[
1,
0,
0.0286,
0.0286,
0,
0.66,
0,
796,
0,
1,
0,
0,
796,
0,
0
],
[
8,
0,
0.0571,
0.0286,
0,
0.66,
0.0769,
630,
3,
1,
0,
0,
0,
0,
1
],
[
1,
0,
0.0857,
0.0286,
0,
0.... | [
"import roslib",
"roslib.load_manifest('trigger_msgs')",
"import sys",
"import rospy",
"import cv",
"import trigger_msgs.msg",
"rospy.init_node(\"trigger\", anonymous=True)",
"arm_trigger = rospy.Publisher(\"arm_trigger\", trigger_msgs.msg.Trigger, latch = True)",
"head_trigger = rospy.Publisher(\"h... |
import roslib
roslib.load_manifest('trigger_msgs')
import sys
import rospy
import trigger_msgs.msg
rospy.init_node("trigger", anonymous=True)
left_initial_pose00 = rospy.Publisher("left_initial_pose00", trigger_msgs.msg.Trigger, latch = True)
right_initial_pose00 = rospy.Publisher("right_initial_pose00", trigger_msg... | [
[
1,
0,
0.0455,
0.0455,
0,
0.66,
0,
796,
0,
1,
0,
0,
796,
0,
0
],
[
8,
0,
0.0909,
0.0455,
0,
0.66,
0.0667,
630,
3,
1,
0,
0,
0,
0,
1
],
[
1,
0,
0.1364,
0.0455,
0,
0.... | [
"import roslib",
"roslib.load_manifest('trigger_msgs')",
"import sys",
"import rospy",
"import trigger_msgs.msg",
"rospy.init_node(\"trigger\", anonymous=True)",
"left_initial_pose00 = rospy.Publisher(\"left_initial_pose00\", trigger_msgs.msg.Trigger, latch = True)",
"right_initial_pose00 = rospy.Publ... |
import roslib
roslib.load_manifest('trigger_msgs')
import sys
import rospy
import trigger_msgs.msg
import dynamic_reconfigure.client
import threading
import time
import geometry_msgs.msg as gm
rospy.init_node("wake_up", anonymous=True)
projector_on = {'camera_reset': False,
'forearm_l_rate': 30.0,
... | [
[
1,
0,
0.0074,
0.0074,
0,
0.66,
0,
796,
0,
1,
0,
0,
796,
0,
0
],
[
8,
0,
0.0147,
0.0074,
0,
0.66,
0.0294,
630,
3,
1,
0,
0,
0,
0,
1
],
[
1,
0,
0.0221,
0.0074,
0,
0.... | [
"import roslib",
"roslib.load_manifest('trigger_msgs')",
"import sys",
"import rospy",
"import trigger_msgs.msg",
"import dynamic_reconfigure.client",
"import threading",
"import time",
"import geometry_msgs.msg as gm",
"rospy.init_node(\"wake_up\", anonymous=True)",
"projector_on = {'camera_res... |
import roslib
roslib.load_manifest('trigger_msgs')
import sys
import rospy
import dynamic_reconfigure.client
import time
import trigger_msgs.msg
import geometry_msgs.msg as gm
import time
import sys
dist = float(sys.argv[1])
print dist
rospy.init_node("move_back", anonymous=True)
move_base = rospy.Publisher('simple_mo... | [
[
1,
0,
0.0039,
0.0039,
0,
0.66,
0,
796,
0,
1,
0,
0,
796,
0,
0
],
[
8,
0,
0.0078,
0.0039,
0,
0.66,
0.04,
630,
3,
1,
0,
0,
0,
0,
1
],
[
1,
0,
0.0116,
0.0039,
0,
0.66... | [
"import roslib",
"roslib.load_manifest('trigger_msgs')",
"import sys",
"import rospy",
"import dynamic_reconfigure.client",
"import time",
"import trigger_msgs.msg",
"import geometry_msgs.msg as gm",
"import time",
"import sys",
"dist = float(sys.argv[1])",
"print(dist)",
"rospy.init_node(\"... |
import roslib
roslib.load_manifest('trigger_msgs')
import sys
import rospy
import dynamic_reconfigure.client
import time
import trigger_msgs.msg
import geometry_msgs.msg as gm
#import threading as tr
#class ProjectorWakeUp(threading.Thread):
#
# def __init__(self):
# threading.Thread.__init__(self)
# ... | [
[
1,
0,
0.0042,
0.0042,
0,
0.66,
0,
796,
0,
1,
0,
0,
796,
0,
0
],
[
8,
0,
0.0083,
0.0042,
0,
0.66,
0.0294,
630,
3,
1,
0,
0,
0,
0,
1
],
[
1,
0,
0.0125,
0.0042,
0,
0.... | [
"import roslib",
"roslib.load_manifest('trigger_msgs')",
"import sys",
"import rospy",
"import dynamic_reconfigure.client",
"import time",
"import trigger_msgs.msg",
"import geometry_msgs.msg as gm",
"rospy.init_node(\"trigger\", anonymous=True)",
"head_up = rospy.Publisher(\"head_up\", trigger_ms... |
import roslib
roslib.load_manifest('trigger_msgs')
import sys
import rospy
import cv
import trigger_msgs.msg
rospy.init_node("trigger", anonymous=True)
arm_trigger = rospy.Publisher("arm_trigger", trigger_msgs.msg.Trigger, latch = True)
head_trigger = rospy.Publisher("head_trigger", trigger_msgs.msg.Trigger, latch = ... | [
[
1,
0,
0.0286,
0.0286,
0,
0.66,
0,
796,
0,
1,
0,
0,
796,
0,
0
],
[
8,
0,
0.0571,
0.0286,
0,
0.66,
0.0769,
630,
3,
1,
0,
0,
0,
0,
1
],
[
1,
0,
0.0857,
0.0286,
0,
0.... | [
"import roslib",
"roslib.load_manifest('trigger_msgs')",
"import sys",
"import rospy",
"import cv",
"import trigger_msgs.msg",
"rospy.init_node(\"trigger\", anonymous=True)",
"arm_trigger = rospy.Publisher(\"arm_trigger\", trigger_msgs.msg.Trigger, latch = True)",
"head_trigger = rospy.Publisher(\"h... |
#!/usr/bin/env python
#
# 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 copyrig... | [
[
1,
0,
0.3131,
0.0101,
0,
0.66,
0,
796,
0,
1,
0,
0,
796,
0,
0
],
[
8,
0,
0.3131,
0.0101,
0,
0.66,
0.0909,
630,
3,
1,
0,
0,
0,
0,
1
],
[
1,
0,
0.3333,
0.0101,
0,
0.... | [
"import roslib; roslib.load_manifest('laser_camera_segmentation')",
"import roslib; roslib.load_manifest('laser_camera_segmentation')",
"import rospy",
"from laser_camera_segmentation.srv._Segmentation import *",
"import sensor_msgs",
"from laser_camera_segmentation.ROS_interface_helper_functions 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, thi... | [
[
3,
0,
0.7164,
0.5821,
0,
0.66,
0,
589,
0,
9,
0,
0,
186,
0,
3
],
[
2,
1,
0.5149,
0.0896,
1,
0.68,
0,
555,
0,
1,
0,
0,
0,
0,
0
],
[
8,
2,
0.5075,
0.0448,
2,
0.85,
... | [
"class label_object(object):\n\n\n def __init__(self):\n '''\n Constructor\n '''\n self.points = []",
" def __init__(self):\n '''\n Constructor\n '''\n self.points = []\n self.label = 'object'",
" '''\n Constructor\n '''",... |
#
# 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, thi... | [
[
1,
0,
0.2069,
0.0069,
0,
0.66,
0,
948,
0,
2,
0,
0,
948,
0,
0
],
[
1,
0,
0.2138,
0.0069,
0,
0.66,
0.3333,
775,
0,
1,
0,
0,
775,
0,
0
],
[
1,
0,
0.2276,
0.0069,
0,
... | [
"from labeling import label_object, scan_dataset",
"import hrl_lib.util as ut",
"import shutil #file operations",
"class scans_database(object):\n '''\n classdocs\n '''\n\n\n def __init__(self):\n '''",
" '''\n classdocs\n '''",
" def __init__(self):\n '''\n Co... |
#!/usr/bin/python
import roslib; roslib.load_manifest('laser_camera_segmentation')
print 'TEST script!!!'
# Import Psyco if available
try:
import psyco
psyco.full()
print "Psyco loaded"
except ImportError:
pass
import laser_camera_segmentation.processor as processor
import laser_camera_segmentation.c... | [
[
1,
0,
0.0274,
0.0137,
0,
0.66,
0,
796,
0,
1,
0,
0,
796,
0,
0
],
[
8,
0,
0.0274,
0.0137,
0,
0.66,
0.05,
630,
3,
1,
0,
0,
0,
0,
1
],
[
8,
0,
0.0548,
0.0137,
0,
0.66... | [
"import roslib; roslib.load_manifest('laser_camera_segmentation')",
"import roslib; roslib.load_manifest('laser_camera_segmentation')",
"print('TEST script!!!')",
"try:\n import psyco\n psyco.full()\n print(\"Psyco loaded\")\nexcept ImportError:\n pass",
" import psyco",
" psyco.full()",... |
#
# 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, thi... | [
[
1,
0,
0.3973,
0.0137,
0,
0.66,
0,
948,
0,
1,
0,
0,
948,
0,
0
],
[
3,
0,
0.7055,
0.5753,
0,
0.66,
1,
727,
0,
3,
0,
0,
186,
0,
3
],
[
8,
1,
0.4521,
0.0411,
1,
0.79,... | [
"from labeling import label_object",
"class scan_dataset(object):\n '''\n classdocs\n '''\n\n\n def __init__(self):\n '''",
" '''\n classdocs\n '''",
" def __init__(self):\n '''\n Constructor\n '''\n self.dict = {}\n self.dict['title'] = ''\n ... |
#!/usr/bin/python
#
# 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
#... | [
[
1,
0,
0.0302,
0.001,
0,
0.66,
0,
796,
0,
1,
0,
0,
796,
0,
0
],
[
8,
0,
0.0302,
0.001,
0,
0.66,
0.0588,
630,
3,
1,
0,
0,
0,
0,
1
],
[
1,
0,
0.0322,
0.001,
0,
0.66,... | [
"import roslib; roslib.load_manifest('laser_camera_segmentation')",
"import roslib; roslib.load_manifest('laser_camera_segmentation')",
"from opencv.highgui import cvLoadImage",
"import sys",
"import opencv.cv as cv",
"import opencv.highgui as hg",
"from PyQt4 import QtGui, QtCore",
"import shutil #fi... |
#
# 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, thi... | [
[
1,
0,
0.4915,
0.0169,
0,
0.66,
0,
796,
0,
1,
0,
0,
796,
0,
0
],
[
8,
0,
0.4915,
0.0169,
0,
0.66,
0.0714,
630,
3,
1,
0,
0,
0,
0,
1
],
[
1,
0,
0.5085,
0.0169,
0,
0.... | [
"import roslib; roslib.load_manifest('laser_camera_segmentation')",
"import roslib; roslib.load_manifest('laser_camera_segmentation')",
"from labeling import label_object, scan_dataset, scans_database",
"import copy",
"path = '/home/martin/robot1_data/usr/martin/laser_camera_segmentation/labeling'",
"f1 =... |
#
# 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, thi... | [
[
1,
0,
0.617,
0.0213,
0,
0.66,
0,
796,
0,
1,
0,
0,
796,
0,
0
],
[
8,
0,
0.617,
0.0213,
0,
0.66,
0.125,
630,
3,
1,
0,
0,
0,
0,
1
],
[
1,
0,
0.6383,
0.0213,
0,
0.66,... | [
"import roslib; roslib.load_manifest('laser_camera_segmentation')",
"import roslib; roslib.load_manifest('laser_camera_segmentation')",
"from labeling import label_object, scan_dataset, scans_database",
"scans_database = scans_database.scans_database()",
"path = '/home/martin/robot1_data/usr/martin/laser_ca... |
#
# 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, thi... | [
[
1,
0,
0.5472,
0.0189,
0,
0.66,
0,
796,
0,
1,
0,
0,
796,
0,
0
],
[
8,
0,
0.5472,
0.0189,
0,
0.66,
0.0769,
630,
3,
1,
0,
0,
0,
0,
1
],
[
1,
0,
0.566,
0.0189,
0,
0.6... | [
"import roslib; roslib.load_manifest('laser_camera_segmentation')",
"import roslib; roslib.load_manifest('laser_camera_segmentation')",
"from labeling import label_object, scan_dataset, scans_database",
"scans_database = scans_database.scans_database()",
"scans_database.path = '/home/martin/robot1_data/usr/... |
## Copyright (c) 2004-2007, Andrew D. Straw. 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 list o... | [
[
1,
0,
0.1111,
0.0031,
0,
0.66,
0,
954,
0,
1,
0,
0,
954,
0,
0
],
[
1,
0,
0.1142,
0.0031,
0,
0.66,
0.0909,
954,
0,
1,
0,
0,
954,
0,
0
],
[
1,
0,
0.1173,
0.0031,
0,
... | [
"import numpy",
"import numpy as np",
"import scipy # use numpy if scipy unavailable",
"import scipy.linalg # use numpy if scipy unavailable",
"def ransac(data,model,n,k,t,d,debug=False,return_all=False):\n print('INFO: running RANSAC for k=',k,'iterations')\n \"\"\"fit model parameters to data using ... |
#!/usr/bin/python
#
# 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
#... | [
[
1,
0,
0.1325,
0.004,
0,
0.66,
0,
654,
0,
1,
0,
0,
654,
0,
0
],
[
1,
0,
0.1365,
0.004,
0,
0.66,
0.1,
775,
0,
1,
0,
0,
775,
0,
0
],
[
1,
0,
0.1406,
0.004,
0,
0.66,
... | [
"import time",
"import hrl_lib.util as ut",
"import opencv as cv",
"import opencv.highgui as hg",
"import pycessing as pyc",
"import transforms as tr",
"import numpy as np,math",
"import tilting_hokuyo.processing_3d as p3d",
"def scale(image, s):\n scaled = cv.cvCreateImage(cv.cvSize(int(image.wi... |
#
# 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, thi... | [
[
1,
0,
0.2752,
0.0092,
0,
0.66,
0,
71,
0,
1,
0,
0,
71,
0,
0
],
[
1,
0,
0.2936,
0.0092,
0,
0.66,
0.2,
775,
0,
1,
0,
0,
775,
0,
0
],
[
1,
0,
0.3028,
0.0092,
0,
0.66,... | [
"from classifier import classifier",
"import hrl_lib.util as ut",
"import numpy as np",
"from hrl_lib.util import getTime",
"import processor",
"class baseline_classifier(classifier):\n '''\n classdocs\n '''\n\n\n #def __init__(selfparams):\n # '''",
" '''\n classdocs\n '''",
... |
#
# 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, thi... | [
[
3,
0,
0.7593,
0.463,
0,
0.66,
0,
479,
0,
4,
0,
0,
186,
0,
0
],
[
8,
1,
0.5741,
0.0556,
1,
0.96,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
1,
0.6481,
0.0185,
1,
0.96,
... | [
"class features(object):\n '''\n classdocs\n '''\n\n\n processor = None",
" '''\n classdocs\n '''",
" processor = None",
" def __init__(self,processor):\n '''\n Constructor\n '''\n self.processor = processor",
" '''\n Constructor\n ... |
#! /usr/bin/env python
#
# 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 copyri... | [
[
1,
0,
0.4559,
0.0147,
0,
0.66,
0,
802,
0,
1,
0,
0,
802,
0,
0
],
[
1,
0,
0.4706,
0.0147,
0,
0.66,
0.0769,
732,
0,
1,
0,
0,
732,
0,
0
],
[
1,
0,
0.4853,
0.0147,
0,
... | [
"import scanner",
"import Processor",
"import configuration",
"import hrl_lib.util as ut",
"cfg = configuration.configuration('/home/martin/robot1_data/usr/martin/laser_camera_segmentation/labeling')",
"sc = scanner.scanner(cfg)",
"pc = Processor.Processor(cfg)",
"name = ut.formatted_time()",
"name=... |
#
# 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, thi... | [
[
1,
0,
0.2569,
0.0092,
0,
0.66,
0,
954,
0,
2,
0,
0,
954,
0,
0
],
[
1,
0,
0.2661,
0.0092,
0,
0.66,
0.0833,
82,
0,
1,
0,
0,
82,
0,
0
],
[
2,
0,
0.3349,
0.0734,
0,
0.... | [
"import numpy as np, math",
"import hrl_lib.transforms as tr",
"def residualXform( residuals ):\n '''\n residuals are np.array([ Rz2, Rx, Rz1, dx, dy, dz ])\n returns rotResid, dispResid\n '''\n rotResid = tr.Rz( residuals[0] ) * tr.Rx( residuals[1] ) * tr.Rz( residuals[2] )\n dispResid = np.m... |
#
# 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, thi... | [
[
8,
0,
0.125,
0.0088,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.136,
0.0044,
0,
0.66,
0.0476,
954,
0,
2,
0,
0,
954,
0,
0
],
[
1,
0,
0.1404,
0.0044,
0,
0.66,
... | [
"''' Coordinate frames for testing ROS-interface (copied from Cody).\n'''",
"import numpy as np, math",
"import copy",
"import hrl_lib.transforms as tr",
"_globalT = {\n 'torso' : None,\n 'thok0' : None,\n 'utm0' : None,\n 'utmcam0': None,\n 'mecanum': None\n}",
"def create_globalTDict():\n... |
#! /usr/bin/env python
#
# 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 copyri... | [
[
1,
0,
0.1684,
0.0053,
0,
0.66,
0,
802,
0,
1,
0,
0,
802,
0,
0
],
[
1,
0,
0.1789,
0.0053,
0,
0.66,
0.1667,
627,
0,
1,
0,
0,
627,
0,
0
],
[
14,
0,
0.9,
0.0053,
0,
0.... | [
"import scanner",
"import configuration",
"cfg = configuration.configuration('/home/martin/robot1_data/usr/martin/laser_camera_segmentation/calib')",
"cfg.webcam_id = 0",
"sc = scanner.scanner(cfg)",
"sc.capture_and_save('calib')",
"print('done')"
] |
#!/usr/bin/env python
#
# 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 copyrig... | [
[
1,
0,
0.4937,
0.0127,
0,
0.66,
0,
307,
0,
1,
0,
0,
307,
0,
0
],
[
1,
0,
0.5063,
0.0127,
0,
0.66,
0.1667,
226,
0,
1,
0,
0,
226,
0,
0
],
[
1,
0,
0.5443,
0.0127,
0,
... | [
"import hrl_tilting_hokuyo.processing_3d as p3d",
"from enthought.mayavi import mlab",
"import hrl_lib.util as ut",
"import numpy as np, math #import numpy.core as np??",
"import scipy",
"from scipy import stats",
"if __name__ == '__main__':\n\t\t\n##\tprint 'test'\n##\tscanr = scanr.scanr()\n##\tscanr.... |
#
# 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, thi... | [
[
1,
0,
0.189,
0.0061,
0,
0.66,
0,
954,
0,
2,
0,
0,
954,
0,
0
],
[
3,
0,
0.6037,
0.7988,
0,
0.66,
1,
627,
0,
1,
0,
0,
186,
0,
16
],
[
8,
1,
0.2195,
0.0183,
1,
0.64,... | [
"import numpy as np,math",
"class configuration(object):\n '''\n classdocs\n '''\n\n\n def __init__(self, path = '../data/', device = 'desktopScanner'):",
" '''\n classdocs\n '''",
" def __init__(self, path = '../data/', device = 'desktopScanner'):\n \n '''\n set d... |
#
# 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, thi... | [
[
1,
0,
0.094,
0.0031,
0,
0.66,
0,
71,
0,
1,
0,
0,
71,
0,
0
],
[
1,
0,
0.1003,
0.0031,
0,
0.66,
0.125,
437,
0,
1,
0,
0,
437,
0,
0
],
[
1,
0,
0.1034,
0.0031,
0,
0.66... | [
"from classifier import classifier",
"import opencv as cv",
"import hrl_lib.util as ut",
"import numpy as np",
"from hrl_lib.util import getTime",
"import os",
"import processor",
"import ransac",
"class boosted_tree_classifier(classifier) :\n '''\n classdocs\n '''\n\n cv_classifier = No... |
#
# 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, thi... | [
[
1,
0,
0.8571,
0.0286,
0,
0.66,
0,
954,
0,
1,
0,
0,
954,
0,
0
],
[
2,
0,
0.9429,
0.0857,
0,
0.66,
1,
629,
0,
3,
0,
0,
0,
0,
1
],
[
8,
1,
0.9714,
0.0286,
1,
0.39,
... | [
"import numpy as np",
"def height_distribution(points, center=None, radius = 1.0):\n assert(points.shape[0] == 3)\n np.mean(points, axis=1)",
" np.mean(points, axis=1)"
] |
#
# 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, thi... | [
[
1,
0,
0.2703,
0.009,
0,
0.66,
0,
322,
0,
1,
0,
0,
322,
0,
0
],
[
1,
0,
0.2793,
0.009,
0,
0.66,
0.0833,
61,
0,
1,
0,
0,
61,
0,
0
],
[
1,
0,
0.2973,
0.009,
0,
0.66,... | [
"from laser_camera_segmentation.srv._Segmentation import *",
"import sensor_msgs",
"import numpy as np",
"import opencv as cv",
"import hrl_lib.util as ut",
"import opencv.highgui as highgui",
"from labeling.label_object import label_object",
"def convert_pointcloud_to_ROS(pts3d, intensities = None, l... |
#
# 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, thi... | [
[
1,
0,
0.265,
0.0085,
0,
0.66,
0,
775,
0,
1,
0,
0,
775,
0,
0
],
[
1,
0,
0.2821,
0.0085,
0,
0.66,
0.5,
177,
0,
1,
0,
0,
177,
0,
0
],
[
3,
0,
0.641,
0.6923,
0,
0.66,... | [
"from hrl_lib.util import getTime",
"import processor",
"class classifier(object):\n '''\n classdocs\n '''\n\n processor = None\n features = 'all'",
" '''\n classdocs\n '''",
" processor = None",
" features = 'all'",
" def __init__(self, processor, features):\n ''... |
#
# 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, thi... | [
[
1,
0,
0.1975,
0.0064,
0,
0.66,
0,
775,
0,
1,
0,
0,
775,
0,
0
],
[
1,
0,
0.2038,
0.0064,
0,
0.66,
0.1667,
954,
0,
1,
0,
0,
954,
0,
0
],
[
1,
0,
0.2102,
0.0064,
0,
... | [
"import hrl_lib.util as ut",
"import numpy as np",
"import opencv as cv",
"import opencv.highgui as hg",
"def eigen_texture(cv_image, blocksize=8, filtersize=3):\n gray_image = cv.cvCreateImage(cv.cvSize(cv_image.width, cv_image.height), cv.IPL_DEPTH_8U, 1)\n eig_tex = cv.cvCreateImage(cv.cvSize(cv_im... |
#
# 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, thi... | [
[
1,
0,
0.2768,
0.0089,
0,
0.66,
0,
796,
0,
1,
0,
0,
796,
0,
0
],
[
8,
0,
0.2768,
0.0089,
0,
0.66,
0.5,
630,
3,
1,
0,
0,
0,
0,
1
],
[
4,
0,
0.6429,
0.7054,
0,
0.66,... | [
"import roslib; roslib.load_manifest('laser_camera_segmentation')",
"import roslib; roslib.load_manifest('laser_camera_segmentation')",
"if __name__ == '__main__':\n import scanr_transforms as trs\n import transforms as tr\n import numpy as np,math\n import webcam_config as cc\n import opencv 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, thi... | [
[
1,
0,
0.0691,
0.0023,
0,
0.66,
0,
479,
0,
1,
0,
0,
479,
0,
0
],
[
1,
0,
0.0737,
0.0023,
0,
0.66,
0.0833,
82,
0,
1,
0,
0,
82,
0,
0
],
[
1,
0,
0.076,
0.0023,
0,
0.6... | [
"from features import features",
"import laser_camera_segmentation.gaussian_curvature as gaussian_curvature",
"import scipy.stats as stats",
"import numpy as np",
"import opencv as cv",
"import scipy.spatial.kdtree as kdtree",
"import hrl_lib.util as ut",
"from hrl_lib.util import getTime",
"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, thi... | [
[
1,
0,
0.1639,
0.0055,
0,
0.66,
0,
796,
0,
1,
0,
0,
796,
0,
0
],
[
8,
0,
0.1639,
0.0055,
0,
0.66,
0.125,
630,
3,
1,
0,
0,
0,
0,
1
],
[
1,
0,
0.1694,
0.0055,
0,
0.6... | [
"import roslib; roslib.load_manifest('laser_camera_segmentation')",
"import roslib; roslib.load_manifest('laser_camera_segmentation')",
"import hrl_tilting_hokuyo.tilt_hokuyo_servo as ths",
"import hrl_hokuyo.hokuyo_scan as hs",
"import sys",
"from labeling import label_object, scan_dataset, scans_databas... |
#
# 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.4348,
0.0145,
0,
0.66,
0,
796,
0,
1,
0,
0,
796,
0,
0
],
[
8,
0,
0.4348,
0.0145,
0,
0.66,
0.1111,
630,
3,
1,
0,
0,
0,
0,
1
],
[
1,
0,
0.4638,
0.0145,
0,
0.... | [
"import roslib; roslib.load_manifest('UI_segment_object')",
"import roslib; roslib.load_manifest('UI_segment_object')",
"import rospy",
"from UI_segment_object.srv import GetPt",
"from UI_segment_object.srv import None_Bool",
"reset_ui = None",
"get_3d_point = None",
"def initialize_service():\n gl... |
#
# 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.4545,
0.0152,
0,
0.66,
0,
596,
0,
1,
0,
0,
596,
0,
0
],
[
1,
0,
0.4697,
0.0152,
0,
0.66,
0.0588,
954,
0,
1,
0,
0,
954,
0,
0
],
[
1,
0,
0.5,
0.0152,
0,
0.6... | [
"import matplotlib.pyplot as pp",
"import numpy as np",
"import roslib; roslib.load_manifest('epc_door_opening')",
"import roslib; roslib.load_manifest('epc_door_opening')",
"import hrl_lib.util as ut",
"import doors_forces_kinematics.arm_trajectories_ram as atr",
"d = ut.load_pickle('pkls/ikea_cabinet_... |
#!/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 copyri... | [
[
1,
0,
0.2541,
0.0082,
0,
0.66,
0,
796,
0,
1,
0,
0,
796,
0,
0
],
[
8,
0,
0.2541,
0.0082,
0,
0.66,
0.0909,
630,
3,
1,
0,
0,
0,
0,
1
],
[
1,
0,
0.2623,
0.0082,
0,
0.... | [
"import roslib; roslib.load_manifest('epc_door_opening')",
"import roslib; roslib.load_manifest('epc_door_opening')",
"import rospy",
"from epc_door_opening.msg import MechanismKinematicsRot",
"from geometry_msgs.msg import Point32",
"import doors_forces_kinematics.arm_trajectories as at",
"from threadi... |
#
# 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.0714,
0.0024,
0,
0.66,
0,
954,
0,
2,
0,
0,
954,
0,
0
],
[
1,
0,
0.0738,
0.0024,
0,
0.66,
0.0714,
739,
0,
1,
0,
0,
739,
0,
0
],
[
1,
0,
0.0762,
0.0024,
0,
... | [
"import numpy as np, math",
"import copy",
"from threading import RLock",
"import roslib; roslib.load_manifest('epc_door_opening')",
"import roslib; roslib.load_manifest('epc_door_opening')",
"import rospy",
"from epc_door_opening.msg import MechanismKinematicsRot",
"from epc_door_opening.msg import M... |
#!/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.3924,
0.0127,
0,
0.66,
0,
954,
0,
2,
0,
0,
954,
0,
0
],
[
1,
0,
0.4051,
0.0127,
0,
0.66,
0.1111,
739,
0,
1,
0,
0,
739,
0,
0
],
[
1,
0,
0.4177,
0.0127,
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... |
#
# 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.2109,
0.0068,
0,
0.66,
0,
526,
0,
2,
0,
0,
526,
0,
0
],
[
1,
0,
0.2177,
0.0068,
0,
0.66,
0.0312,
826,
0,
1,
0,
0,
826,
0,
0
],
[
1,
0,
0.2245,
0.0068,
0,
... | [
"import math, numpy as np",
"import m3.rt_proxy as m3p",
"import m3.component_factory as m3f",
"import m3.toolbox as m3t",
"import m3.arm",
"THETA_GC = 5",
"THETA = 3",
"def safeop_things(proxy):\n robot_name = 'm3humanoid_bimanual_mr1'\n chain_names = ['m3arm_ma1', 'm3arm_ma2']\n dynamatics_... |
#
# 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.1354,
0.0044,
0,
0.66,
0,
954,
0,
2,
0,
0,
954,
0,
0
],
[
1,
0,
0.1397,
0.0044,
0,
0.66,
0.05,
739,
0,
1,
0,
0,
739,
0,
0
],
[
1,
0,
0.1441,
0.0044,
0,
0.... | [
"import numpy as np, math",
"import copy",
"import hrl_lib.transforms as tr",
"_globalT = {\n 'torso' : None,\n 'thok0' : None,\n 'utm0' : None,\n 'utmcam0': None,\n 'mecanum': None\n}",
"def create_globalTDict():\n \"\"\" call the create functions for all the coord frames\n \"\"\"\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.0558,
0.0017,
0,
0.66,
0,
826,
0,
1,
0,
0,
826,
0,
0
],
[
1,
0,
0.0576,
0.0017,
0,
0.66,
0.0323,
234,
0,
1,
0,
0,
234,
0,
0
],
[
1,
0,
0.0593,
0.0017,
0,
... | [
"import m3.rt_proxy as m3p",
"import m3.arm",
"import m3.toolbox as m3t",
"import m3.pwr as m3w",
"import m3.loadx6",
"import m3.component_factory as m3f",
"import arm_client as ac",
"import math",
"import numpy as np",
"import sys, time, os",
"import copy",
"from threading import RLock",
"i... |
#
# 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.1694,
0.0055,
0,
0.66,
0,
526,
0,
2,
0,
0,
526,
0,
0
],
[
1,
0,
0.1803,
0.0055,
0,
0.66,
0.0769,
435,
0,
1,
0,
0,
435,
0,
0
],
[
1,
0,
0.1858,
0.0055,
0,
... | [
"import math, numpy as np",
"import arm_client as ac",
"import arms as ar",
"import roslib; roslib.load_manifest('epc_core')",
"import roslib; roslib.load_manifest('epc_core')",
"import rospy",
"import tf.broadcaster as tfb",
"import hrl_lib.transforms as tr",
"from hrl_msgs.msg import FloatArray",
... |
#
# 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.0934,
0.003,
0,
0.66,
0,
526,
0,
1,
0,
0,
526,
0,
0
],
[
1,
0,
0.0964,
0.003,
0,
0.66,
0.0833,
954,
0,
1,
0,
0,
954,
0,
0
],
[
1,
0,
0.0994,
0.003,
0,
0.6... | [
"import math",
"import numpy as np",
"import copy",
"import sys, time, os",
"import PyKDL as kdl",
"import create_IK_guess_dict as cgd",
"import roslib; roslib.load_manifest('epc_core')",
"import roslib; roslib.load_manifest('epc_core')",
"import hrl_lib.transforms as tr",
"import hrl_lib.util as ... |
#
# 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.2098,
0.007,
0,
0.66,
0,
375,
0,
1,
0,
0,
375,
0,
0
],
[
1,
0,
0.2168,
0.007,
0,
0.66,
0.0909,
526,
0,
2,
0,
0,
526,
0,
0
],
[
1,
0,
0.2238,
0.007,
0,
0.6... | [
"import arms as ar",
"import math, numpy as np",
"import sys, optparse",
"import roslib; roslib.load_manifest('epc_core')",
"import roslib; roslib.load_manifest('epc_core')",
"import hrl_lib.transforms as tr",
"import hrl_lib.util as ut",
"def find_good_config(pt,dict):\n ''' finds a good configura... |
#
# subscribe to thw joint angles and raw forces topics, and provide FK
# etc.
#
# 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:
# * R... | [
[
1,
0,
0.0572,
0.0017,
0,
0.66,
0,
526,
0,
1,
0,
0,
526,
0,
0
],
[
1,
0,
0.0589,
0.0017,
0,
0.66,
0.0588,
954,
0,
1,
0,
0,
954,
0,
0
],
[
1,
0,
0.0607,
0.0017,
0,
... | [
"import math",
"import numpy as np",
"import copy",
"import sys, time, os",
"from threading import RLock",
"import roslib; roslib.load_manifest('epc_core')",
"import roslib; roslib.load_manifest('epc_core')",
"import rospy",
"import hrl_lib.viz as hv",
"from hrl_msgs.msg import FloatArray",
"fro... |
import numpy as np, math
import roslib; roslib.load_manifest('epc_core')
import rospy
from std_msgs.msg import Bool
## 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, epc_name = 'epc'):
... | [
[
1,
0,
0.0263,
0.0132,
0,
0.66,
0,
954,
0,
2,
0,
0,
954,
0,
0
],
[
1,
0,
0.0395,
0.0132,
0,
0.66,
0.2,
796,
0,
1,
0,
0,
796,
0,
0
],
[
8,
0,
0.0395,
0.0132,
0,
0.6... | [
"import numpy as np, math",
"import roslib; roslib.load_manifest('epc_core')",
"import roslib; roslib.load_manifest('epc_core')",
"import rospy",
"from std_msgs.msg import Bool",
"class EPC():\n def __init__(self, epc_name = 'epc'):\n self.stop_epc = False\n self.pause_epc = False\n ... |
#
# Any robot that wants to use EPC should implement the functions
# sketched out in the HRLArm and HRLArmKinematics
#
import numpy as np, math
class HRLArm():
def __init__(self, kinematics):
# object of class derived from HRLArmKinematics
self.kinematics = kinematics
self.ep = None # eq... | [
[
1,
0,
0.1094,
0.0156,
0,
0.66,
0,
954,
0,
2,
0,
0,
954,
0,
0
],
[
3,
0,
0.3359,
0.375,
0,
0.66,
0.5,
794,
0,
7,
0,
0,
0,
0,
8
],
[
2,
1,
0.1953,
0.0625,
1,
0.37,
... | [
"import numpy as np, math",
"class HRLArm():\n def __init__(self, kinematics):\n # object of class derived from HRLArmKinematics\n self.kinematics = kinematics\n self.ep = None # equilibrium point\n\n #------- abstract functions ---------\n def get_joint_angles():",
" def __init... |
#
# subscribe to thw joint angles and raw forces topics, and provide FK
# etc.
#
# 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:
# * R... | [
[
1,
0,
0.0446,
0.0014,
0,
0.66,
0,
954,
0,
2,
0,
0,
954,
0,
0
],
[
1,
0,
0.0459,
0.0014,
0,
0.66,
0.0323,
83,
0,
2,
0,
0,
83,
0,
0
],
[
1,
0,
0.0473,
0.0014,
0,
0.... | [
"import numpy as np, math",
"from threading import RLock, Timer",
"import sys, copy",
"import roslib; roslib.load_manifest('epc_core')",
"import roslib; roslib.load_manifest('epc_core')",
"roslib.load_manifest('force_torque') # hack by Advait",
"import force_torque.FTClient as ftc",
"import tf",
"im... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.