{"action":"opened","number":157,"pull_request":{"url":"https://api.github.com/repos/OpenAgInitiative/openag_brain/pulls/157","id":110965325,"html_url":"https://github.com/OpenAgInitiative/openag_brain/pull/157","diff_url":"https://github.com/OpenAgInitiative/openag_brain/pull/157.diff","patch_url":"https://github.com/OpenAgInitiative/openag_brain/pull/157.patch","issue_url":"https://api.github.com/repos/OpenAgInitiative/openag_brain/issues/157","number":157,"state":"open","locked":false,"title":"Update build setup to allow standalone distributions","user":{"login":"gordonbrander","id":58421,"avatar_url":"https://avatars3.githubusercontent.com/u/58421?v=3","gravatar_id":"","url":"https://api.github.com/users/gordonbrander","html_url":"https://github.com/gordonbrander","followers_url":"https://api.github.com/users/gordonbrander/followers","following_url":"https://api.github.com/users/gordonbrander/following{/other_user}","gists_url":"https://api.github.com/users/gordonbrander/gists{/gist_id}","starred_url":"https://api.github.com/users/gordonbrander/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gordonbrander/subscriptions","organizations_url":"https://api.github.com/users/gordonbrander/orgs","repos_url":"https://api.github.com/users/gordonbrander/repos","events_url":"https://api.github.com/users/gordonbrander/events{/privacy}","received_events_url":"https://api.github.com/users/gordonbrander/received_events","type":"User","site_admin":false},"body":"This PR changes a few things to allow for the creation of standalone distributions:\r\n\r\n- Move `src/openag_brain/software_modules` to `nodes`, per ROS convention\r\n- Add macros to `CMakeLists.txt` to build `nodes`, `scripts`, `launch` and other supporting directories into standalone install.\r\n- Add `openag_brain.commands` subpackage to `setup.py` to assure it is copied during install build.\r\n\r\n## Motivation\r\n\r\nFixing our CMake build process will allow us to build standalone distributions. This means we can create a distribution, zip it up and add it to Github as a dist. Users will be able to install it on the Pi without having to build themselves. This also gives us the ability to do real releases, not just of the source, but of the distribution. We can also publish releases to `apt` package repo.\r\n\r\nWith this foundation, we should be able to create a trivial install script that simply `apt-get install`s CouchDB, ROS and openag_brain.\r\n\r\n## Usage\r\n\r\nTo create a distribution:\r\n\r\n```bash\r\ncd ~/catkin_ws\r\ncatkin_make install\r\n```\r\n\r\nA directory called `~/catkin_ws/install` will be created. Inside will be the full release of openag_brain, along with all of its dependencies and libraries. To run it, simply `source ~/catkin_ws/install/setup.bash` and then `rosrun openag_brain personal_food_computer_v2.launch`.\r\n\r\nAdditional background: http://wiki.openag.media.mit.edu/users/gordonb/build_tooling","created_at":"2017-03-15T23:37:12Z","updated_at":"2017-03-15T23:37:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/OpenAgInitiative/openag_brain/pulls/157/commits","review_comments_url":"https://api.github.com/repos/OpenAgInitiative/openag_brain/pulls/157/comments","review_comment_url":"https://api.github.com/repos/OpenAgInitiative/openag_brain/pulls/comments{/number}","comments_url":"https://api.github.com/repos/OpenAgInitiative/openag_brain/issues/157/comments","statuses_url":"https://api.github.com/repos/OpenAgInitiative/openag_brain/statuses/83a750033ea4baea9958414ba59ee2519bc3fc26","head":{"label":"gordonbrander:standalone_install_clean","ref":"standalone_install_clean","sha":"83a750033ea4baea9958414ba59ee2519bc3fc26","user":{"login":"gordonbrander","id":58421,"avatar_url":"https://avatars3.githubusercontent.com/u/58421?v=3","gravatar_id":"","url":"https://api.github.com/users/gordonbrander","html_url":"https://github.com/gordonbrander","followers_url":"https://api.github.com/users/gordonbrander/followers","following_url":"https://api.github.com/users/gordonbrander/following{/other_user}","gists_url":"https://api.github.com/users/gordonbrander/gists{/gist_id}","starred_url":"https://api.github.com/users/gordonbrander/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gordonbrander/subscriptions","organizations_url":"https://api.github.com/users/gordonbrander/orgs","repos_url":"https://api.github.com/users/gordonbrander/repos","events_url":"https://api.github.com/users/gordonbrander/events{/privacy}","received_events_url":"https://api.github.com/users/gordonbrander/received_events","type":"User","site_admin":false},"repo":{"id":59759498,"name":"openag_brain","full_name":"gordonbrander/openag_brain","owner":{"login":"gordonbrander","id":58421,"avatar_url":"https://avatars3.githubusercontent.com/u/58421?v=3","gravatar_id":"","url":"https://api.github.com/users/gordonbrander","html_url":"https://github.com/gordonbrander","followers_url":"https://api.github.com/users/gordonbrander/followers","following_url":"https://api.github.com/users/gordonbrander/following{/other_user}","gists_url":"https://api.github.com/users/gordonbrander/gists{/gist_id}","starred_url":"https://api.github.com/users/gordonbrander/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gordonbrander/subscriptions","organizations_url":"https://api.github.com/users/gordonbrander/orgs","repos_url":"https://api.github.com/users/gordonbrander/repos","events_url":"https://api.github.com/users/gordonbrander/events{/privacy}","received_events_url":"https://api.github.com/users/gordonbrander/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/gordonbrander/openag_brain","description":"Framework for software modules in an OpenAg food computer","fork":true,"url":"https://api.github.com/repos/gordonbrander/openag_brain","forks_url":"https://api.github.com/repos/gordonbrander/openag_brain/forks","keys_url":"https://api.github.com/repos/gordonbrander/openag_brain/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gordonbrander/openag_brain/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gordonbrander/openag_brain/teams","hooks_url":"https://api.github.com/repos/gordonbrander/openag_brain/hooks","issue_events_url":"https://api.github.com/repos/gordonbrander/openag_brain/issues/events{/number}","events_url":"https://api.github.com/repos/gordonbrander/openag_brain/events","assignees_url":"https://api.github.com/repos/gordonbrander/openag_brain/assignees{/user}","branches_url":"https://api.github.com/repos/gordonbrander/openag_brain/branches{/branch}","tags_url":"https://api.github.com/repos/gordonbrander/openag_brain/tags","blobs_url":"https://api.github.com/repos/gordonbrander/openag_brain/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gordonbrander/openag_brain/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gordonbrander/openag_brain/git/refs{/sha}","trees_url":"https://api.github.com/repos/gordonbrander/openag_brain/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gordonbrander/openag_brain/statuses/{sha}","languages_url":"https://api.github.com/repos/gordonbrander/openag_brain/languages","stargazers_url":"https://api.github.com/repos/gordonbrander/openag_brain/stargazers","contributors_url":"https://api.github.com/repos/gordonbrander/openag_brain/contributors","subscribers_url":"https://api.github.com/repos/gordonbrander/openag_brain/subscribers","subscription_url":"https://api.github.com/repos/gordonbrander/openag_brain/subscription","commits_url":"https://api.github.com/repos/gordonbrander/openag_brain/commits{/sha}","git_commits_url":"https://api.github.com/repos/gordonbrander/openag_brain/git/commits{/sha}","comments_url":"https://api.github.com/repos/gordonbrander/openag_brain/comments{/number}","issue_comment_url":"https://api.github.com/repos/gordonbrander/openag_brain/issues/comments{/number}","contents_url":"https://api.github.com/repos/gordonbrander/openag_brain/contents/{+path}","compare_url":"https://api.github.com/repos/gordonbrander/openag_brain/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gordonbrander/openag_brain/merges","archive_url":"https://api.github.com/repos/gordonbrander/openag_brain/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gordonbrander/openag_brain/downloads","issues_url":"https://api.github.com/repos/gordonbrander/openag_brain/issues{/number}","pulls_url":"https://api.github.com/repos/gordonbrander/openag_brain/pulls{/number}","milestones_url":"https://api.github.com/repos/gordonbrander/openag_brain/milestones{/number}","notifications_url":"https://api.github.com/repos/gordonbrander/openag_brain/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gordonbrander/openag_brain/labels{/name}","releases_url":"https://api.github.com/repos/gordonbrander/openag_brain/releases{/id}","deployments_url":"https://api.github.com/repos/gordonbrander/openag_brain/deployments","created_at":"2016-05-26T15:01:56Z","updated_at":"2016-05-26T15:01:57Z","pushed_at":"2017-03-15T23:29:32Z","git_url":"git://github.com/gordonbrander/openag_brain.git","ssh_url":"git@github.com:gordonbrander/openag_brain.git","clone_url":"https://github.com/gordonbrander/openag_brain.git","svn_url":"https://github.com/gordonbrander/openag_brain","homepage":"","size":554,"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":"OpenAgInitiative:master","ref":"master","sha":"74a18808377fb0bdb6e838b861e9841c9a6773f2","user":{"login":"OpenAgInitiative","id":8797566,"avatar_url":"https://avatars0.githubusercontent.com/u/8797566?v=3","gravatar_id":"","url":"https://api.github.com/users/OpenAgInitiative","html_url":"https://github.com/OpenAgInitiative","followers_url":"https://api.github.com/users/OpenAgInitiative/followers","following_url":"https://api.github.com/users/OpenAgInitiative/following{/other_user}","gists_url":"https://api.github.com/users/OpenAgInitiative/gists{/gist_id}","starred_url":"https://api.github.com/users/OpenAgInitiative/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OpenAgInitiative/subscriptions","organizations_url":"https://api.github.com/users/OpenAgInitiative/orgs","repos_url":"https://api.github.com/users/OpenAgInitiative/repos","events_url":"https://api.github.com/users/OpenAgInitiative/events{/privacy}","received_events_url":"https://api.github.com/users/OpenAgInitiative/received_events","type":"Organization","site_admin":false},"repo":{"id":54835642,"name":"openag_brain","full_name":"OpenAgInitiative/openag_brain","owner":{"login":"OpenAgInitiative","id":8797566,"avatar_url":"https://avatars0.githubusercontent.com/u/8797566?v=3","gravatar_id":"","url":"https://api.github.com/users/OpenAgInitiative","html_url":"https://github.com/OpenAgInitiative","followers_url":"https://api.github.com/users/OpenAgInitiative/followers","following_url":"https://api.github.com/users/OpenAgInitiative/following{/other_user}","gists_url":"https://api.github.com/users/OpenAgInitiative/gists{/gist_id}","starred_url":"https://api.github.com/users/OpenAgInitiative/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OpenAgInitiative/subscriptions","organizations_url":"https://api.github.com/users/OpenAgInitiative/orgs","repos_url":"https://api.github.com/users/OpenAgInitiative/repos","events_url":"https://api.github.com/users/OpenAgInitiative/events{/privacy}","received_events_url":"https://api.github.com/users/OpenAgInitiative/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/OpenAgInitiative/openag_brain","description":"ROS package for controlling an OpenAg food computer","fork":false,"url":"https://api.github.com/repos/OpenAgInitiative/openag_brain","forks_url":"https://api.github.com/repos/OpenAgInitiative/openag_brain/forks","keys_url":"https://api.github.com/repos/OpenAgInitiative/openag_brain/keys{/key_id}","collaborators_url":"https://api.github.com/repos/OpenAgInitiative/openag_brain/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/OpenAgInitiative/openag_brain/teams","hooks_url":"https://api.github.com/repos/OpenAgInitiative/openag_brain/hooks","issue_events_url":"https://api.github.com/repos/OpenAgInitiative/openag_brain/issues/events{/number}","events_url":"https://api.github.com/repos/OpenAgInitiative/openag_brain/events","assignees_url":"https://api.github.com/repos/OpenAgInitiative/openag_brain/assignees{/user}","branches_url":"https://api.github.com/repos/OpenAgInitiative/openag_brain/branches{/branch}","tags_url":"https://api.github.com/repos/OpenAgInitiative/openag_brain/tags","blobs_url":"https://api.github.com/repos/OpenAgInitiative/openag_brain/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/OpenAgInitiative/openag_brain/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/OpenAgInitiative/openag_brain/git/refs{/sha}","trees_url":"https://api.github.com/repos/OpenAgInitiative/openag_brain/git/trees{/sha}","statuses_url":"https://api.github.com/repos/OpenAgInitiative/openag_brain/statuses/{sha}","languages_url":"https://api.github.com/repos/OpenAgInitiative/openag_brain/languages","stargazers_url":"https://api.github.com/repos/OpenAgInitiative/openag_brain/stargazers","contributors_url":"https://api.github.com/repos/OpenAgInitiative/openag_brain/contributors","subscribers_url":"https://api.github.com/repos/OpenAgInitiative/openag_brain/subscribers","subscription_url":"https://api.github.com/repos/OpenAgInitiative/openag_brain/subscription","commits_url":"https://api.github.com/repos/OpenAgInitiative/openag_brain/commits{/sha}","git_commits_url":"https://api.github.com/repos/OpenAgInitiative/openag_brain/git/commits{/sha}","comments_url":"https://api.github.com/repos/OpenAgInitiative/openag_brain/comments{/number}","issue_comment_url":"https://api.github.com/repos/OpenAgInitiative/openag_brain/issues/comments{/number}","contents_url":"https://api.github.com/repos/OpenAgInitiative/openag_brain/contents/{+path}","compare_url":"https://api.github.com/repos/OpenAgInitiative/openag_brain/compare/{base}...{head}","merges_url":"https://api.github.com/repos/OpenAgInitiative/openag_brain/merges","archive_url":"https://api.github.com/repos/OpenAgInitiative/openag_brain/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/OpenAgInitiative/openag_brain/downloads","issues_url":"https://api.github.com/repos/OpenAgInitiative/openag_brain/issues{/number}","pulls_url":"https://api.github.com/repos/OpenAgInitiative/openag_brain/pulls{/number}","milestones_url":"https://api.github.com/repos/OpenAgInitiative/openag_brain/milestones{/number}","notifications_url":"https://api.github.com/repos/OpenAgInitiative/openag_brain/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/OpenAgInitiative/openag_brain/labels{/name}","releases_url":"https://api.github.com/repos/OpenAgInitiative/openag_brain/releases{/id}","deployments_url":"https://api.github.com/repos/OpenAgInitiative/openag_brain/deployments","created_at":"2016-03-27T15:44:05Z","updated_at":"2017-03-14T20:57:34Z","pushed_at":"2017-03-14T16:57:59Z","git_url":"git://github.com/OpenAgInitiative/openag_brain.git","ssh_url":"git@github.com:OpenAgInitiative/openag_brain.git","clone_url":"https://github.com/OpenAgInitiative/openag_brain.git","svn_url":"https://github.com/OpenAgInitiative/openag_brain","homepage":"","size":712,"stargazers_count":82,"watchers_count":82,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":23,"mirror_url":null,"open_issues_count":20,"forks":23,"open_issues":20,"watchers":82,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/OpenAgInitiative/openag_brain/pulls/157"},"html":{"href":"https://github.com/OpenAgInitiative/openag_brain/pull/157"},"issue":{"href":"https://api.github.com/repos/OpenAgInitiative/openag_brain/issues/157"},"comments":{"href":"https://api.github.com/repos/OpenAgInitiative/openag_brain/issues/157/comments"},"review_comments":{"href":"https://api.github.com/repos/OpenAgInitiative/openag_brain/pulls/157/comments"},"review_comment":{"href":"https://api.github.com/repos/OpenAgInitiative/openag_brain/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/OpenAgInitiative/openag_brain/pulls/157/commits"},"statuses":{"href":"https://api.github.com/repos/OpenAgInitiative/openag_brain/statuses/83a750033ea4baea9958414ba59ee2519bc3fc26"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":4,"additions":34,"deletions":1,"changed_files":17}}
{"actor":{"display_login":"gordonbrander"}}