{"action":"created","comment":{"url":"https://api.github.com/repos/bit-bots/bitbots_lowlevel/pulls/comments/354815934","pull_request_review_id":328181266,"id":354815934,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDM1NDgxNTkzNA==","diff_hunk":"@@ -0,0 +1,122 @@\n+#!/usr/bin/env python3\n+\n+import rospy\n+from bitbots_msgs.msg import FootPressure\n+import argparse\n+import random\n+import time\n+import tkinter\n+import threading\n+\n+parser = argparse.ArgumentParser()\n+\n+parser.add_argument(\"-r\", \"--rate\", help=\"Publish rate\", dest=\"rate\", type=int, default=200)\n+parser.add_argument(\"-n\", \"--noise\", help=\"Amount of noise on the signal\", type=float, default=1e6)\n+parser.add_argument(\"-s\", \"--seed\", help=\"random seed for zero and scale\", dest=\"seed\")\n+\n+args = parser.parse_args()\n+\n+if args.seed is not None:\n+    random.seed(args.seed)\n+\n+zeroes = [2e8 * random.random() - 1e8 for i in range(8)]\n+scales = []\n+for i in range(8):\n+    if random.random() < 0.5:\n+        m = 1\n+    else:\n+        m = -1\n+    scales.append((random.random() * 2e7 + 1e7) * m)  # random value between 1e7 and 3e7 or -1e7 and -3e7\n+\n+force_values = [0] * 8\n+\n+\n+# this is ugly but I dont have patience to make it properly\n+\n+\n+def update_force_0(force):\n+    force_values[0] = float(force)\n+\n+\n+def update_force_1(force):\n+    force_values[1] = float(force)\n+\n+\n+def update_force_2(force):\n+    force_values[2] = float(force)\n+\n+\n+def update_force_3(force):\n+    force_values[3] = float(force)\n+\n+\n+def update_force_4(force):\n+    force_values[4] = float(force)\n+\n+\n+def update_force_5(force):\n+    force_values[5] = float(force)\n+\n+\n+def update_force_6(force):\n+    force_values[6] = float(force)\n+\n+\n+def update_force_7(force):\n+    force_values[7] = float(force)\n+","path":"bitbots_ros_control/scripts/foot_pressure_tester.py","position":67,"original_position":67,"commit_id":"2ea969b6c37d9bb1db4c76e104bfc109556f5221","original_commit_id":"2ea969b6c37d9bb1db4c76e104bfc109556f5221","user":{"login":"SammyRamone","id":11520148,"node_id":"MDQ6VXNlcjExNTIwMTQ4","avatar_url":"https://avatars2.githubusercontent.com/u/11520148?v=4","gravatar_id":"","url":"https://api.github.com/users/SammyRamone","html_url":"https://github.com/SammyRamone","followers_url":"https://api.github.com/users/SammyRamone/followers","following_url":"https://api.github.com/users/SammyRamone/following{/other_user}","gists_url":"https://api.github.com/users/SammyRamone/gists{/gist_id}","starred_url":"https://api.github.com/users/SammyRamone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SammyRamone/subscriptions","organizations_url":"https://api.github.com/users/SammyRamone/orgs","repos_url":"https://api.github.com/users/SammyRamone/repos","events_url":"https://api.github.com/users/SammyRamone/events{/privacy}","received_events_url":"https://api.github.com/users/SammyRamone/received_events","type":"User","site_admin":false},"body":"cant you just add a paramter for the number and then call it with the \"i\"","created_at":"2019-12-06T12:47:05Z","updated_at":"2019-12-06T12:47:06Z","html_url":"https://github.com/bit-bots/bitbots_lowlevel/pull/48#discussion_r354815934","pull_request_url":"https://api.github.com/repos/bit-bots/bitbots_lowlevel/pulls/48","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/bit-bots/bitbots_lowlevel/pulls/comments/354815934"},"html":{"href":"https://github.com/bit-bots/bitbots_lowlevel/pull/48#discussion_r354815934"},"pull_request":{"href":"https://api.github.com/repos/bit-bots/bitbots_lowlevel/pulls/48"}},"in_reply_to_id":354811770},"pull_request":{"url":"https://api.github.com/repos/bit-bots/bitbots_lowlevel/pulls/48","id":349918845,"node_id":"MDExOlB1bGxSZXF1ZXN0MzQ5OTE4ODQ1","html_url":"https://github.com/bit-bots/bitbots_lowlevel/pull/48","diff_url":"https://github.com/bit-bots/bitbots_lowlevel/pull/48.diff","patch_url":"https://github.com/bit-bots/bitbots_lowlevel/pull/48.patch","issue_url":"https://api.github.com/repos/bit-bots/bitbots_lowlevel/issues/48","number":48,"state":"open","locked":false,"title":"lowlevel: add script to generate fake foot pressure values","user":{"login":"jgueldenstein","id":31923619,"node_id":"MDQ6VXNlcjMxOTIzNjE5","avatar_url":"https://avatars1.githubusercontent.com/u/31923619?v=4","gravatar_id":"","url":"https://api.github.com/users/jgueldenstein","html_url":"https://github.com/jgueldenstein","followers_url":"https://api.github.com/users/jgueldenstein/followers","following_url":"https://api.github.com/users/jgueldenstein/following{/other_user}","gists_url":"https://api.github.com/users/jgueldenstein/gists{/gist_id}","starred_url":"https://api.github.com/users/jgueldenstein/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jgueldenstein/subscriptions","organizations_url":"https://api.github.com/users/jgueldenstein/orgs","repos_url":"https://api.github.com/users/jgueldenstein/repos","events_url":"https://api.github.com/users/jgueldenstein/events{/privacy}","received_events_url":"https://api.github.com/users/jgueldenstein/received_events","type":"User","site_admin":false},"body":"Adds a gui to generate fake data for foot pressure sensors.\r\nThe same zero and scale values may be reproduced by using the same random seed.\r\n\r\n## Proposed changes\r\nThis tool will be useful in evaluating the pressure_converter.py and foot_pressure_calibration.py and the c++ versions without a robot.\r\n\r\n\r\n## Necessary checks\r\n- [x] Update package version\r\n- [x] Run linters\r\n- [x] Run `catkin build`\r\n- [x] Write documentation\r\n- [x] Test on your machine\r\n- [ ] ~~Test on the robot~~\r\n\r\n","created_at":"2019-12-06T12:18:23Z","updated_at":"2019-12-06T12:47:06Z","closed_at":null,"merged_at":null,"merge_commit_sha":"556f172e8627ecf1f4c53986cf48fa43b0e59e5e","assignee":null,"assignees":[],"requested_reviewers":[{"login":"SammyRamone","id":11520148,"node_id":"MDQ6VXNlcjExNTIwMTQ4","avatar_url":"https://avatars2.githubusercontent.com/u/11520148?v=4","gravatar_id":"","url":"https://api.github.com/users/SammyRamone","html_url":"https://github.com/SammyRamone","followers_url":"https://api.github.com/users/SammyRamone/followers","following_url":"https://api.github.com/users/SammyRamone/following{/other_user}","gists_url":"https://api.github.com/users/SammyRamone/gists{/gist_id}","starred_url":"https://api.github.com/users/SammyRamone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SammyRamone/subscriptions","organizations_url":"https://api.github.com/users/SammyRamone/orgs","repos_url":"https://api.github.com/users/SammyRamone/repos","events_url":"https://api.github.com/users/SammyRamone/events{/privacy}","received_events_url":"https://api.github.com/users/SammyRamone/received_events","type":"User","site_admin":false},{"login":"timonegk","id":25013222,"node_id":"MDQ6VXNlcjI1MDEzMjIy","avatar_url":"https://avatars3.githubusercontent.com/u/25013222?v=4","gravatar_id":"","url":"https://api.github.com/users/timonegk","html_url":"https://github.com/timonegk","followers_url":"https://api.github.com/users/timonegk/followers","following_url":"https://api.github.com/users/timonegk/following{/other_user}","gists_url":"https://api.github.com/users/timonegk/gists{/gist_id}","starred_url":"https://api.github.com/users/timonegk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timonegk/subscriptions","organizations_url":"https://api.github.com/users/timonegk/orgs","repos_url":"https://api.github.com/users/timonegk/repos","events_url":"https://api.github.com/users/timonegk/events{/privacy}","received_events_url":"https://api.github.com/users/timonegk/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/bit-bots/bitbots_lowlevel/pulls/48/commits","review_comments_url":"https://api.github.com/repos/bit-bots/bitbots_lowlevel/pulls/48/comments","review_comment_url":"https://api.github.com/repos/bit-bots/bitbots_lowlevel/pulls/comments{/number}","comments_url":"https://api.github.com/repos/bit-bots/bitbots_lowlevel/issues/48/comments","statuses_url":"https://api.github.com/repos/bit-bots/bitbots_lowlevel/statuses/2ea969b6c37d9bb1db4c76e104bfc109556f5221","head":{"label":"bit-bots:feature/foot_pressure_test_script","ref":"feature/foot_pressure_test_script","sha":"2ea969b6c37d9bb1db4c76e104bfc109556f5221","user":{"login":"bit-bots","id":11520240,"node_id":"MDEyOk9yZ2FuaXphdGlvbjExNTIwMjQw","avatar_url":"https://avatars2.githubusercontent.com/u/11520240?v=4","gravatar_id":"","url":"https://api.github.com/users/bit-bots","html_url":"https://github.com/bit-bots","followers_url":"https://api.github.com/users/bit-bots/followers","following_url":"https://api.github.com/users/bit-bots/following{/other_user}","gists_url":"https://api.github.com/users/bit-bots/gists{/gist_id}","starred_url":"https://api.github.com/users/bit-bots/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bit-bots/subscriptions","organizations_url":"https://api.github.com/users/bit-bots/orgs","repos_url":"https://api.github.com/users/bit-bots/repos","events_url":"https://api.github.com/users/bit-bots/events{/privacy}","received_events_url":"https://api.github.com/users/bit-bots/received_events","type":"Organization","site_admin":false},"repo":{"id":75286789,"node_id":"MDEwOlJlcG9zaXRvcnk3NTI4Njc4OQ==","name":"bitbots_lowlevel","full_name":"bit-bots/bitbots_lowlevel","private":false,"owner":{"login":"bit-bots","id":11520240,"node_id":"MDEyOk9yZ2FuaXphdGlvbjExNTIwMjQw","avatar_url":"https://avatars2.githubusercontent.com/u/11520240?v=4","gravatar_id":"","url":"https://api.github.com/users/bit-bots","html_url":"https://github.com/bit-bots","followers_url":"https://api.github.com/users/bit-bots/followers","following_url":"https://api.github.com/users/bit-bots/following{/other_user}","gists_url":"https://api.github.com/users/bit-bots/gists{/gist_id}","starred_url":"https://api.github.com/users/bit-bots/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bit-bots/subscriptions","organizations_url":"https://api.github.com/users/bit-bots/orgs","repos_url":"https://api.github.com/users/bit-bots/repos","events_url":"https://api.github.com/users/bit-bots/events{/privacy}","received_events_url":"https://api.github.com/users/bit-bots/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/bit-bots/bitbots_lowlevel","description":null,"fork":false,"url":"https://api.github.com/repos/bit-bots/bitbots_lowlevel","forks_url":"https://api.github.com/repos/bit-bots/bitbots_lowlevel/forks","keys_url":"https://api.github.com/repos/bit-bots/bitbots_lowlevel/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bit-bots/bitbots_lowlevel/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bit-bots/bitbots_lowlevel/teams","hooks_url":"https://api.github.com/repos/bit-bots/bitbots_lowlevel/hooks","issue_events_url":"https://api.github.com/repos/bit-bots/bitbots_lowlevel/issues/events{/number}","events_url":"https://api.github.com/repos/bit-bots/bitbots_lowlevel/events","assignees_url":"https://api.github.com/repos/bit-bots/bitbots_lowlevel/assignees{/user}","branches_url":"https://api.github.com/repos/bit-bots/bitbots_lowlevel/branches{/branch}","tags_url":"https://api.github.com/repos/bit-bots/bitbots_lowlevel/tags","blobs_url":"https://api.github.com/repos/bit-bots/bitbots_lowlevel/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bit-bots/bitbots_lowlevel/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bit-bots/bitbots_lowlevel/git/refs{/sha}","trees_url":"https://api.github.com/repos/bit-bots/bitbots_lowlevel/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bit-bots/bitbots_lowlevel/statuses/{sha}","languages_url":"https://api.github.com/repos/bit-bots/bitbots_lowlevel/languages","stargazers_url":"https://api.github.com/repos/bit-bots/bitbots_lowlevel/stargazers","contributors_url":"https://api.github.com/repos/bit-bots/bitbots_lowlevel/contributors","subscribers_url":"https://api.github.com/repos/bit-bots/bitbots_lowlevel/subscribers","subscription_url":"https://api.github.com/repos/bit-bots/bitbots_lowlevel/subscription","commits_url":"https://api.github.com/repos/bit-bots/bitbots_lowlevel/commits{/sha}","git_commits_url":"https://api.github.com/repos/bit-bots/bitbots_lowlevel/git/commits{/sha}","comments_url":"https://api.github.com/repos/bit-bots/bitbots_lowlevel/comments{/number}","issue_comment_url":"https://api.github.com/repos/bit-bots/bitbots_lowlevel/issues/comments{/number}","contents_url":"https://api.github.com/repos/bit-bots/bitbots_lowlevel/contents/{+path}","compare_url":"https://api.github.com/repos/bit-bots/bitbots_lowlevel/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bit-bots/bitbots_lowlevel/merges","archive_url":"https://api.github.com/repos/bit-bots/bitbots_lowlevel/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bit-bots/bitbots_lowlevel/downloads","issues_url":"https://api.github.com/repos/bit-bots/bitbots_lowlevel/issues{/number}","pulls_url":"https://api.github.com/repos/bit-bots/bitbots_lowlevel/pulls{/number}","milestones_url":"https://api.github.com/repos/bit-bots/bitbots_lowlevel/milestones{/number}","notifications_url":"https://api.github.com/repos/bit-bots/bitbots_lowlevel/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bit-bots/bitbots_lowlevel/labels{/name}","releases_url":"https://api.github.com/repos/bit-bots/bitbots_lowlevel/releases{/id}","deployments_url":"https://api.github.com/repos/bit-bots/bitbots_lowlevel/deployments","created_at":"2016-12-01T11:36:00Z","updated_at":"2019-11-25T17:10:07Z","pushed_at":"2019-12-06T12:32:49Z","git_url":"git://github.com/bit-bots/bitbots_lowlevel.git","ssh_url":"git@github.com:bit-bots/bitbots_lowlevel.git","clone_url":"https://github.com/bit-bots/bitbots_lowlevel.git","svn_url":"https://github.com/bit-bots/bitbots_lowlevel","homepage":null,"size":1639,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":9,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":1,"open_issues":9,"watchers":0,"default_branch":"master"}},"base":{"label":"bit-bots:master","ref":"master","sha":"ebd161492689acf450754efc964aca8c06a64098","user":{"login":"bit-bots","id":11520240,"node_id":"MDEyOk9yZ2FuaXphdGlvbjExNTIwMjQw","avatar_url":"https://avatars2.githubusercontent.com/u/11520240?v=4","gravatar_id":"","url":"https://api.github.com/users/bit-bots","html_url":"https://github.com/bit-bots","followers_url":"https://api.github.com/users/bit-bots/followers","following_url":"https://api.github.com/users/bit-bots/following{/other_user}","gists_url":"https://api.github.com/users/bit-bots/gists{/gist_id}","starred_url":"https://api.github.com/users/bit-bots/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bit-bots/subscriptions","organizations_url":"https://api.github.com/users/bit-bots/orgs","repos_url":"https://api.github.com/users/bit-bots/repos","events_url":"https://api.github.com/users/bit-bots/events{/privacy}","received_events_url":"https://api.github.com/users/bit-bots/received_events","type":"Organization","site_admin":false},"repo":{"id":75286789,"node_id":"MDEwOlJlcG9zaXRvcnk3NTI4Njc4OQ==","name":"bitbots_lowlevel","full_name":"bit-bots/bitbots_lowlevel","private":false,"owner":{"login":"bit-bots","id":11520240,"node_id":"MDEyOk9yZ2FuaXphdGlvbjExNTIwMjQw","avatar_url":"https://avatars2.githubusercontent.com/u/11520240?v=4","gravatar_id":"","url":"https://api.github.com/users/bit-bots","html_url":"https://github.com/bit-bots","followers_url":"https://api.github.com/users/bit-bots/followers","following_url":"https://api.github.com/users/bit-bots/following{/other_user}","gists_url":"https://api.github.com/users/bit-bots/gists{/gist_id}","starred_url":"https://api.github.com/users/bit-bots/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bit-bots/subscriptions","organizations_url":"https://api.github.com/users/bit-bots/orgs","repos_url":"https://api.github.com/users/bit-bots/repos","events_url":"https://api.github.com/users/bit-bots/events{/privacy}","received_events_url":"https://api.github.com/users/bit-bots/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/bit-bots/bitbots_lowlevel","description":null,"fork":false,"url":"https://api.github.com/repos/bit-bots/bitbots_lowlevel","forks_url":"https://api.github.com/repos/bit-bots/bitbots_lowlevel/forks","keys_url":"https://api.github.com/repos/bit-bots/bitbots_lowlevel/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bit-bots/bitbots_lowlevel/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bit-bots/bitbots_lowlevel/teams","hooks_url":"https://api.github.com/repos/bit-bots/bitbots_lowlevel/hooks","issue_events_url":"https://api.github.com/repos/bit-bots/bitbots_lowlevel/issues/events{/number}","events_url":"https://api.github.com/repos/bit-bots/bitbots_lowlevel/events","assignees_url":"https://api.github.com/repos/bit-bots/bitbots_lowlevel/assignees{/user}","branches_url":"https://api.github.com/repos/bit-bots/bitbots_lowlevel/branches{/branch}","tags_url":"https://api.github.com/repos/bit-bots/bitbots_lowlevel/tags","blobs_url":"https://api.github.com/repos/bit-bots/bitbots_lowlevel/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bit-bots/bitbots_lowlevel/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bit-bots/bitbots_lowlevel/git/refs{/sha}","trees_url":"https://api.github.com/repos/bit-bots/bitbots_lowlevel/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bit-bots/bitbots_lowlevel/statuses/{sha}","languages_url":"https://api.github.com/repos/bit-bots/bitbots_lowlevel/languages","stargazers_url":"https://api.github.com/repos/bit-bots/bitbots_lowlevel/stargazers","contributors_url":"https://api.github.com/repos/bit-bots/bitbots_lowlevel/contributors","subscribers_url":"https://api.github.com/repos/bit-bots/bitbots_lowlevel/subscribers","subscription_url":"https://api.github.com/repos/bit-bots/bitbots_lowlevel/subscription","commits_url":"https://api.github.com/repos/bit-bots/bitbots_lowlevel/commits{/sha}","git_commits_url":"https://api.github.com/repos/bit-bots/bitbots_lowlevel/git/commits{/sha}","comments_url":"https://api.github.com/repos/bit-bots/bitbots_lowlevel/comments{/number}","issue_comment_url":"https://api.github.com/repos/bit-bots/bitbots_lowlevel/issues/comments{/number}","contents_url":"https://api.github.com/repos/bit-bots/bitbots_lowlevel/contents/{+path}","compare_url":"https://api.github.com/repos/bit-bots/bitbots_lowlevel/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bit-bots/bitbots_lowlevel/merges","archive_url":"https://api.github.com/repos/bit-bots/bitbots_lowlevel/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bit-bots/bitbots_lowlevel/downloads","issues_url":"https://api.github.com/repos/bit-bots/bitbots_lowlevel/issues{/number}","pulls_url":"https://api.github.com/repos/bit-bots/bitbots_lowlevel/pulls{/number}","milestones_url":"https://api.github.com/repos/bit-bots/bitbots_lowlevel/milestones{/number}","notifications_url":"https://api.github.com/repos/bit-bots/bitbots_lowlevel/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bit-bots/bitbots_lowlevel/labels{/name}","releases_url":"https://api.github.com/repos/bit-bots/bitbots_lowlevel/releases{/id}","deployments_url":"https://api.github.com/repos/bit-bots/bitbots_lowlevel/deployments","created_at":"2016-12-01T11:36:00Z","updated_at":"2019-11-25T17:10:07Z","pushed_at":"2019-12-06T12:32:49Z","git_url":"git://github.com/bit-bots/bitbots_lowlevel.git","ssh_url":"git@github.com:bit-bots/bitbots_lowlevel.git","clone_url":"https://github.com/bit-bots/bitbots_lowlevel.git","svn_url":"https://github.com/bit-bots/bitbots_lowlevel","homepage":null,"size":1639,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":9,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":1,"open_issues":9,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/bit-bots/bitbots_lowlevel/pulls/48"},"html":{"href":"https://github.com/bit-bots/bitbots_lowlevel/pull/48"},"issue":{"href":"https://api.github.com/repos/bit-bots/bitbots_lowlevel/issues/48"},"comments":{"href":"https://api.github.com/repos/bit-bots/bitbots_lowlevel/issues/48/comments"},"review_comments":{"href":"https://api.github.com/repos/bit-bots/bitbots_lowlevel/pulls/48/comments"},"review_comment":{"href":"https://api.github.com/repos/bit-bots/bitbots_lowlevel/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/bit-bots/bitbots_lowlevel/pulls/48/commits"},"statuses":{"href":"https://api.github.com/repos/bit-bots/bitbots_lowlevel/statuses/2ea969b6c37d9bb1db4c76e104bfc109556f5221"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"SammyRamone"}}