{"action":"created","comment":{"url":"https://api.github.com/repos/Pitt-RAS/iarc7_safety/pulls/comments/93818633","pull_request_review_id":14354938,"id":93818633,"diff_hunk":"@@ -0,0 +1,64 @@\n+#ifndef SAFETY_CLIENT_HPP\n+#define SAFETY_CLIENT_HPP\n+\n+////////////////////////////////////////////////////////////////////////////\n+//\n+// SafetyClient\n+//\n+// Class implements an easy way to use the iarc7_safety to notify of safety events\n+//\n+////////////////////////////////////////////////////////////////////////////\n+\n+#include <ros/ros.h>\n+#include <std_msgs/String.h>\n+#include <bondcpp/bond.h>\n+\n+namespace Iarc7Safety\n+{\n+\n+    class SafetyClient","path":"include/iarc7_safety/SafetyClient.hpp","position":19,"original_position":19,"commit_id":"19c4895dd09b19f618c518a1cc46b252ecd4b6b6","original_commit_id":"19c4895dd09b19f618c518a1cc46b252ecd4b6b6","user":{"login":"aftersomemath","id":6125615,"avatar_url":"https://avatars.githubusercontent.com/u/6125615?v=3","gravatar_id":"","url":"https://api.github.com/users/aftersomemath","html_url":"https://github.com/aftersomemath","followers_url":"https://api.github.com/users/aftersomemath/followers","following_url":"https://api.github.com/users/aftersomemath/following{/other_user}","gists_url":"https://api.github.com/users/aftersomemath/gists{/gist_id}","starred_url":"https://api.github.com/users/aftersomemath/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aftersomemath/subscriptions","organizations_url":"https://api.github.com/users/aftersomemath/orgs","repos_url":"https://api.github.com/users/aftersomemath/repos","events_url":"https://api.github.com/users/aftersomemath/events{/privacy}","received_events_url":"https://api.github.com/users/aftersomemath/received_events","type":"User","site_admin":false},"body":"Fixing","created_at":"2016-12-24T16:06:49Z","updated_at":"2016-12-24T16:06:49Z","html_url":"https://github.com/Pitt-RAS/iarc7_safety/pull/2#discussion_r93818633","pull_request_url":"https://api.github.com/repos/Pitt-RAS/iarc7_safety/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/Pitt-RAS/iarc7_safety/pulls/comments/93818633"},"html":{"href":"https://github.com/Pitt-RAS/iarc7_safety/pull/2#discussion_r93818633"},"pull_request":{"href":"https://api.github.com/repos/Pitt-RAS/iarc7_safety/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/Pitt-RAS/iarc7_safety/pulls/2","id":99208675,"html_url":"https://github.com/Pitt-RAS/iarc7_safety/pull/2","diff_url":"https://github.com/Pitt-RAS/iarc7_safety/pull/2.diff","patch_url":"https://github.com/Pitt-RAS/iarc7_safety/pull/2.patch","issue_url":"https://api.github.com/repos/Pitt-RAS/iarc7_safety/issues/2","number":2,"state":"open","locked":false,"title":"Initial iarc7_safety implementation","user":{"login":"aftersomemath","id":6125615,"avatar_url":"https://avatars.githubusercontent.com/u/6125615?v=3","gravatar_id":"","url":"https://api.github.com/users/aftersomemath","html_url":"https://github.com/aftersomemath","followers_url":"https://api.github.com/users/aftersomemath/followers","following_url":"https://api.github.com/users/aftersomemath/following{/other_user}","gists_url":"https://api.github.com/users/aftersomemath/gists{/gist_id}","starred_url":"https://api.github.com/users/aftersomemath/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aftersomemath/subscriptions","organizations_url":"https://api.github.com/users/aftersomemath/orgs","repos_url":"https://api.github.com/users/aftersomemath/repos","events_url":"https://api.github.com/users/aftersomemath/events{/privacy}","received_events_url":"https://api.github.com/users/aftersomemath/received_events","type":"User","site_admin":false},"body":"There are two parts.\r\n\r\nThe first is the main iarc7_safety node.\r\nSafetyMonitor.cpp is the main entry point for iarc7_safety it reads in a list of nodes to make a bond with using a ros parameter.\r\n\r\nIt creates each bond and then polls them periodically to make sure they aren't broken. If a bond is broken the bond/node with the next highest priority is issued a safety command on the safety topic. That node is to take appropriate action upon receiving the message.\r\n\r\nIn the case there are no more nodes to notify a fatal event is triggered. All nodes should shut down at this point.\r\n\r\nThe second is the SafetyClient.\r\nThe safety client is an exported library available in python or c++ that allows nodes in other packages to easily interface with the iarc7_safety node. They simply specify their name, create the bond, and check occasionally to see if there is a safety or fatal event to respond too.\r\n\r\nA current limitation is not being able to change the heartbeat interval or timeout period for individual bonds.","created_at":"2016-12-23T06:55:12Z","updated_at":"2016-12-24T16:06:49Z","closed_at":null,"merged_at":null,"merge_commit_sha":"dbd203ca26f52515f65b8ccc927c9952a6c98564","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/Pitt-RAS/iarc7_safety/pulls/2/commits","review_comments_url":"https://api.github.com/repos/Pitt-RAS/iarc7_safety/pulls/2/comments","review_comment_url":"https://api.github.com/repos/Pitt-RAS/iarc7_safety/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Pitt-RAS/iarc7_safety/issues/2/comments","statuses_url":"https://api.github.com/repos/Pitt-RAS/iarc7_safety/statuses/19c4895dd09b19f618c518a1cc46b252ecd4b6b6","head":{"label":"Pitt-RAS:safetyV1","ref":"safetyV1","sha":"19c4895dd09b19f618c518a1cc46b252ecd4b6b6","user":{"login":"Pitt-RAS","id":15024509,"avatar_url":"https://avatars.githubusercontent.com/u/15024509?v=3","gravatar_id":"","url":"https://api.github.com/users/Pitt-RAS","html_url":"https://github.com/Pitt-RAS","followers_url":"https://api.github.com/users/Pitt-RAS/followers","following_url":"https://api.github.com/users/Pitt-RAS/following{/other_user}","gists_url":"https://api.github.com/users/Pitt-RAS/gists{/gist_id}","starred_url":"https://api.github.com/users/Pitt-RAS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Pitt-RAS/subscriptions","organizations_url":"https://api.github.com/users/Pitt-RAS/orgs","repos_url":"https://api.github.com/users/Pitt-RAS/repos","events_url":"https://api.github.com/users/Pitt-RAS/events{/privacy}","received_events_url":"https://api.github.com/users/Pitt-RAS/received_events","type":"Organization","site_admin":false},"repo":{"id":67439364,"name":"iarc7_safety","full_name":"Pitt-RAS/iarc7_safety","owner":{"login":"Pitt-RAS","id":15024509,"avatar_url":"https://avatars.githubusercontent.com/u/15024509?v=3","gravatar_id":"","url":"https://api.github.com/users/Pitt-RAS","html_url":"https://github.com/Pitt-RAS","followers_url":"https://api.github.com/users/Pitt-RAS/followers","following_url":"https://api.github.com/users/Pitt-RAS/following{/other_user}","gists_url":"https://api.github.com/users/Pitt-RAS/gists{/gist_id}","starred_url":"https://api.github.com/users/Pitt-RAS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Pitt-RAS/subscriptions","organizations_url":"https://api.github.com/users/Pitt-RAS/orgs","repos_url":"https://api.github.com/users/Pitt-RAS/repos","events_url":"https://api.github.com/users/Pitt-RAS/events{/privacy}","received_events_url":"https://api.github.com/users/Pitt-RAS/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Pitt-RAS/iarc7_safety","description":null,"fork":false,"url":"https://api.github.com/repos/Pitt-RAS/iarc7_safety","forks_url":"https://api.github.com/repos/Pitt-RAS/iarc7_safety/forks","keys_url":"https://api.github.com/repos/Pitt-RAS/iarc7_safety/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Pitt-RAS/iarc7_safety/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Pitt-RAS/iarc7_safety/teams","hooks_url":"https://api.github.com/repos/Pitt-RAS/iarc7_safety/hooks","issue_events_url":"https://api.github.com/repos/Pitt-RAS/iarc7_safety/issues/events{/number}","events_url":"https://api.github.com/repos/Pitt-RAS/iarc7_safety/events","assignees_url":"https://api.github.com/repos/Pitt-RAS/iarc7_safety/assignees{/user}","branches_url":"https://api.github.com/repos/Pitt-RAS/iarc7_safety/branches{/branch}","tags_url":"https://api.github.com/repos/Pitt-RAS/iarc7_safety/tags","blobs_url":"https://api.github.com/repos/Pitt-RAS/iarc7_safety/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Pitt-RAS/iarc7_safety/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Pitt-RAS/iarc7_safety/git/refs{/sha}","trees_url":"https://api.github.com/repos/Pitt-RAS/iarc7_safety/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Pitt-RAS/iarc7_safety/statuses/{sha}","languages_url":"https://api.github.com/repos/Pitt-RAS/iarc7_safety/languages","stargazers_url":"https://api.github.com/repos/Pitt-RAS/iarc7_safety/stargazers","contributors_url":"https://api.github.com/repos/Pitt-RAS/iarc7_safety/contributors","subscribers_url":"https://api.github.com/repos/Pitt-RAS/iarc7_safety/subscribers","subscription_url":"https://api.github.com/repos/Pitt-RAS/iarc7_safety/subscription","commits_url":"https://api.github.com/repos/Pitt-RAS/iarc7_safety/commits{/sha}","git_commits_url":"https://api.github.com/repos/Pitt-RAS/iarc7_safety/git/commits{/sha}","comments_url":"https://api.github.com/repos/Pitt-RAS/iarc7_safety/comments{/number}","issue_comment_url":"https://api.github.com/repos/Pitt-RAS/iarc7_safety/issues/comments{/number}","contents_url":"https://api.github.com/repos/Pitt-RAS/iarc7_safety/contents/{+path}","compare_url":"https://api.github.com/repos/Pitt-RAS/iarc7_safety/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Pitt-RAS/iarc7_safety/merges","archive_url":"https://api.github.com/repos/Pitt-RAS/iarc7_safety/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Pitt-RAS/iarc7_safety/downloads","issues_url":"https://api.github.com/repos/Pitt-RAS/iarc7_safety/issues{/number}","pulls_url":"https://api.github.com/repos/Pitt-RAS/iarc7_safety/pulls{/number}","milestones_url":"https://api.github.com/repos/Pitt-RAS/iarc7_safety/milestones{/number}","notifications_url":"https://api.github.com/repos/Pitt-RAS/iarc7_safety/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Pitt-RAS/iarc7_safety/labels{/name}","releases_url":"https://api.github.com/repos/Pitt-RAS/iarc7_safety/releases{/id}","deployments_url":"https://api.github.com/repos/Pitt-RAS/iarc7_safety/deployments","created_at":"2016-09-05T17:30:18Z","updated_at":"2016-09-10T18:15:23Z","pushed_at":"2016-12-24T04:59:34Z","git_url":"git://github.com/Pitt-RAS/iarc7_safety.git","ssh_url":"git@github.com:Pitt-RAS/iarc7_safety.git","clone_url":"https://github.com/Pitt-RAS/iarc7_safety.git","svn_url":"https://github.com/Pitt-RAS/iarc7_safety","homepage":null,"size":29,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"Pitt-RAS:master","ref":"master","sha":"7e7e479a9498c4ecdf6ffddb1ece850b9dc337d2","user":{"login":"Pitt-RAS","id":15024509,"avatar_url":"https://avatars.githubusercontent.com/u/15024509?v=3","gravatar_id":"","url":"https://api.github.com/users/Pitt-RAS","html_url":"https://github.com/Pitt-RAS","followers_url":"https://api.github.com/users/Pitt-RAS/followers","following_url":"https://api.github.com/users/Pitt-RAS/following{/other_user}","gists_url":"https://api.github.com/users/Pitt-RAS/gists{/gist_id}","starred_url":"https://api.github.com/users/Pitt-RAS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Pitt-RAS/subscriptions","organizations_url":"https://api.github.com/users/Pitt-RAS/orgs","repos_url":"https://api.github.com/users/Pitt-RAS/repos","events_url":"https://api.github.com/users/Pitt-RAS/events{/privacy}","received_events_url":"https://api.github.com/users/Pitt-RAS/received_events","type":"Organization","site_admin":false},"repo":{"id":67439364,"name":"iarc7_safety","full_name":"Pitt-RAS/iarc7_safety","owner":{"login":"Pitt-RAS","id":15024509,"avatar_url":"https://avatars.githubusercontent.com/u/15024509?v=3","gravatar_id":"","url":"https://api.github.com/users/Pitt-RAS","html_url":"https://github.com/Pitt-RAS","followers_url":"https://api.github.com/users/Pitt-RAS/followers","following_url":"https://api.github.com/users/Pitt-RAS/following{/other_user}","gists_url":"https://api.github.com/users/Pitt-RAS/gists{/gist_id}","starred_url":"https://api.github.com/users/Pitt-RAS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Pitt-RAS/subscriptions","organizations_url":"https://api.github.com/users/Pitt-RAS/orgs","repos_url":"https://api.github.com/users/Pitt-RAS/repos","events_url":"https://api.github.com/users/Pitt-RAS/events{/privacy}","received_events_url":"https://api.github.com/users/Pitt-RAS/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Pitt-RAS/iarc7_safety","description":null,"fork":false,"url":"https://api.github.com/repos/Pitt-RAS/iarc7_safety","forks_url":"https://api.github.com/repos/Pitt-RAS/iarc7_safety/forks","keys_url":"https://api.github.com/repos/Pitt-RAS/iarc7_safety/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Pitt-RAS/iarc7_safety/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Pitt-RAS/iarc7_safety/teams","hooks_url":"https://api.github.com/repos/Pitt-RAS/iarc7_safety/hooks","issue_events_url":"https://api.github.com/repos/Pitt-RAS/iarc7_safety/issues/events{/number}","events_url":"https://api.github.com/repos/Pitt-RAS/iarc7_safety/events","assignees_url":"https://api.github.com/repos/Pitt-RAS/iarc7_safety/assignees{/user}","branches_url":"https://api.github.com/repos/Pitt-RAS/iarc7_safety/branches{/branch}","tags_url":"https://api.github.com/repos/Pitt-RAS/iarc7_safety/tags","blobs_url":"https://api.github.com/repos/Pitt-RAS/iarc7_safety/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Pitt-RAS/iarc7_safety/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Pitt-RAS/iarc7_safety/git/refs{/sha}","trees_url":"https://api.github.com/repos/Pitt-RAS/iarc7_safety/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Pitt-RAS/iarc7_safety/statuses/{sha}","languages_url":"https://api.github.com/repos/Pitt-RAS/iarc7_safety/languages","stargazers_url":"https://api.github.com/repos/Pitt-RAS/iarc7_safety/stargazers","contributors_url":"https://api.github.com/repos/Pitt-RAS/iarc7_safety/contributors","subscribers_url":"https://api.github.com/repos/Pitt-RAS/iarc7_safety/subscribers","subscription_url":"https://api.github.com/repos/Pitt-RAS/iarc7_safety/subscription","commits_url":"https://api.github.com/repos/Pitt-RAS/iarc7_safety/commits{/sha}","git_commits_url":"https://api.github.com/repos/Pitt-RAS/iarc7_safety/git/commits{/sha}","comments_url":"https://api.github.com/repos/Pitt-RAS/iarc7_safety/comments{/number}","issue_comment_url":"https://api.github.com/repos/Pitt-RAS/iarc7_safety/issues/comments{/number}","contents_url":"https://api.github.com/repos/Pitt-RAS/iarc7_safety/contents/{+path}","compare_url":"https://api.github.com/repos/Pitt-RAS/iarc7_safety/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Pitt-RAS/iarc7_safety/merges","archive_url":"https://api.github.com/repos/Pitt-RAS/iarc7_safety/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Pitt-RAS/iarc7_safety/downloads","issues_url":"https://api.github.com/repos/Pitt-RAS/iarc7_safety/issues{/number}","pulls_url":"https://api.github.com/repos/Pitt-RAS/iarc7_safety/pulls{/number}","milestones_url":"https://api.github.com/repos/Pitt-RAS/iarc7_safety/milestones{/number}","notifications_url":"https://api.github.com/repos/Pitt-RAS/iarc7_safety/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Pitt-RAS/iarc7_safety/labels{/name}","releases_url":"https://api.github.com/repos/Pitt-RAS/iarc7_safety/releases{/id}","deployments_url":"https://api.github.com/repos/Pitt-RAS/iarc7_safety/deployments","created_at":"2016-09-05T17:30:18Z","updated_at":"2016-09-10T18:15:23Z","pushed_at":"2016-12-24T04:59:34Z","git_url":"git://github.com/Pitt-RAS/iarc7_safety.git","ssh_url":"git@github.com:Pitt-RAS/iarc7_safety.git","clone_url":"https://github.com/Pitt-RAS/iarc7_safety.git","svn_url":"https://github.com/Pitt-RAS/iarc7_safety","homepage":null,"size":29,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Pitt-RAS/iarc7_safety/pulls/2"},"html":{"href":"https://github.com/Pitt-RAS/iarc7_safety/pull/2"},"issue":{"href":"https://api.github.com/repos/Pitt-RAS/iarc7_safety/issues/2"},"comments":{"href":"https://api.github.com/repos/Pitt-RAS/iarc7_safety/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/Pitt-RAS/iarc7_safety/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/Pitt-RAS/iarc7_safety/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Pitt-RAS/iarc7_safety/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/Pitt-RAS/iarc7_safety/statuses/19c4895dd09b19f618c518a1cc46b252ecd4b6b6"}}}}
{"actor":{"display_login":"aftersomemath"}}