{"action":"created","comment":{"url":"https://api.github.com/repos/personalrobotics/herbpy/pulls/comments/41777222","id":41777222,"diff_hunk":"@@ -0,0 +1,172 @@\n+import logging, numpy, openravepy, prpy\n+from prpy.action import ActionMethod\n+from prpy.planning.base import PlanningError\n+from prpy.util import ComputeEnabledAABB\n+\n+logger = logging.getLogger('herbpy')\n+\n+class NoTSRException(Exception):\n+    pass\n+\n+def _GrabBlock(robot, blocks, table, manip=None, preshape=[1.7, 1.7, 0.2, 2.45],\n+              **kw_args):\n+    \"\"\"\n+    @param robot The robot performing the grasp\n+    @param block The block to grab\n+    @param table The table, or object, the block is resting on\n+    @param manip The manipulator to use to grab the block\n+      (if None active manipulator is used)","path":"src/herbpy/action/blocks.py","position":18,"original_position":18,"commit_id":"008f91e07953c0609d45dd8958e8c8c0d633e9d0","original_commit_id":"bb86fc73c6b000c9ce2069a1967a969ec23e5a32","user":{"login":"jeking04","id":3662021,"avatar_url":"https://avatars.githubusercontent.com/u/3662021?v=3","gravatar_id":"","url":"https://api.github.com/users/jeking04","html_url":"https://github.com/jeking04","followers_url":"https://api.github.com/users/jeking04/followers","following_url":"https://api.github.com/users/jeking04/following{/other_user}","gists_url":"https://api.github.com/users/jeking04/gists{/gist_id}","starred_url":"https://api.github.com/users/jeking04/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeking04/subscriptions","organizations_url":"https://api.github.com/users/jeking04/orgs","repos_url":"https://api.github.com/users/jeking04/repos","events_url":"https://api.github.com/users/jeking04/events{/privacy}","received_events_url":"https://api.github.com/users/jeking04/received_events","type":"User","site_admin":false},"body":"Addressed.","created_at":"2015-10-12T16:58:01Z","updated_at":"2015-10-12T16:58:01Z","html_url":"https://github.com/personalrobotics/herbpy/pull/48#discussion_r41777222","pull_request_url":"https://api.github.com/repos/personalrobotics/herbpy/pulls/48","_links":{"self":{"href":"https://api.github.com/repos/personalrobotics/herbpy/pulls/comments/41777222"},"html":{"href":"https://github.com/personalrobotics/herbpy/pull/48#discussion_r41777222"},"pull_request":{"href":"https://api.github.com/repos/personalrobotics/herbpy/pulls/48"}}},"pull_request":{"url":"https://api.github.com/repos/personalrobotics/herbpy/pulls/48","id":47430723,"html_url":"https://github.com/personalrobotics/herbpy/pull/48","diff_url":"https://github.com/personalrobotics/herbpy/pull/48.diff","patch_url":"https://github.com/personalrobotics/herbpy/pull/48.patch","issue_url":"https://api.github.com/repos/personalrobotics/herbpy/issues/48","number":48,"state":"open","locked":false,"title":"Block sorting","user":{"login":"jeking04","id":3662021,"avatar_url":"https://avatars.githubusercontent.com/u/3662021?v=3","gravatar_id":"","url":"https://api.github.com/users/jeking04","html_url":"https://github.com/jeking04","followers_url":"https://api.github.com/users/jeking04/followers","following_url":"https://api.github.com/users/jeking04/following{/other_user}","gists_url":"https://api.github.com/users/jeking04/gists{/gist_id}","starred_url":"https://api.github.com/users/jeking04/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeking04/subscriptions","organizations_url":"https://api.github.com/users/jeking04/orgs","repos_url":"https://api.github.com/users/jeking04/repos","events_url":"https://api.github.com/users/jeking04/events{/privacy}","received_events_url":"https://api.github.com/users/jeking04/received_events","type":"User","site_admin":false},"body":"This PR integrates the perception pipeline created in the prpy PR by the same name. It also includes the TSRs and actions for block sorting.","created_at":"2015-10-12T15:11:11Z","updated_at":"2015-10-12T16:58:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ff66ff0825d8b4bb444f0d23b2e14608efea306f","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/personalrobotics/herbpy/pulls/48/commits","review_comments_url":"https://api.github.com/repos/personalrobotics/herbpy/pulls/48/comments","review_comment_url":"https://api.github.com/repos/personalrobotics/herbpy/pulls/comments{/number}","comments_url":"https://api.github.com/repos/personalrobotics/herbpy/issues/48/comments","statuses_url":"https://api.github.com/repos/personalrobotics/herbpy/statuses/008f91e07953c0609d45dd8958e8c8c0d633e9d0","head":{"label":"personalrobotics:block_sorting","ref":"block_sorting","sha":"008f91e07953c0609d45dd8958e8c8c0d633e9d0","user":{"login":"personalrobotics","id":4705918,"avatar_url":"https://avatars.githubusercontent.com/u/4705918?v=3","gravatar_id":"","url":"https://api.github.com/users/personalrobotics","html_url":"https://github.com/personalrobotics","followers_url":"https://api.github.com/users/personalrobotics/followers","following_url":"https://api.github.com/users/personalrobotics/following{/other_user}","gists_url":"https://api.github.com/users/personalrobotics/gists{/gist_id}","starred_url":"https://api.github.com/users/personalrobotics/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/personalrobotics/subscriptions","organizations_url":"https://api.github.com/users/personalrobotics/orgs","repos_url":"https://api.github.com/users/personalrobotics/repos","events_url":"https://api.github.com/users/personalrobotics/events{/privacy}","received_events_url":"https://api.github.com/users/personalrobotics/received_events","type":"Organization","site_admin":false},"repo":{"id":21153263,"name":"herbpy","full_name":"personalrobotics/herbpy","owner":{"login":"personalrobotics","id":4705918,"avatar_url":"https://avatars.githubusercontent.com/u/4705918?v=3","gravatar_id":"","url":"https://api.github.com/users/personalrobotics","html_url":"https://github.com/personalrobotics","followers_url":"https://api.github.com/users/personalrobotics/followers","following_url":"https://api.github.com/users/personalrobotics/following{/other_user}","gists_url":"https://api.github.com/users/personalrobotics/gists{/gist_id}","starred_url":"https://api.github.com/users/personalrobotics/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/personalrobotics/subscriptions","organizations_url":"https://api.github.com/users/personalrobotics/orgs","repos_url":"https://api.github.com/users/personalrobotics/repos","events_url":"https://api.github.com/users/personalrobotics/events{/privacy}","received_events_url":"https://api.github.com/users/personalrobotics/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/personalrobotics/herbpy","description":"Python library for interacting with HERB.","fork":false,"url":"https://api.github.com/repos/personalrobotics/herbpy","forks_url":"https://api.github.com/repos/personalrobotics/herbpy/forks","keys_url":"https://api.github.com/repos/personalrobotics/herbpy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/personalrobotics/herbpy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/personalrobotics/herbpy/teams","hooks_url":"https://api.github.com/repos/personalrobotics/herbpy/hooks","issue_events_url":"https://api.github.com/repos/personalrobotics/herbpy/issues/events{/number}","events_url":"https://api.github.com/repos/personalrobotics/herbpy/events","assignees_url":"https://api.github.com/repos/personalrobotics/herbpy/assignees{/user}","branches_url":"https://api.github.com/repos/personalrobotics/herbpy/branches{/branch}","tags_url":"https://api.github.com/repos/personalrobotics/herbpy/tags","blobs_url":"https://api.github.com/repos/personalrobotics/herbpy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/personalrobotics/herbpy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/personalrobotics/herbpy/git/refs{/sha}","trees_url":"https://api.github.com/repos/personalrobotics/herbpy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/personalrobotics/herbpy/statuses/{sha}","languages_url":"https://api.github.com/repos/personalrobotics/herbpy/languages","stargazers_url":"https://api.github.com/repos/personalrobotics/herbpy/stargazers","contributors_url":"https://api.github.com/repos/personalrobotics/herbpy/contributors","subscribers_url":"https://api.github.com/repos/personalrobotics/herbpy/subscribers","subscription_url":"https://api.github.com/repos/personalrobotics/herbpy/subscription","commits_url":"https://api.github.com/repos/personalrobotics/herbpy/commits{/sha}","git_commits_url":"https://api.github.com/repos/personalrobotics/herbpy/git/commits{/sha}","comments_url":"https://api.github.com/repos/personalrobotics/herbpy/comments{/number}","issue_comment_url":"https://api.github.com/repos/personalrobotics/herbpy/issues/comments{/number}","contents_url":"https://api.github.com/repos/personalrobotics/herbpy/contents/{+path}","compare_url":"https://api.github.com/repos/personalrobotics/herbpy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/personalrobotics/herbpy/merges","archive_url":"https://api.github.com/repos/personalrobotics/herbpy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/personalrobotics/herbpy/downloads","issues_url":"https://api.github.com/repos/personalrobotics/herbpy/issues{/number}","pulls_url":"https://api.github.com/repos/personalrobotics/herbpy/pulls{/number}","milestones_url":"https://api.github.com/repos/personalrobotics/herbpy/milestones{/number}","notifications_url":"https://api.github.com/repos/personalrobotics/herbpy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/personalrobotics/herbpy/labels{/name}","releases_url":"https://api.github.com/repos/personalrobotics/herbpy/releases{/id}","created_at":"2014-06-24T05:28:33Z","updated_at":"2015-05-01T21:16:36Z","pushed_at":"2015-10-12T16:57:28Z","git_url":"git://github.com/personalrobotics/herbpy.git","ssh_url":"git@github.com:personalrobotics/herbpy.git","clone_url":"https://github.com/personalrobotics/herbpy.git","svn_url":"https://github.com/personalrobotics/herbpy","homepage":"","size":1050,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":10,"forks":5,"open_issues":10,"watchers":0,"default_branch":"master"}},"base":{"label":"personalrobotics:master","ref":"master","sha":"28a20630253e60f0574e4751c135723b107a95dc","user":{"login":"personalrobotics","id":4705918,"avatar_url":"https://avatars.githubusercontent.com/u/4705918?v=3","gravatar_id":"","url":"https://api.github.com/users/personalrobotics","html_url":"https://github.com/personalrobotics","followers_url":"https://api.github.com/users/personalrobotics/followers","following_url":"https://api.github.com/users/personalrobotics/following{/other_user}","gists_url":"https://api.github.com/users/personalrobotics/gists{/gist_id}","starred_url":"https://api.github.com/users/personalrobotics/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/personalrobotics/subscriptions","organizations_url":"https://api.github.com/users/personalrobotics/orgs","repos_url":"https://api.github.com/users/personalrobotics/repos","events_url":"https://api.github.com/users/personalrobotics/events{/privacy}","received_events_url":"https://api.github.com/users/personalrobotics/received_events","type":"Organization","site_admin":false},"repo":{"id":21153263,"name":"herbpy","full_name":"personalrobotics/herbpy","owner":{"login":"personalrobotics","id":4705918,"avatar_url":"https://avatars.githubusercontent.com/u/4705918?v=3","gravatar_id":"","url":"https://api.github.com/users/personalrobotics","html_url":"https://github.com/personalrobotics","followers_url":"https://api.github.com/users/personalrobotics/followers","following_url":"https://api.github.com/users/personalrobotics/following{/other_user}","gists_url":"https://api.github.com/users/personalrobotics/gists{/gist_id}","starred_url":"https://api.github.com/users/personalrobotics/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/personalrobotics/subscriptions","organizations_url":"https://api.github.com/users/personalrobotics/orgs","repos_url":"https://api.github.com/users/personalrobotics/repos","events_url":"https://api.github.com/users/personalrobotics/events{/privacy}","received_events_url":"https://api.github.com/users/personalrobotics/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/personalrobotics/herbpy","description":"Python library for interacting with HERB.","fork":false,"url":"https://api.github.com/repos/personalrobotics/herbpy","forks_url":"https://api.github.com/repos/personalrobotics/herbpy/forks","keys_url":"https://api.github.com/repos/personalrobotics/herbpy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/personalrobotics/herbpy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/personalrobotics/herbpy/teams","hooks_url":"https://api.github.com/repos/personalrobotics/herbpy/hooks","issue_events_url":"https://api.github.com/repos/personalrobotics/herbpy/issues/events{/number}","events_url":"https://api.github.com/repos/personalrobotics/herbpy/events","assignees_url":"https://api.github.com/repos/personalrobotics/herbpy/assignees{/user}","branches_url":"https://api.github.com/repos/personalrobotics/herbpy/branches{/branch}","tags_url":"https://api.github.com/repos/personalrobotics/herbpy/tags","blobs_url":"https://api.github.com/repos/personalrobotics/herbpy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/personalrobotics/herbpy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/personalrobotics/herbpy/git/refs{/sha}","trees_url":"https://api.github.com/repos/personalrobotics/herbpy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/personalrobotics/herbpy/statuses/{sha}","languages_url":"https://api.github.com/repos/personalrobotics/herbpy/languages","stargazers_url":"https://api.github.com/repos/personalrobotics/herbpy/stargazers","contributors_url":"https://api.github.com/repos/personalrobotics/herbpy/contributors","subscribers_url":"https://api.github.com/repos/personalrobotics/herbpy/subscribers","subscription_url":"https://api.github.com/repos/personalrobotics/herbpy/subscription","commits_url":"https://api.github.com/repos/personalrobotics/herbpy/commits{/sha}","git_commits_url":"https://api.github.com/repos/personalrobotics/herbpy/git/commits{/sha}","comments_url":"https://api.github.com/repos/personalrobotics/herbpy/comments{/number}","issue_comment_url":"https://api.github.com/repos/personalrobotics/herbpy/issues/comments{/number}","contents_url":"https://api.github.com/repos/personalrobotics/herbpy/contents/{+path}","compare_url":"https://api.github.com/repos/personalrobotics/herbpy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/personalrobotics/herbpy/merges","archive_url":"https://api.github.com/repos/personalrobotics/herbpy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/personalrobotics/herbpy/downloads","issues_url":"https://api.github.com/repos/personalrobotics/herbpy/issues{/number}","pulls_url":"https://api.github.com/repos/personalrobotics/herbpy/pulls{/number}","milestones_url":"https://api.github.com/repos/personalrobotics/herbpy/milestones{/number}","notifications_url":"https://api.github.com/repos/personalrobotics/herbpy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/personalrobotics/herbpy/labels{/name}","releases_url":"https://api.github.com/repos/personalrobotics/herbpy/releases{/id}","created_at":"2014-06-24T05:28:33Z","updated_at":"2015-05-01T21:16:36Z","pushed_at":"2015-10-12T16:57:28Z","git_url":"git://github.com/personalrobotics/herbpy.git","ssh_url":"git@github.com:personalrobotics/herbpy.git","clone_url":"https://github.com/personalrobotics/herbpy.git","svn_url":"https://github.com/personalrobotics/herbpy","homepage":"","size":1050,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":10,"forks":5,"open_issues":10,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/personalrobotics/herbpy/pulls/48"},"html":{"href":"https://github.com/personalrobotics/herbpy/pull/48"},"issue":{"href":"https://api.github.com/repos/personalrobotics/herbpy/issues/48"},"comments":{"href":"https://api.github.com/repos/personalrobotics/herbpy/issues/48/comments"},"review_comments":{"href":"https://api.github.com/repos/personalrobotics/herbpy/pulls/48/comments"},"review_comment":{"href":"https://api.github.com/repos/personalrobotics/herbpy/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/personalrobotics/herbpy/pulls/48/commits"},"statuses":{"href":"https://api.github.com/repos/personalrobotics/herbpy/statuses/008f91e07953c0609d45dd8958e8c8c0d633e9d0"}}}}