{"action":"created","comment":{"url":"https://api.github.com/repos/ubc-subbots/Jormungandr/pulls/comments/203395271","pull_request_review_id":138274804,"id":203395271,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwMzM5NTI3MQ==","diff_hunk":"@@ -0,0 +1,88 @@\n+##Purpose\n+\n+This node takes in raw image data from a camera and determines whether there is a gate in the image, and if so what the \n+orientation of the gate is.\n+\n+The output of this node is a Gate construct that consists of 3 boolean values and 6 float values that are described as follows:\n+\n+\n+          boolean detectedLeftPole:     False if left pole not seen, true if seen, 0 if not seen\n+          \n+          float angleLeftPole:          Angle from vertical centre of camera image to left pole\n+\n+          float distanceLeftPole:       Distance to left pole, 0 if not seen\n+\n+          boolean detectedRightPole:    False if right pole not seen, true if seen, 0 if not seen\n+\n+          float angleRightPole:         Angle from vertical centre of camera image to right pole\n+\n+          float distanceRightPole:      Distance to right pole, 0 if not seen\n+\n+          boolean detectedTopPole:      False if top pole not seen, true if seen\n+\n+          float angleTopPole:           Angle from horizontal centre of image to top pole, 0 if not seen\n+\n+          float distanceTopPole:        Distance to top pole, 0 if not seen\n+\n+\n+##Method\n+\n+```\n+\n+       TOP VIEW\n+       \n+       GATE       ANGLE TO POLE\n+                /        \n+   POLE O    | \\/  O POLE\n+             |    /\n+             |   / \n+             |  /  <--DISTANCE TO POLE\n+             | /\n+             |/          \n+          --------\n+          | ROBOT| \n+          |      |\n+          --------\n+```\n+\n+\n+The gate detector used to process the image uses an interpolation function to estimate distance to the poles. Discrete data\n+points must be collected of the pixel width of the poles of the gate at various distances. You then must use this data to \n+create an approximation function to map the pixel width of the poles to the distance from the pole.\n+\n+The current interpolation function is a power function: \n+\n+(distance to pole) = interpolationConstant1 * (pixelWidthOfPole) ^ (interpolationConstant2)","path":"src/gate_detect/README.md","position":null,"original_position":55,"commit_id":"4ddba20bdb8d24356184d8bc3297c2222dfdbaed","original_commit_id":"7abd7fafb1f6509cf006f046af1d11067033d799","user":{"login":"newtoncn","id":22137707,"node_id":"MDQ6VXNlcjIyMTM3NzA3","avatar_url":"https://avatars2.githubusercontent.com/u/22137707?v=4","gravatar_id":"","url":"https://api.github.com/users/newtoncn","html_url":"https://github.com/newtoncn","followers_url":"https://api.github.com/users/newtoncn/followers","following_url":"https://api.github.com/users/newtoncn/following{/other_user}","gists_url":"https://api.github.com/users/newtoncn/gists{/gist_id}","starred_url":"https://api.github.com/users/newtoncn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/newtoncn/subscriptions","organizations_url":"https://api.github.com/users/newtoncn/orgs","repos_url":"https://api.github.com/users/newtoncn/repos","events_url":"https://api.github.com/users/newtoncn/events{/privacy}","received_events_url":"https://api.github.com/users/newtoncn/received_events","type":"User","site_admin":false},"body":"updated this comment","created_at":"2018-07-18T14:14:39Z","updated_at":"2018-07-18T14:14:39Z","html_url":"https://github.com/ubc-subbots/Jormungandr/pull/51#discussion_r203395271","pull_request_url":"https://api.github.com/repos/ubc-subbots/Jormungandr/pulls/51","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/ubc-subbots/Jormungandr/pulls/comments/203395271"},"html":{"href":"https://github.com/ubc-subbots/Jormungandr/pull/51#discussion_r203395271"},"pull_request":{"href":"https://api.github.com/repos/ubc-subbots/Jormungandr/pulls/51"}},"in_reply_to_id":203240800},"pull_request":{"url":"https://api.github.com/repos/ubc-subbots/Jormungandr/pulls/51","id":201827976,"node_id":"MDExOlB1bGxSZXF1ZXN0MjAxODI3OTc2","html_url":"https://github.com/ubc-subbots/Jormungandr/pull/51","diff_url":"https://github.com/ubc-subbots/Jormungandr/pull/51.diff","patch_url":"https://github.com/ubc-subbots/Jormungandr/pull/51.patch","issue_url":"https://api.github.com/repos/ubc-subbots/Jormungandr/issues/51","number":51,"state":"open","locked":false,"title":"Gate detect readme update","user":{"login":"newtoncn","id":22137707,"node_id":"MDQ6VXNlcjIyMTM3NzA3","avatar_url":"https://avatars2.githubusercontent.com/u/22137707?v=4","gravatar_id":"","url":"https://api.github.com/users/newtoncn","html_url":"https://github.com/newtoncn","followers_url":"https://api.github.com/users/newtoncn/followers","following_url":"https://api.github.com/users/newtoncn/following{/other_user}","gists_url":"https://api.github.com/users/newtoncn/gists{/gist_id}","starred_url":"https://api.github.com/users/newtoncn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/newtoncn/subscriptions","organizations_url":"https://api.github.com/users/newtoncn/orgs","repos_url":"https://api.github.com/users/newtoncn/repos","events_url":"https://api.github.com/users/newtoncn/events{/privacy}","received_events_url":"https://api.github.com/users/newtoncn/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-07-17T05:28:48Z","updated_at":"2018-07-18T14:14:39Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f726039f16ec05d0b81274d89c47ed71b61919ed","assignee":null,"assignees":[],"requested_reviewers":[{"login":"reoliveira","id":20871374,"node_id":"MDQ6VXNlcjIwODcxMzc0","avatar_url":"https://avatars1.githubusercontent.com/u/20871374?v=4","gravatar_id":"","url":"https://api.github.com/users/reoliveira","html_url":"https://github.com/reoliveira","followers_url":"https://api.github.com/users/reoliveira/followers","following_url":"https://api.github.com/users/reoliveira/following{/other_user}","gists_url":"https://api.github.com/users/reoliveira/gists{/gist_id}","starred_url":"https://api.github.com/users/reoliveira/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/reoliveira/subscriptions","organizations_url":"https://api.github.com/users/reoliveira/orgs","repos_url":"https://api.github.com/users/reoliveira/repos","events_url":"https://api.github.com/users/reoliveira/events{/privacy}","received_events_url":"https://api.github.com/users/reoliveira/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/ubc-subbots/Jormungandr/pulls/51/commits","review_comments_url":"https://api.github.com/repos/ubc-subbots/Jormungandr/pulls/51/comments","review_comment_url":"https://api.github.com/repos/ubc-subbots/Jormungandr/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ubc-subbots/Jormungandr/issues/51/comments","statuses_url":"https://api.github.com/repos/ubc-subbots/Jormungandr/statuses/4ddba20bdb8d24356184d8bc3297c2222dfdbaed","head":{"label":"ubc-subbots:gate_detect_readme_update","ref":"gate_detect_readme_update","sha":"4ddba20bdb8d24356184d8bc3297c2222dfdbaed","user":{"login":"ubc-subbots","id":30019962,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMwMDE5OTYy","avatar_url":"https://avatars2.githubusercontent.com/u/30019962?v=4","gravatar_id":"","url":"https://api.github.com/users/ubc-subbots","html_url":"https://github.com/ubc-subbots","followers_url":"https://api.github.com/users/ubc-subbots/followers","following_url":"https://api.github.com/users/ubc-subbots/following{/other_user}","gists_url":"https://api.github.com/users/ubc-subbots/gists{/gist_id}","starred_url":"https://api.github.com/users/ubc-subbots/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ubc-subbots/subscriptions","organizations_url":"https://api.github.com/users/ubc-subbots/orgs","repos_url":"https://api.github.com/users/ubc-subbots/repos","events_url":"https://api.github.com/users/ubc-subbots/events{/privacy}","received_events_url":"https://api.github.com/users/ubc-subbots/received_events","type":"Organization","site_admin":false},"repo":{"id":103598235,"node_id":"MDEwOlJlcG9zaXRvcnkxMDM1OTgyMzU=","name":"Jormungandr","full_name":"ubc-subbots/Jormungandr","owner":{"login":"ubc-subbots","id":30019962,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMwMDE5OTYy","avatar_url":"https://avatars2.githubusercontent.com/u/30019962?v=4","gravatar_id":"","url":"https://api.github.com/users/ubc-subbots","html_url":"https://github.com/ubc-subbots","followers_url":"https://api.github.com/users/ubc-subbots/followers","following_url":"https://api.github.com/users/ubc-subbots/following{/other_user}","gists_url":"https://api.github.com/users/ubc-subbots/gists{/gist_id}","starred_url":"https://api.github.com/users/ubc-subbots/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ubc-subbots/subscriptions","organizations_url":"https://api.github.com/users/ubc-subbots/orgs","repos_url":"https://api.github.com/users/ubc-subbots/repos","events_url":"https://api.github.com/users/ubc-subbots/events{/privacy}","received_events_url":"https://api.github.com/users/ubc-subbots/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ubc-subbots/Jormungandr","description":"Main Software Repository for Subbots","fork":false,"url":"https://api.github.com/repos/ubc-subbots/Jormungandr","forks_url":"https://api.github.com/repos/ubc-subbots/Jormungandr/forks","keys_url":"https://api.github.com/repos/ubc-subbots/Jormungandr/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ubc-subbots/Jormungandr/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ubc-subbots/Jormungandr/teams","hooks_url":"https://api.github.com/repos/ubc-subbots/Jormungandr/hooks","issue_events_url":"https://api.github.com/repos/ubc-subbots/Jormungandr/issues/events{/number}","events_url":"https://api.github.com/repos/ubc-subbots/Jormungandr/events","assignees_url":"https://api.github.com/repos/ubc-subbots/Jormungandr/assignees{/user}","branches_url":"https://api.github.com/repos/ubc-subbots/Jormungandr/branches{/branch}","tags_url":"https://api.github.com/repos/ubc-subbots/Jormungandr/tags","blobs_url":"https://api.github.com/repos/ubc-subbots/Jormungandr/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ubc-subbots/Jormungandr/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ubc-subbots/Jormungandr/git/refs{/sha}","trees_url":"https://api.github.com/repos/ubc-subbots/Jormungandr/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ubc-subbots/Jormungandr/statuses/{sha}","languages_url":"https://api.github.com/repos/ubc-subbots/Jormungandr/languages","stargazers_url":"https://api.github.com/repos/ubc-subbots/Jormungandr/stargazers","contributors_url":"https://api.github.com/repos/ubc-subbots/Jormungandr/contributors","subscribers_url":"https://api.github.com/repos/ubc-subbots/Jormungandr/subscribers","subscription_url":"https://api.github.com/repos/ubc-subbots/Jormungandr/subscription","commits_url":"https://api.github.com/repos/ubc-subbots/Jormungandr/commits{/sha}","git_commits_url":"https://api.github.com/repos/ubc-subbots/Jormungandr/git/commits{/sha}","comments_url":"https://api.github.com/repos/ubc-subbots/Jormungandr/comments{/number}","issue_comment_url":"https://api.github.com/repos/ubc-subbots/Jormungandr/issues/comments{/number}","contents_url":"https://api.github.com/repos/ubc-subbots/Jormungandr/contents/{+path}","compare_url":"https://api.github.com/repos/ubc-subbots/Jormungandr/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ubc-subbots/Jormungandr/merges","archive_url":"https://api.github.com/repos/ubc-subbots/Jormungandr/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ubc-subbots/Jormungandr/downloads","issues_url":"https://api.github.com/repos/ubc-subbots/Jormungandr/issues{/number}","pulls_url":"https://api.github.com/repos/ubc-subbots/Jormungandr/pulls{/number}","milestones_url":"https://api.github.com/repos/ubc-subbots/Jormungandr/milestones{/number}","notifications_url":"https://api.github.com/repos/ubc-subbots/Jormungandr/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ubc-subbots/Jormungandr/labels{/name}","releases_url":"https://api.github.com/repos/ubc-subbots/Jormungandr/releases{/id}","deployments_url":"https://api.github.com/repos/ubc-subbots/Jormungandr/deployments","created_at":"2017-09-15T01:12:38Z","updated_at":"2018-07-15T18:56:31Z","pushed_at":"2018-07-18T14:14:04Z","git_url":"git://github.com/ubc-subbots/Jormungandr.git","ssh_url":"git@github.com:ubc-subbots/Jormungandr.git","clone_url":"https://github.com/ubc-subbots/Jormungandr.git","svn_url":"https://github.com/ubc-subbots/Jormungandr","homepage":null,"size":82750,"stargazers_count":0,"watchers_count":0,"language":"GLSL","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":17,"license":null,"forks":1,"open_issues":17,"watchers":0,"default_branch":"master"}},"base":{"label":"ubc-subbots:master","ref":"master","sha":"6c3c5ba6e5ba892ef9fc97d767936eadf7fdb1d5","user":{"login":"ubc-subbots","id":30019962,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMwMDE5OTYy","avatar_url":"https://avatars2.githubusercontent.com/u/30019962?v=4","gravatar_id":"","url":"https://api.github.com/users/ubc-subbots","html_url":"https://github.com/ubc-subbots","followers_url":"https://api.github.com/users/ubc-subbots/followers","following_url":"https://api.github.com/users/ubc-subbots/following{/other_user}","gists_url":"https://api.github.com/users/ubc-subbots/gists{/gist_id}","starred_url":"https://api.github.com/users/ubc-subbots/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ubc-subbots/subscriptions","organizations_url":"https://api.github.com/users/ubc-subbots/orgs","repos_url":"https://api.github.com/users/ubc-subbots/repos","events_url":"https://api.github.com/users/ubc-subbots/events{/privacy}","received_events_url":"https://api.github.com/users/ubc-subbots/received_events","type":"Organization","site_admin":false},"repo":{"id":103598235,"node_id":"MDEwOlJlcG9zaXRvcnkxMDM1OTgyMzU=","name":"Jormungandr","full_name":"ubc-subbots/Jormungandr","owner":{"login":"ubc-subbots","id":30019962,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMwMDE5OTYy","avatar_url":"https://avatars2.githubusercontent.com/u/30019962?v=4","gravatar_id":"","url":"https://api.github.com/users/ubc-subbots","html_url":"https://github.com/ubc-subbots","followers_url":"https://api.github.com/users/ubc-subbots/followers","following_url":"https://api.github.com/users/ubc-subbots/following{/other_user}","gists_url":"https://api.github.com/users/ubc-subbots/gists{/gist_id}","starred_url":"https://api.github.com/users/ubc-subbots/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ubc-subbots/subscriptions","organizations_url":"https://api.github.com/users/ubc-subbots/orgs","repos_url":"https://api.github.com/users/ubc-subbots/repos","events_url":"https://api.github.com/users/ubc-subbots/events{/privacy}","received_events_url":"https://api.github.com/users/ubc-subbots/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ubc-subbots/Jormungandr","description":"Main Software Repository for Subbots","fork":false,"url":"https://api.github.com/repos/ubc-subbots/Jormungandr","forks_url":"https://api.github.com/repos/ubc-subbots/Jormungandr/forks","keys_url":"https://api.github.com/repos/ubc-subbots/Jormungandr/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ubc-subbots/Jormungandr/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ubc-subbots/Jormungandr/teams","hooks_url":"https://api.github.com/repos/ubc-subbots/Jormungandr/hooks","issue_events_url":"https://api.github.com/repos/ubc-subbots/Jormungandr/issues/events{/number}","events_url":"https://api.github.com/repos/ubc-subbots/Jormungandr/events","assignees_url":"https://api.github.com/repos/ubc-subbots/Jormungandr/assignees{/user}","branches_url":"https://api.github.com/repos/ubc-subbots/Jormungandr/branches{/branch}","tags_url":"https://api.github.com/repos/ubc-subbots/Jormungandr/tags","blobs_url":"https://api.github.com/repos/ubc-subbots/Jormungandr/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ubc-subbots/Jormungandr/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ubc-subbots/Jormungandr/git/refs{/sha}","trees_url":"https://api.github.com/repos/ubc-subbots/Jormungandr/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ubc-subbots/Jormungandr/statuses/{sha}","languages_url":"https://api.github.com/repos/ubc-subbots/Jormungandr/languages","stargazers_url":"https://api.github.com/repos/ubc-subbots/Jormungandr/stargazers","contributors_url":"https://api.github.com/repos/ubc-subbots/Jormungandr/contributors","subscribers_url":"https://api.github.com/repos/ubc-subbots/Jormungandr/subscribers","subscription_url":"https://api.github.com/repos/ubc-subbots/Jormungandr/subscription","commits_url":"https://api.github.com/repos/ubc-subbots/Jormungandr/commits{/sha}","git_commits_url":"https://api.github.com/repos/ubc-subbots/Jormungandr/git/commits{/sha}","comments_url":"https://api.github.com/repos/ubc-subbots/Jormungandr/comments{/number}","issue_comment_url":"https://api.github.com/repos/ubc-subbots/Jormungandr/issues/comments{/number}","contents_url":"https://api.github.com/repos/ubc-subbots/Jormungandr/contents/{+path}","compare_url":"https://api.github.com/repos/ubc-subbots/Jormungandr/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ubc-subbots/Jormungandr/merges","archive_url":"https://api.github.com/repos/ubc-subbots/Jormungandr/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ubc-subbots/Jormungandr/downloads","issues_url":"https://api.github.com/repos/ubc-subbots/Jormungandr/issues{/number}","pulls_url":"https://api.github.com/repos/ubc-subbots/Jormungandr/pulls{/number}","milestones_url":"https://api.github.com/repos/ubc-subbots/Jormungandr/milestones{/number}","notifications_url":"https://api.github.com/repos/ubc-subbots/Jormungandr/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ubc-subbots/Jormungandr/labels{/name}","releases_url":"https://api.github.com/repos/ubc-subbots/Jormungandr/releases{/id}","deployments_url":"https://api.github.com/repos/ubc-subbots/Jormungandr/deployments","created_at":"2017-09-15T01:12:38Z","updated_at":"2018-07-15T18:56:31Z","pushed_at":"2018-07-18T14:14:04Z","git_url":"git://github.com/ubc-subbots/Jormungandr.git","ssh_url":"git@github.com:ubc-subbots/Jormungandr.git","clone_url":"https://github.com/ubc-subbots/Jormungandr.git","svn_url":"https://github.com/ubc-subbots/Jormungandr","homepage":null,"size":82750,"stargazers_count":0,"watchers_count":0,"language":"GLSL","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":17,"license":null,"forks":1,"open_issues":17,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ubc-subbots/Jormungandr/pulls/51"},"html":{"href":"https://github.com/ubc-subbots/Jormungandr/pull/51"},"issue":{"href":"https://api.github.com/repos/ubc-subbots/Jormungandr/issues/51"},"comments":{"href":"https://api.github.com/repos/ubc-subbots/Jormungandr/issues/51/comments"},"review_comments":{"href":"https://api.github.com/repos/ubc-subbots/Jormungandr/pulls/51/comments"},"review_comment":{"href":"https://api.github.com/repos/ubc-subbots/Jormungandr/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ubc-subbots/Jormungandr/pulls/51/commits"},"statuses":{"href":"https://api.github.com/repos/ubc-subbots/Jormungandr/statuses/4ddba20bdb8d24356184d8bc3297c2222dfdbaed"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"newtoncn"}}