{"action":"created","comment":{"url":"https://api.github.com/repos/anki/cozmo-python-sdk/pulls/comments/92725803","pull_request_review_id":13246702,"id":92725803,"diff_hunk":"@@ -0,0 +1,54 @@\n+#!/usr/bin/env python3\n+\n+# Copyright (c) 2016 Anki, Inc.\n+#\n+# Licensed under the Apache License, Version 2.0 (the \"License\");\n+# you may not use this file except in compliance with the License.\n+# You may obtain a copy of the License in the file LICENSE.txt or at\n+#\n+#     http://www.apache.org/licenses/LICENSE-2.0\n+#\n+# Unless required by applicable law or agreed to in writing, software\n+# distributed under the License is distributed on an \"AS IS\" BASIS,\n+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n+# See the License for the specific language governing permissions and\n+# limitations under the License.\n+\n+'''Drive Cozmo's motors directly\n+\n+This is an example of how you can also have low-level control of Cozmo's motors\n+(wheels, lift and head) for fine-grained control and ease of controlling\n+multiple things at once.\n+'''\n+\n+import time\n+\n+import cozmo\n+\n+\n+def cozmo_program(robot: cozmo.robot.Robot):\n+    # Tell the head motor to start lowering the head (at 5 radians per second)\n+    robot.move_head(-5)\n+    # Tell the lift motor to start lowering the lift (at 5 radians per second)\n+    robot.move_lift(-5)\n+    # Tell Cozmo to drive the left wheel at 25 mmps (millimeters per second),\n+    # and the right wheel at 50 mmps (so Cozmo will drive Forwards whilst also\n+    # turning to the left\n+    robot.drive_wheels(25, 50)\n+\n+    # wait for 3 seconds\n+    time.sleep(3)\n+\n+    # Tell the head motor to start raising the head (at 5 radians per second)\n+    robot.move_head(5)\n+    # Tell the lift motor to start raising the lift (at 5 radians per second)\n+    robot.move_lift(5)\n+    # Tell Cozmo to drive the left wheel at 50 mmps (millimeters per second),\n+    # and the right wheel at -50 mmps (so Cozmo will turn on the spot to the right)\n+    robot.drive_wheels(50, -50)\n+\n+    # wait for 3 seconds","path":"examples/tutorials/01_basics/05_motors.py","position":50,"original_position":50,"commit_id":"9147950a4c4e3febec95e3808820cc8cd62b4332","original_commit_id":"9147950a4c4e3febec95e3808820cc8cd62b4332","user":{"login":"msintov","id":1221526,"avatar_url":"https://avatars.githubusercontent.com/u/1221526?v=3","gravatar_id":"","url":"https://api.github.com/users/msintov","html_url":"https://github.com/msintov","followers_url":"https://api.github.com/users/msintov/followers","following_url":"https://api.github.com/users/msintov/following{/other_user}","gists_url":"https://api.github.com/users/msintov/gists{/gist_id}","starred_url":"https://api.github.com/users/msintov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/msintov/subscriptions","organizations_url":"https://api.github.com/users/msintov/orgs","repos_url":"https://api.github.com/users/msintov/repos","events_url":"https://api.github.com/users/msintov/events{/privacy}","received_events_url":"https://api.github.com/users/msintov/received_events","type":"User","site_admin":false},"body":"For this sleep and the sleep call above, what is the purpose of the sleep? Maybe we should document why the script would sleep here?","created_at":"2016-12-15T23:48:45Z","updated_at":"2016-12-15T23:58:43Z","html_url":"https://github.com/anki/cozmo-python-sdk/pull/57#discussion_r92725803","pull_request_url":"https://api.github.com/repos/anki/cozmo-python-sdk/pulls/57","_links":{"self":{"href":"https://api.github.com/repos/anki/cozmo-python-sdk/pulls/comments/92725803"},"html":{"href":"https://github.com/anki/cozmo-python-sdk/pull/57#discussion_r92725803"},"pull_request":{"href":"https://api.github.com/repos/anki/cozmo-python-sdk/pulls/57"}}},"pull_request":{"url":"https://api.github.com/repos/anki/cozmo-python-sdk/pulls/57","id":97581296,"html_url":"https://github.com/anki/cozmo-python-sdk/pull/57","diff_url":"https://github.com/anki/cozmo-python-sdk/pull/57.diff","patch_url":"https://github.com/anki/cozmo-python-sdk/pull/57.patch","issue_url":"https://api.github.com/repos/anki/cozmo-python-sdk/issues/57","number":57,"state":"open","locked":false,"title":"COZMO-7822 Rework examples into more of a tutorial structure","user":{"login":"MarkWesleyAtAnki","id":8702077,"avatar_url":"https://avatars.githubusercontent.com/u/8702077?v=3","gravatar_id":"","url":"https://api.github.com/users/MarkWesleyAtAnki","html_url":"https://github.com/MarkWesleyAtAnki","followers_url":"https://api.github.com/users/MarkWesleyAtAnki/followers","following_url":"https://api.github.com/users/MarkWesleyAtAnki/following{/other_user}","gists_url":"https://api.github.com/users/MarkWesleyAtAnki/gists{/gist_id}","starred_url":"https://api.github.com/users/MarkWesleyAtAnki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MarkWesleyAtAnki/subscriptions","organizations_url":"https://api.github.com/users/MarkWesleyAtAnki/orgs","repos_url":"https://api.github.com/users/MarkWesleyAtAnki/repos","events_url":"https://api.github.com/users/MarkWesleyAtAnki/events{/privacy}","received_events_url":"https://api.github.com/users/MarkWesleyAtAnki/received_events","type":"User","site_admin":false},"body":"NOTE: Not ready to merge yet, just wanted to start getting some feedback on this new structure etc.","created_at":"2016-12-12T16:08:16Z","updated_at":"2016-12-15T23:58:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":"aa779e55b4a19e5bebdf947870db7508ec04bb76","assignee":{"login":"gwatts","id":334535,"avatar_url":"https://avatars.githubusercontent.com/u/334535?v=3","gravatar_id":"","url":"https://api.github.com/users/gwatts","html_url":"https://github.com/gwatts","followers_url":"https://api.github.com/users/gwatts/followers","following_url":"https://api.github.com/users/gwatts/following{/other_user}","gists_url":"https://api.github.com/users/gwatts/gists{/gist_id}","starred_url":"https://api.github.com/users/gwatts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gwatts/subscriptions","organizations_url":"https://api.github.com/users/gwatts/orgs","repos_url":"https://api.github.com/users/gwatts/repos","events_url":"https://api.github.com/users/gwatts/events{/privacy}","received_events_url":"https://api.github.com/users/gwatts/received_events","type":"User","site_admin":false},"assignees":[{"login":"gwatts","id":334535,"avatar_url":"https://avatars.githubusercontent.com/u/334535?v=3","gravatar_id":"","url":"https://api.github.com/users/gwatts","html_url":"https://github.com/gwatts","followers_url":"https://api.github.com/users/gwatts/followers","following_url":"https://api.github.com/users/gwatts/following{/other_user}","gists_url":"https://api.github.com/users/gwatts/gists{/gist_id}","starred_url":"https://api.github.com/users/gwatts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gwatts/subscriptions","organizations_url":"https://api.github.com/users/gwatts/orgs","repos_url":"https://api.github.com/users/gwatts/repos","events_url":"https://api.github.com/users/gwatts/events{/privacy}","received_events_url":"https://api.github.com/users/gwatts/received_events","type":"User","site_admin":false},{"login":"msintov","id":1221526,"avatar_url":"https://avatars.githubusercontent.com/u/1221526?v=3","gravatar_id":"","url":"https://api.github.com/users/msintov","html_url":"https://github.com/msintov","followers_url":"https://api.github.com/users/msintov/followers","following_url":"https://api.github.com/users/msintov/following{/other_user}","gists_url":"https://api.github.com/users/msintov/gists{/gist_id}","starred_url":"https://api.github.com/users/msintov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/msintov/subscriptions","organizations_url":"https://api.github.com/users/msintov/orgs","repos_url":"https://api.github.com/users/msintov/repos","events_url":"https://api.github.com/users/msintov/events{/privacy}","received_events_url":"https://api.github.com/users/msintov/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/anki/cozmo-python-sdk/pulls/57/commits","review_comments_url":"https://api.github.com/repos/anki/cozmo-python-sdk/pulls/57/comments","review_comment_url":"https://api.github.com/repos/anki/cozmo-python-sdk/pulls/comments{/number}","comments_url":"https://api.github.com/repos/anki/cozmo-python-sdk/issues/57/comments","statuses_url":"https://api.github.com/repos/anki/cozmo-python-sdk/statuses/9147950a4c4e3febec95e3808820cc8cd62b4332","head":{"label":"anki:wip/mwesley/COZMO-7822-ReworkExamplesIntoTutorials","ref":"wip/mwesley/COZMO-7822-ReworkExamplesIntoTutorials","sha":"9147950a4c4e3febec95e3808820cc8cd62b4332","user":{"login":"anki","id":5098386,"avatar_url":"https://avatars.githubusercontent.com/u/5098386?v=3","gravatar_id":"","url":"https://api.github.com/users/anki","html_url":"https://github.com/anki","followers_url":"https://api.github.com/users/anki/followers","following_url":"https://api.github.com/users/anki/following{/other_user}","gists_url":"https://api.github.com/users/anki/gists{/gist_id}","starred_url":"https://api.github.com/users/anki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anki/subscriptions","organizations_url":"https://api.github.com/users/anki/orgs","repos_url":"https://api.github.com/users/anki/repos","events_url":"https://api.github.com/users/anki/events{/privacy}","received_events_url":"https://api.github.com/users/anki/received_events","type":"Organization","site_admin":false},"repo":{"id":70877464,"name":"cozmo-python-sdk","full_name":"anki/cozmo-python-sdk","owner":{"login":"anki","id":5098386,"avatar_url":"https://avatars.githubusercontent.com/u/5098386?v=3","gravatar_id":"","url":"https://api.github.com/users/anki","html_url":"https://github.com/anki","followers_url":"https://api.github.com/users/anki/followers","following_url":"https://api.github.com/users/anki/following{/other_user}","gists_url":"https://api.github.com/users/anki/gists{/gist_id}","starred_url":"https://api.github.com/users/anki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anki/subscriptions","organizations_url":"https://api.github.com/users/anki/orgs","repos_url":"https://api.github.com/users/anki/repos","events_url":"https://api.github.com/users/anki/events{/privacy}","received_events_url":"https://api.github.com/users/anki/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/anki/cozmo-python-sdk","description":"Anki Cozmo Python SDK","fork":false,"url":"https://api.github.com/repos/anki/cozmo-python-sdk","forks_url":"https://api.github.com/repos/anki/cozmo-python-sdk/forks","keys_url":"https://api.github.com/repos/anki/cozmo-python-sdk/keys{/key_id}","collaborators_url":"https://api.github.com/repos/anki/cozmo-python-sdk/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/anki/cozmo-python-sdk/teams","hooks_url":"https://api.github.com/repos/anki/cozmo-python-sdk/hooks","issue_events_url":"https://api.github.com/repos/anki/cozmo-python-sdk/issues/events{/number}","events_url":"https://api.github.com/repos/anki/cozmo-python-sdk/events","assignees_url":"https://api.github.com/repos/anki/cozmo-python-sdk/assignees{/user}","branches_url":"https://api.github.com/repos/anki/cozmo-python-sdk/branches{/branch}","tags_url":"https://api.github.com/repos/anki/cozmo-python-sdk/tags","blobs_url":"https://api.github.com/repos/anki/cozmo-python-sdk/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/anki/cozmo-python-sdk/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/anki/cozmo-python-sdk/git/refs{/sha}","trees_url":"https://api.github.com/repos/anki/cozmo-python-sdk/git/trees{/sha}","statuses_url":"https://api.github.com/repos/anki/cozmo-python-sdk/statuses/{sha}","languages_url":"https://api.github.com/repos/anki/cozmo-python-sdk/languages","stargazers_url":"https://api.github.com/repos/anki/cozmo-python-sdk/stargazers","contributors_url":"https://api.github.com/repos/anki/cozmo-python-sdk/contributors","subscribers_url":"https://api.github.com/repos/anki/cozmo-python-sdk/subscribers","subscription_url":"https://api.github.com/repos/anki/cozmo-python-sdk/subscription","commits_url":"https://api.github.com/repos/anki/cozmo-python-sdk/commits{/sha}","git_commits_url":"https://api.github.com/repos/anki/cozmo-python-sdk/git/commits{/sha}","comments_url":"https://api.github.com/repos/anki/cozmo-python-sdk/comments{/number}","issue_comment_url":"https://api.github.com/repos/anki/cozmo-python-sdk/issues/comments{/number}","contents_url":"https://api.github.com/repos/anki/cozmo-python-sdk/contents/{+path}","compare_url":"https://api.github.com/repos/anki/cozmo-python-sdk/compare/{base}...{head}","merges_url":"https://api.github.com/repos/anki/cozmo-python-sdk/merges","archive_url":"https://api.github.com/repos/anki/cozmo-python-sdk/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/anki/cozmo-python-sdk/downloads","issues_url":"https://api.github.com/repos/anki/cozmo-python-sdk/issues{/number}","pulls_url":"https://api.github.com/repos/anki/cozmo-python-sdk/pulls{/number}","milestones_url":"https://api.github.com/repos/anki/cozmo-python-sdk/milestones{/number}","notifications_url":"https://api.github.com/repos/anki/cozmo-python-sdk/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/anki/cozmo-python-sdk/labels{/name}","releases_url":"https://api.github.com/repos/anki/cozmo-python-sdk/releases{/id}","deployments_url":"https://api.github.com/repos/anki/cozmo-python-sdk/deployments","created_at":"2016-10-14T05:38:02Z","updated_at":"2016-12-13T20:11:43Z","pushed_at":"2016-12-15T20:00:29Z","git_url":"git://github.com/anki/cozmo-python-sdk.git","ssh_url":"git@github.com:anki/cozmo-python-sdk.git","clone_url":"https://github.com/anki/cozmo-python-sdk.git","svn_url":"https://github.com/anki/cozmo-python-sdk","homepage":null,"size":507,"stargazers_count":83,"watchers_count":83,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":34,"mirror_url":null,"open_issues_count":9,"forks":34,"open_issues":9,"watchers":83,"default_branch":"master"}},"base":{"label":"anki:master","ref":"master","sha":"c6c80e2e33f37d066a927a0b64cf1ecae9ba50da","user":{"login":"anki","id":5098386,"avatar_url":"https://avatars.githubusercontent.com/u/5098386?v=3","gravatar_id":"","url":"https://api.github.com/users/anki","html_url":"https://github.com/anki","followers_url":"https://api.github.com/users/anki/followers","following_url":"https://api.github.com/users/anki/following{/other_user}","gists_url":"https://api.github.com/users/anki/gists{/gist_id}","starred_url":"https://api.github.com/users/anki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anki/subscriptions","organizations_url":"https://api.github.com/users/anki/orgs","repos_url":"https://api.github.com/users/anki/repos","events_url":"https://api.github.com/users/anki/events{/privacy}","received_events_url":"https://api.github.com/users/anki/received_events","type":"Organization","site_admin":false},"repo":{"id":70877464,"name":"cozmo-python-sdk","full_name":"anki/cozmo-python-sdk","owner":{"login":"anki","id":5098386,"avatar_url":"https://avatars.githubusercontent.com/u/5098386?v=3","gravatar_id":"","url":"https://api.github.com/users/anki","html_url":"https://github.com/anki","followers_url":"https://api.github.com/users/anki/followers","following_url":"https://api.github.com/users/anki/following{/other_user}","gists_url":"https://api.github.com/users/anki/gists{/gist_id}","starred_url":"https://api.github.com/users/anki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anki/subscriptions","organizations_url":"https://api.github.com/users/anki/orgs","repos_url":"https://api.github.com/users/anki/repos","events_url":"https://api.github.com/users/anki/events{/privacy}","received_events_url":"https://api.github.com/users/anki/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/anki/cozmo-python-sdk","description":"Anki Cozmo Python SDK","fork":false,"url":"https://api.github.com/repos/anki/cozmo-python-sdk","forks_url":"https://api.github.com/repos/anki/cozmo-python-sdk/forks","keys_url":"https://api.github.com/repos/anki/cozmo-python-sdk/keys{/key_id}","collaborators_url":"https://api.github.com/repos/anki/cozmo-python-sdk/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/anki/cozmo-python-sdk/teams","hooks_url":"https://api.github.com/repos/anki/cozmo-python-sdk/hooks","issue_events_url":"https://api.github.com/repos/anki/cozmo-python-sdk/issues/events{/number}","events_url":"https://api.github.com/repos/anki/cozmo-python-sdk/events","assignees_url":"https://api.github.com/repos/anki/cozmo-python-sdk/assignees{/user}","branches_url":"https://api.github.com/repos/anki/cozmo-python-sdk/branches{/branch}","tags_url":"https://api.github.com/repos/anki/cozmo-python-sdk/tags","blobs_url":"https://api.github.com/repos/anki/cozmo-python-sdk/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/anki/cozmo-python-sdk/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/anki/cozmo-python-sdk/git/refs{/sha}","trees_url":"https://api.github.com/repos/anki/cozmo-python-sdk/git/trees{/sha}","statuses_url":"https://api.github.com/repos/anki/cozmo-python-sdk/statuses/{sha}","languages_url":"https://api.github.com/repos/anki/cozmo-python-sdk/languages","stargazers_url":"https://api.github.com/repos/anki/cozmo-python-sdk/stargazers","contributors_url":"https://api.github.com/repos/anki/cozmo-python-sdk/contributors","subscribers_url":"https://api.github.com/repos/anki/cozmo-python-sdk/subscribers","subscription_url":"https://api.github.com/repos/anki/cozmo-python-sdk/subscription","commits_url":"https://api.github.com/repos/anki/cozmo-python-sdk/commits{/sha}","git_commits_url":"https://api.github.com/repos/anki/cozmo-python-sdk/git/commits{/sha}","comments_url":"https://api.github.com/repos/anki/cozmo-python-sdk/comments{/number}","issue_comment_url":"https://api.github.com/repos/anki/cozmo-python-sdk/issues/comments{/number}","contents_url":"https://api.github.com/repos/anki/cozmo-python-sdk/contents/{+path}","compare_url":"https://api.github.com/repos/anki/cozmo-python-sdk/compare/{base}...{head}","merges_url":"https://api.github.com/repos/anki/cozmo-python-sdk/merges","archive_url":"https://api.github.com/repos/anki/cozmo-python-sdk/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/anki/cozmo-python-sdk/downloads","issues_url":"https://api.github.com/repos/anki/cozmo-python-sdk/issues{/number}","pulls_url":"https://api.github.com/repos/anki/cozmo-python-sdk/pulls{/number}","milestones_url":"https://api.github.com/repos/anki/cozmo-python-sdk/milestones{/number}","notifications_url":"https://api.github.com/repos/anki/cozmo-python-sdk/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/anki/cozmo-python-sdk/labels{/name}","releases_url":"https://api.github.com/repos/anki/cozmo-python-sdk/releases{/id}","deployments_url":"https://api.github.com/repos/anki/cozmo-python-sdk/deployments","created_at":"2016-10-14T05:38:02Z","updated_at":"2016-12-13T20:11:43Z","pushed_at":"2016-12-15T20:00:29Z","git_url":"git://github.com/anki/cozmo-python-sdk.git","ssh_url":"git@github.com:anki/cozmo-python-sdk.git","clone_url":"https://github.com/anki/cozmo-python-sdk.git","svn_url":"https://github.com/anki/cozmo-python-sdk","homepage":null,"size":507,"stargazers_count":83,"watchers_count":83,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":34,"mirror_url":null,"open_issues_count":9,"forks":34,"open_issues":9,"watchers":83,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/anki/cozmo-python-sdk/pulls/57"},"html":{"href":"https://github.com/anki/cozmo-python-sdk/pull/57"},"issue":{"href":"https://api.github.com/repos/anki/cozmo-python-sdk/issues/57"},"comments":{"href":"https://api.github.com/repos/anki/cozmo-python-sdk/issues/57/comments"},"review_comments":{"href":"https://api.github.com/repos/anki/cozmo-python-sdk/pulls/57/comments"},"review_comment":{"href":"https://api.github.com/repos/anki/cozmo-python-sdk/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/anki/cozmo-python-sdk/pulls/57/commits"},"statuses":{"href":"https://api.github.com/repos/anki/cozmo-python-sdk/statuses/9147950a4c4e3febec95e3808820cc8cd62b4332"}}}}
{"actor":{"display_login":"msintov"}}