{"action":"created","comment":{"url":"https://api.github.com/repos/uf-mil/Navigator/pulls/comments/76290417","id":76290417,"diff_hunk":"@@ -0,0 +1,37 @@\n+#!/usr/bin/env python\n+import rospy\n+from std_msgs.msg import String\n+from sub8_alarm import single_alarm\n+from twisted.internet import reactor\n+import time\n+\n+\n+class NetworkCheck(object):\n+    '''\n+    Meant to only run on the boat. When the network is dropped, it triggers a kill.\n+    '''\n+    def __init__(self, timeout=2.0):\n+        self.timeout = rospy.Duration(timeout)\n+        self.sub = rospy.Subscriber('/keep_alive', String, self.got_network_msg, queue_size=1)\n+\n+        self.alarm_broadcaster, self.alarm = single_alarm('kill', severity=3, problem_description=\"Network loss\")\n+        rospy.Timer(rospy.Duration(0.1), self.check)\n+\n+    def check(self, *args):\n+        if self.need_kill() and self.last_msg != '':\\","path":"mission_control/navigator_launch/nodes/network_listener.py","position":null,"original_position":21,"commit_id":"e82a2c5e9aae44ece12fbff4850ebf260e35823a","original_commit_id":"7cbbbfb7cd11ed81c85a3d51613db626c1acc074","user":{"login":"DSsoto","id":8714358,"avatar_url":"https://avatars.githubusercontent.com/u/8714358?v=3","gravatar_id":"","url":"https://api.github.com/users/DSsoto","html_url":"https://github.com/DSsoto","followers_url":"https://api.github.com/users/DSsoto/followers","following_url":"https://api.github.com/users/DSsoto/following{/other_user}","gists_url":"https://api.github.com/users/DSsoto/gists{/gist_id}","starred_url":"https://api.github.com/users/DSsoto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DSsoto/subscriptions","organizations_url":"https://api.github.com/users/DSsoto/orgs","repos_url":"https://api.github.com/users/DSsoto/repos","events_url":"https://api.github.com/users/DSsoto/events{/privacy}","received_events_url":"https://api.github.com/users/DSsoto/received_events","type":"User","site_admin":false},"body":"Won't self.last_msg always == 'keep_alive' after the first call to got_network_msg?\r\nWhat is this backslash for?","created_at":"2016-08-25T17:41:42Z","updated_at":"2016-08-25T17:41:42Z","html_url":"https://github.com/uf-mil/Navigator/pull/35#discussion_r76290417","pull_request_url":"https://api.github.com/repos/uf-mil/Navigator/pulls/35","_links":{"self":{"href":"https://api.github.com/repos/uf-mil/Navigator/pulls/comments/76290417"},"html":{"href":"https://github.com/uf-mil/Navigator/pull/35#discussion_r76290417"},"pull_request":{"href":"https://api.github.com/repos/uf-mil/Navigator/pulls/35"}}},"pull_request":{"url":"https://api.github.com/repos/uf-mil/Navigator/pulls/35","id":82663124,"html_url":"https://github.com/uf-mil/Navigator/pull/35","diff_url":"https://github.com/uf-mil/Navigator/pull/35.diff","patch_url":"https://github.com/uf-mil/Navigator/pull/35.patch","issue_url":"https://api.github.com/repos/uf-mil/Navigator/issues/35","number":35,"state":"open","locked":false,"title":"Fix Thruster Issues, Network Kills","user":{"login":"mattlangford","id":10998371,"avatar_url":"https://avatars.githubusercontent.com/u/10998371?v=3","gravatar_id":"","url":"https://api.github.com/users/mattlangford","html_url":"https://github.com/mattlangford","followers_url":"https://api.github.com/users/mattlangford/followers","following_url":"https://api.github.com/users/mattlangford/following{/other_user}","gists_url":"https://api.github.com/users/mattlangford/gists{/gist_id}","starred_url":"https://api.github.com/users/mattlangford/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattlangford/subscriptions","organizations_url":"https://api.github.com/users/mattlangford/orgs","repos_url":"https://api.github.com/users/mattlangford/repos","events_url":"https://api.github.com/users/mattlangford/events{/privacy}","received_events_url":"https://api.github.com/users/mattlangford/received_events","type":"User","site_admin":false},"body":"I think this addresses #7, what do you guys think?\r\nAlso fixes #34 \r\n\r\nWe still require the sub repo as a dependency for just sub8_alarms I believe - we should find a way to move that package whilst keeping the git history in tact. [It looks possible](http://stackoverflow.com/questions/2314652/is-it-possible-to-move-rename-files-in-git-and-maintain-their-history), albeit dangerous and cooky.","created_at":"2016-08-25T06:22:26Z","updated_at":"2016-08-25T17:41:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":"68af45209de1b40650d4bb47dd9fc8dbacb67c21","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/uf-mil/Navigator/pulls/35/commits","review_comments_url":"https://api.github.com/repos/uf-mil/Navigator/pulls/35/comments","review_comment_url":"https://api.github.com/repos/uf-mil/Navigator/pulls/comments{/number}","comments_url":"https://api.github.com/repos/uf-mil/Navigator/issues/35/comments","statuses_url":"https://api.github.com/repos/uf-mil/Navigator/statuses/e82a2c5e9aae44ece12fbff4850ebf260e35823a","head":{"label":"mattlangford:master","ref":"master","sha":"e82a2c5e9aae44ece12fbff4850ebf260e35823a","user":{"login":"mattlangford","id":10998371,"avatar_url":"https://avatars.githubusercontent.com/u/10998371?v=3","gravatar_id":"","url":"https://api.github.com/users/mattlangford","html_url":"https://github.com/mattlangford","followers_url":"https://api.github.com/users/mattlangford/followers","following_url":"https://api.github.com/users/mattlangford/following{/other_user}","gists_url":"https://api.github.com/users/mattlangford/gists{/gist_id}","starred_url":"https://api.github.com/users/mattlangford/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattlangford/subscriptions","organizations_url":"https://api.github.com/users/mattlangford/orgs","repos_url":"https://api.github.com/users/mattlangford/repos","events_url":"https://api.github.com/users/mattlangford/events{/privacy}","received_events_url":"https://api.github.com/users/mattlangford/received_events","type":"User","site_admin":false},"repo":{"id":65106186,"name":"Navigator","full_name":"mattlangford/Navigator","owner":{"login":"mattlangford","id":10998371,"avatar_url":"https://avatars.githubusercontent.com/u/10998371?v=3","gravatar_id":"","url":"https://api.github.com/users/mattlangford","html_url":"https://github.com/mattlangford","followers_url":"https://api.github.com/users/mattlangford/followers","following_url":"https://api.github.com/users/mattlangford/following{/other_user}","gists_url":"https://api.github.com/users/mattlangford/gists{/gist_id}","starred_url":"https://api.github.com/users/mattlangford/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattlangford/subscriptions","organizations_url":"https://api.github.com/users/mattlangford/orgs","repos_url":"https://api.github.com/users/mattlangford/repos","events_url":"https://api.github.com/users/mattlangford/events{/privacy}","received_events_url":"https://api.github.com/users/mattlangford/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mattlangford/Navigator","description":"On board software for UF's NaviGator Autonomous Surface Vehicle","fork":true,"url":"https://api.github.com/repos/mattlangford/Navigator","forks_url":"https://api.github.com/repos/mattlangford/Navigator/forks","keys_url":"https://api.github.com/repos/mattlangford/Navigator/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mattlangford/Navigator/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mattlangford/Navigator/teams","hooks_url":"https://api.github.com/repos/mattlangford/Navigator/hooks","issue_events_url":"https://api.github.com/repos/mattlangford/Navigator/issues/events{/number}","events_url":"https://api.github.com/repos/mattlangford/Navigator/events","assignees_url":"https://api.github.com/repos/mattlangford/Navigator/assignees{/user}","branches_url":"https://api.github.com/repos/mattlangford/Navigator/branches{/branch}","tags_url":"https://api.github.com/repos/mattlangford/Navigator/tags","blobs_url":"https://api.github.com/repos/mattlangford/Navigator/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mattlangford/Navigator/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mattlangford/Navigator/git/refs{/sha}","trees_url":"https://api.github.com/repos/mattlangford/Navigator/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mattlangford/Navigator/statuses/{sha}","languages_url":"https://api.github.com/repos/mattlangford/Navigator/languages","stargazers_url":"https://api.github.com/repos/mattlangford/Navigator/stargazers","contributors_url":"https://api.github.com/repos/mattlangford/Navigator/contributors","subscribers_url":"https://api.github.com/repos/mattlangford/Navigator/subscribers","subscription_url":"https://api.github.com/repos/mattlangford/Navigator/subscription","commits_url":"https://api.github.com/repos/mattlangford/Navigator/commits{/sha}","git_commits_url":"https://api.github.com/repos/mattlangford/Navigator/git/commits{/sha}","comments_url":"https://api.github.com/repos/mattlangford/Navigator/comments{/number}","issue_comment_url":"https://api.github.com/repos/mattlangford/Navigator/issues/comments{/number}","contents_url":"https://api.github.com/repos/mattlangford/Navigator/contents/{+path}","compare_url":"https://api.github.com/repos/mattlangford/Navigator/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mattlangford/Navigator/merges","archive_url":"https://api.github.com/repos/mattlangford/Navigator/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mattlangford/Navigator/downloads","issues_url":"https://api.github.com/repos/mattlangford/Navigator/issues{/number}","pulls_url":"https://api.github.com/repos/mattlangford/Navigator/pulls{/number}","milestones_url":"https://api.github.com/repos/mattlangford/Navigator/milestones{/number}","notifications_url":"https://api.github.com/repos/mattlangford/Navigator/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mattlangford/Navigator/labels{/name}","releases_url":"https://api.github.com/repos/mattlangford/Navigator/releases{/id}","deployments_url":"https://api.github.com/repos/mattlangford/Navigator/deployments","created_at":"2016-08-06T23:23:06Z","updated_at":"2016-08-06T23:23:07Z","pushed_at":"2016-08-25T16:11:34Z","git_url":"git://github.com/mattlangford/Navigator.git","ssh_url":"git@github.com:mattlangford/Navigator.git","clone_url":"https://github.com/mattlangford/Navigator.git","svn_url":"https://github.com/mattlangford/Navigator","homepage":"","size":2177,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"uf-mil:master","ref":"master","sha":"0202bac49dbc32a833cd60ba18638d66a0875352","user":{"login":"uf-mil","id":6162945,"avatar_url":"https://avatars.githubusercontent.com/u/6162945?v=3","gravatar_id":"","url":"https://api.github.com/users/uf-mil","html_url":"https://github.com/uf-mil","followers_url":"https://api.github.com/users/uf-mil/followers","following_url":"https://api.github.com/users/uf-mil/following{/other_user}","gists_url":"https://api.github.com/users/uf-mil/gists{/gist_id}","starred_url":"https://api.github.com/users/uf-mil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uf-mil/subscriptions","organizations_url":"https://api.github.com/users/uf-mil/orgs","repos_url":"https://api.github.com/users/uf-mil/repos","events_url":"https://api.github.com/users/uf-mil/events{/privacy}","received_events_url":"https://api.github.com/users/uf-mil/received_events","type":"Organization","site_admin":false},"repo":{"id":42456121,"name":"Navigator","full_name":"uf-mil/Navigator","owner":{"login":"uf-mil","id":6162945,"avatar_url":"https://avatars.githubusercontent.com/u/6162945?v=3","gravatar_id":"","url":"https://api.github.com/users/uf-mil","html_url":"https://github.com/uf-mil","followers_url":"https://api.github.com/users/uf-mil/followers","following_url":"https://api.github.com/users/uf-mil/following{/other_user}","gists_url":"https://api.github.com/users/uf-mil/gists{/gist_id}","starred_url":"https://api.github.com/users/uf-mil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uf-mil/subscriptions","organizations_url":"https://api.github.com/users/uf-mil/orgs","repos_url":"https://api.github.com/users/uf-mil/repos","events_url":"https://api.github.com/users/uf-mil/events{/privacy}","received_events_url":"https://api.github.com/users/uf-mil/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/uf-mil/Navigator","description":"On board software for UF's NaviGator Autonomous Surface Vehicle","fork":false,"url":"https://api.github.com/repos/uf-mil/Navigator","forks_url":"https://api.github.com/repos/uf-mil/Navigator/forks","keys_url":"https://api.github.com/repos/uf-mil/Navigator/keys{/key_id}","collaborators_url":"https://api.github.com/repos/uf-mil/Navigator/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/uf-mil/Navigator/teams","hooks_url":"https://api.github.com/repos/uf-mil/Navigator/hooks","issue_events_url":"https://api.github.com/repos/uf-mil/Navigator/issues/events{/number}","events_url":"https://api.github.com/repos/uf-mil/Navigator/events","assignees_url":"https://api.github.com/repos/uf-mil/Navigator/assignees{/user}","branches_url":"https://api.github.com/repos/uf-mil/Navigator/branches{/branch}","tags_url":"https://api.github.com/repos/uf-mil/Navigator/tags","blobs_url":"https://api.github.com/repos/uf-mil/Navigator/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/uf-mil/Navigator/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/uf-mil/Navigator/git/refs{/sha}","trees_url":"https://api.github.com/repos/uf-mil/Navigator/git/trees{/sha}","statuses_url":"https://api.github.com/repos/uf-mil/Navigator/statuses/{sha}","languages_url":"https://api.github.com/repos/uf-mil/Navigator/languages","stargazers_url":"https://api.github.com/repos/uf-mil/Navigator/stargazers","contributors_url":"https://api.github.com/repos/uf-mil/Navigator/contributors","subscribers_url":"https://api.github.com/repos/uf-mil/Navigator/subscribers","subscription_url":"https://api.github.com/repos/uf-mil/Navigator/subscription","commits_url":"https://api.github.com/repos/uf-mil/Navigator/commits{/sha}","git_commits_url":"https://api.github.com/repos/uf-mil/Navigator/git/commits{/sha}","comments_url":"https://api.github.com/repos/uf-mil/Navigator/comments{/number}","issue_comment_url":"https://api.github.com/repos/uf-mil/Navigator/issues/comments{/number}","contents_url":"https://api.github.com/repos/uf-mil/Navigator/contents/{+path}","compare_url":"https://api.github.com/repos/uf-mil/Navigator/compare/{base}...{head}","merges_url":"https://api.github.com/repos/uf-mil/Navigator/merges","archive_url":"https://api.github.com/repos/uf-mil/Navigator/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/uf-mil/Navigator/downloads","issues_url":"https://api.github.com/repos/uf-mil/Navigator/issues{/number}","pulls_url":"https://api.github.com/repos/uf-mil/Navigator/pulls{/number}","milestones_url":"https://api.github.com/repos/uf-mil/Navigator/milestones{/number}","notifications_url":"https://api.github.com/repos/uf-mil/Navigator/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/uf-mil/Navigator/labels{/name}","releases_url":"https://api.github.com/repos/uf-mil/Navigator/releases{/id}","deployments_url":"https://api.github.com/repos/uf-mil/Navigator/deployments","created_at":"2015-09-14T15:07:13Z","updated_at":"2016-08-16T01:23:34Z","pushed_at":"2016-08-25T16:11:35Z","git_url":"git://github.com/uf-mil/Navigator.git","ssh_url":"git@github.com:uf-mil/Navigator.git","clone_url":"https://github.com/uf-mil/Navigator.git","svn_url":"https://github.com/uf-mil/Navigator","homepage":"","size":2246,"stargazers_count":3,"watchers_count":3,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":11,"mirror_url":null,"open_issues_count":13,"forks":11,"open_issues":13,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/uf-mil/Navigator/pulls/35"},"html":{"href":"https://github.com/uf-mil/Navigator/pull/35"},"issue":{"href":"https://api.github.com/repos/uf-mil/Navigator/issues/35"},"comments":{"href":"https://api.github.com/repos/uf-mil/Navigator/issues/35/comments"},"review_comments":{"href":"https://api.github.com/repos/uf-mil/Navigator/pulls/35/comments"},"review_comment":{"href":"https://api.github.com/repos/uf-mil/Navigator/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/uf-mil/Navigator/pulls/35/commits"},"statuses":{"href":"https://api.github.com/repos/uf-mil/Navigator/statuses/e82a2c5e9aae44ece12fbff4850ebf260e35823a"}}}}
{"actor":{"display_login":"DSsoto"}}