{"action":"created","comment":{"url":"https://api.github.com/repos/qreal/qreal/pulls/comments/208878412","pull_request_review_id":144764646,"id":208878412,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwODg3ODQxMg==","diff_hunk":"@@ -0,0 +1,123 @@\n+/* Copyright 2017 Dmitry Mordvinov, Gleb Zakharov\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 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+#include \"box2DWheel.h\"\n+\n+#include <qrutils/mathUtils/math.h>\n+#include <Box2D/Dynamics/b2Body.h>\n+#include <Box2D/Dynamics/b2World.h>\n+#include <Box2D/Dynamics/b2Fixture.h>\n+#include <Box2D/Collision/Shapes/b2PolygonShape.h>\n+\n+#include \"twoDModel/engine/model/constants.h\"\n+#include \"box2DRobot.h\"\n+\n+using namespace twoDModel::model::physics::parts;\n+\n+Box2DWheel::Box2DWheel(Box2DPhysicsEngine *engine\n+\t\t, const b2Vec2 &positionBox2D, const float rotationBox2D, Box2DRobot &robot)\n+\t: prevSpeed(0.0)\n+\t, mRobot(robot)\n+\t, mEngine(engine)\n+\t, mWheelHeightM(engine->pxToM(twoDModel::robotWheelDiameterInPx / 2))\n+\t, mWheelWidthM(engine->pxToM(twoDModel::robotWheelDiameterInPx))\n+\t, mPolygon(new b2Vec2[8])\n+{\n+\tb2BodyDef bodyDef;\n+\tbodyDef.type = b2_dynamicBody;\n+\tbodyDef.position = positionBox2D;\n+\tbodyDef.angle = rotationBox2D;\n+\tmBody = engine->box2DWorld().CreateBody( &bodyDef );","path":"plugins/robots/common/twoDModel/src/engine/model/physics/parts/box2DWheel.cpp","position":41,"original_position":41,"commit_id":"8702ea2789eaf14ad5df0aee40d9d77edbb80b58","original_commit_id":"8702ea2789eaf14ad5df0aee40d9d77edbb80b58","user":{"login":"dvvrd","id":734254,"node_id":"MDQ6VXNlcjczNDI1NA==","avatar_url":"https://avatars3.githubusercontent.com/u/734254?v=4","gravatar_id":"","url":"https://api.github.com/users/dvvrd","html_url":"https://github.com/dvvrd","followers_url":"https://api.github.com/users/dvvrd/followers","following_url":"https://api.github.com/users/dvvrd/following{/other_user}","gists_url":"https://api.github.com/users/dvvrd/gists{/gist_id}","starred_url":"https://api.github.com/users/dvvrd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dvvrd/subscriptions","organizations_url":"https://api.github.com/users/dvvrd/orgs","repos_url":"https://api.github.com/users/dvvrd/repos","events_url":"https://api.github.com/users/dvvrd/events{/privacy}","received_events_url":"https://api.github.com/users/dvvrd/received_events","type":"User","site_admin":false},"body":"пробелы","created_at":"2018-08-09T10:20:05Z","updated_at":"2018-08-09T10:43:21Z","html_url":"https://github.com/qreal/qreal/pull/1829#discussion_r208878412","pull_request_url":"https://api.github.com/repos/qreal/qreal/pulls/1829","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/qreal/qreal/pulls/comments/208878412"},"html":{"href":"https://github.com/qreal/qreal/pull/1829#discussion_r208878412"},"pull_request":{"href":"https://api.github.com/repos/qreal/qreal/pulls/1829"}}},"pull_request":{"url":"https://api.github.com/repos/qreal/qreal/pulls/1829","id":165642548,"node_id":"MDExOlB1bGxSZXF1ZXN0MTY1NjQyNTQ4","html_url":"https://github.com/qreal/qreal/pull/1829","diff_url":"https://github.com/qreal/qreal/pull/1829.diff","patch_url":"https://github.com/qreal/qreal/pull/1829.patch","issue_url":"https://api.github.com/repos/qreal/qreal/issues/1829","number":1829,"state":"open","locked":false,"title":"Physics merge","user":{"login":"ZiminGrigory","id":3581733,"node_id":"MDQ6VXNlcjM1ODE3MzM=","avatar_url":"https://avatars0.githubusercontent.com/u/3581733?v=4","gravatar_id":"","url":"https://api.github.com/users/ZiminGrigory","html_url":"https://github.com/ZiminGrigory","followers_url":"https://api.github.com/users/ZiminGrigory/followers","following_url":"https://api.github.com/users/ZiminGrigory/following{/other_user}","gists_url":"https://api.github.com/users/ZiminGrigory/gists{/gist_id}","starred_url":"https://api.github.com/users/ZiminGrigory/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ZiminGrigory/subscriptions","organizations_url":"https://api.github.com/users/ZiminGrigory/orgs","repos_url":"https://api.github.com/users/ZiminGrigory/repos","events_url":"https://api.github.com/users/ZiminGrigory/events{/privacy}","received_events_url":"https://api.github.com/users/ZiminGrigory/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-01-29T08:33:49Z","updated_at":"2018-08-09T10:43:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"90cc9ad15d68705b9ae8e433cb939c8eeeb5246f","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/qreal/qreal/pulls/1829/commits","review_comments_url":"https://api.github.com/repos/qreal/qreal/pulls/1829/comments","review_comment_url":"https://api.github.com/repos/qreal/qreal/pulls/comments{/number}","comments_url":"https://api.github.com/repos/qreal/qreal/issues/1829/comments","statuses_url":"https://api.github.com/repos/qreal/qreal/statuses/8702ea2789eaf14ad5df0aee40d9d77edbb80b58","head":{"label":"ZiminGrigory:physics_merge","ref":"physics_merge","sha":"8702ea2789eaf14ad5df0aee40d9d77edbb80b58","user":{"login":"ZiminGrigory","id":3581733,"node_id":"MDQ6VXNlcjM1ODE3MzM=","avatar_url":"https://avatars0.githubusercontent.com/u/3581733?v=4","gravatar_id":"","url":"https://api.github.com/users/ZiminGrigory","html_url":"https://github.com/ZiminGrigory","followers_url":"https://api.github.com/users/ZiminGrigory/followers","following_url":"https://api.github.com/users/ZiminGrigory/following{/other_user}","gists_url":"https://api.github.com/users/ZiminGrigory/gists{/gist_id}","starred_url":"https://api.github.com/users/ZiminGrigory/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ZiminGrigory/subscriptions","organizations_url":"https://api.github.com/users/ZiminGrigory/orgs","repos_url":"https://api.github.com/users/ZiminGrigory/repos","events_url":"https://api.github.com/users/ZiminGrigory/events{/privacy}","received_events_url":"https://api.github.com/users/ZiminGrigory/received_events","type":"User","site_admin":false},"repo":{"id":11144394,"node_id":"MDEwOlJlcG9zaXRvcnkxMTE0NDM5NA==","name":"qreal","full_name":"ZiminGrigory/qreal","owner":{"login":"ZiminGrigory","id":3581733,"node_id":"MDQ6VXNlcjM1ODE3MzM=","avatar_url":"https://avatars0.githubusercontent.com/u/3581733?v=4","gravatar_id":"","url":"https://api.github.com/users/ZiminGrigory","html_url":"https://github.com/ZiminGrigory","followers_url":"https://api.github.com/users/ZiminGrigory/followers","following_url":"https://api.github.com/users/ZiminGrigory/following{/other_user}","gists_url":"https://api.github.com/users/ZiminGrigory/gists{/gist_id}","starred_url":"https://api.github.com/users/ZiminGrigory/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ZiminGrigory/subscriptions","organizations_url":"https://api.github.com/users/ZiminGrigory/orgs","repos_url":"https://api.github.com/users/ZiminGrigory/repos","events_url":"https://api.github.com/users/ZiminGrigory/events{/privacy}","received_events_url":"https://api.github.com/users/ZiminGrigory/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ZiminGrigory/qreal","description":"CASE and metaCASE system","fork":true,"url":"https://api.github.com/repos/ZiminGrigory/qreal","forks_url":"https://api.github.com/repos/ZiminGrigory/qreal/forks","keys_url":"https://api.github.com/repos/ZiminGrigory/qreal/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ZiminGrigory/qreal/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ZiminGrigory/qreal/teams","hooks_url":"https://api.github.com/repos/ZiminGrigory/qreal/hooks","issue_events_url":"https://api.github.com/repos/ZiminGrigory/qreal/issues/events{/number}","events_url":"https://api.github.com/repos/ZiminGrigory/qreal/events","assignees_url":"https://api.github.com/repos/ZiminGrigory/qreal/assignees{/user}","branches_url":"https://api.github.com/repos/ZiminGrigory/qreal/branches{/branch}","tags_url":"https://api.github.com/repos/ZiminGrigory/qreal/tags","blobs_url":"https://api.github.com/repos/ZiminGrigory/qreal/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ZiminGrigory/qreal/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ZiminGrigory/qreal/git/refs{/sha}","trees_url":"https://api.github.com/repos/ZiminGrigory/qreal/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ZiminGrigory/qreal/statuses/{sha}","languages_url":"https://api.github.com/repos/ZiminGrigory/qreal/languages","stargazers_url":"https://api.github.com/repos/ZiminGrigory/qreal/stargazers","contributors_url":"https://api.github.com/repos/ZiminGrigory/qreal/contributors","subscribers_url":"https://api.github.com/repos/ZiminGrigory/qreal/subscribers","subscription_url":"https://api.github.com/repos/ZiminGrigory/qreal/subscription","commits_url":"https://api.github.com/repos/ZiminGrigory/qreal/commits{/sha}","git_commits_url":"https://api.github.com/repos/ZiminGrigory/qreal/git/commits{/sha}","comments_url":"https://api.github.com/repos/ZiminGrigory/qreal/comments{/number}","issue_comment_url":"https://api.github.com/repos/ZiminGrigory/qreal/issues/comments{/number}","contents_url":"https://api.github.com/repos/ZiminGrigory/qreal/contents/{+path}","compare_url":"https://api.github.com/repos/ZiminGrigory/qreal/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ZiminGrigory/qreal/merges","archive_url":"https://api.github.com/repos/ZiminGrigory/qreal/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ZiminGrigory/qreal/downloads","issues_url":"https://api.github.com/repos/ZiminGrigory/qreal/issues{/number}","pulls_url":"https://api.github.com/repos/ZiminGrigory/qreal/pulls{/number}","milestones_url":"https://api.github.com/repos/ZiminGrigory/qreal/milestones{/number}","notifications_url":"https://api.github.com/repos/ZiminGrigory/qreal/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ZiminGrigory/qreal/labels{/name}","releases_url":"https://api.github.com/repos/ZiminGrigory/qreal/releases{/id}","deployments_url":"https://api.github.com/repos/ZiminGrigory/qreal/deployments","created_at":"2013-07-03T07:18:29Z","updated_at":"2018-07-31T11:41:34Z","pushed_at":"2018-08-09T09:29:24Z","git_url":"git://github.com/ZiminGrigory/qreal.git","ssh_url":"git@github.com:ZiminGrigory/qreal.git","clone_url":"https://github.com/ZiminGrigory/qreal.git","svn_url":"https://github.com/ZiminGrigory/qreal","homepage":"","size":144630,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":1,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"qreal:master","ref":"master","sha":"890f84a46dbcc2dee27a262ffb18e92d7d035086","user":{"login":"qreal","id":706806,"node_id":"MDEyOk9yZ2FuaXphdGlvbjcwNjgwNg==","avatar_url":"https://avatars2.githubusercontent.com/u/706806?v=4","gravatar_id":"","url":"https://api.github.com/users/qreal","html_url":"https://github.com/qreal","followers_url":"https://api.github.com/users/qreal/followers","following_url":"https://api.github.com/users/qreal/following{/other_user}","gists_url":"https://api.github.com/users/qreal/gists{/gist_id}","starred_url":"https://api.github.com/users/qreal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qreal/subscriptions","organizations_url":"https://api.github.com/users/qreal/orgs","repos_url":"https://api.github.com/users/qreal/repos","events_url":"https://api.github.com/users/qreal/events{/privacy}","received_events_url":"https://api.github.com/users/qreal/received_events","type":"Organization","site_admin":false},"repo":{"id":1563281,"node_id":"MDEwOlJlcG9zaXRvcnkxNTYzMjgx","name":"qreal","full_name":"qreal/qreal","owner":{"login":"qreal","id":706806,"node_id":"MDEyOk9yZ2FuaXphdGlvbjcwNjgwNg==","avatar_url":"https://avatars2.githubusercontent.com/u/706806?v=4","gravatar_id":"","url":"https://api.github.com/users/qreal","html_url":"https://github.com/qreal","followers_url":"https://api.github.com/users/qreal/followers","following_url":"https://api.github.com/users/qreal/following{/other_user}","gists_url":"https://api.github.com/users/qreal/gists{/gist_id}","starred_url":"https://api.github.com/users/qreal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qreal/subscriptions","organizations_url":"https://api.github.com/users/qreal/orgs","repos_url":"https://api.github.com/users/qreal/repos","events_url":"https://api.github.com/users/qreal/events{/privacy}","received_events_url":"https://api.github.com/users/qreal/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/qreal/qreal","description":"CASE and metaCASE system","fork":false,"url":"https://api.github.com/repos/qreal/qreal","forks_url":"https://api.github.com/repos/qreal/qreal/forks","keys_url":"https://api.github.com/repos/qreal/qreal/keys{/key_id}","collaborators_url":"https://api.github.com/repos/qreal/qreal/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/qreal/qreal/teams","hooks_url":"https://api.github.com/repos/qreal/qreal/hooks","issue_events_url":"https://api.github.com/repos/qreal/qreal/issues/events{/number}","events_url":"https://api.github.com/repos/qreal/qreal/events","assignees_url":"https://api.github.com/repos/qreal/qreal/assignees{/user}","branches_url":"https://api.github.com/repos/qreal/qreal/branches{/branch}","tags_url":"https://api.github.com/repos/qreal/qreal/tags","blobs_url":"https://api.github.com/repos/qreal/qreal/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/qreal/qreal/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/qreal/qreal/git/refs{/sha}","trees_url":"https://api.github.com/repos/qreal/qreal/git/trees{/sha}","statuses_url":"https://api.github.com/repos/qreal/qreal/statuses/{sha}","languages_url":"https://api.github.com/repos/qreal/qreal/languages","stargazers_url":"https://api.github.com/repos/qreal/qreal/stargazers","contributors_url":"https://api.github.com/repos/qreal/qreal/contributors","subscribers_url":"https://api.github.com/repos/qreal/qreal/subscribers","subscription_url":"https://api.github.com/repos/qreal/qreal/subscription","commits_url":"https://api.github.com/repos/qreal/qreal/commits{/sha}","git_commits_url":"https://api.github.com/repos/qreal/qreal/git/commits{/sha}","comments_url":"https://api.github.com/repos/qreal/qreal/comments{/number}","issue_comment_url":"https://api.github.com/repos/qreal/qreal/issues/comments{/number}","contents_url":"https://api.github.com/repos/qreal/qreal/contents/{+path}","compare_url":"https://api.github.com/repos/qreal/qreal/compare/{base}...{head}","merges_url":"https://api.github.com/repos/qreal/qreal/merges","archive_url":"https://api.github.com/repos/qreal/qreal/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/qreal/qreal/downloads","issues_url":"https://api.github.com/repos/qreal/qreal/issues{/number}","pulls_url":"https://api.github.com/repos/qreal/qreal/pulls{/number}","milestones_url":"https://api.github.com/repos/qreal/qreal/milestones{/number}","notifications_url":"https://api.github.com/repos/qreal/qreal/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/qreal/qreal/labels{/name}","releases_url":"https://api.github.com/repos/qreal/qreal/releases{/id}","deployments_url":"https://api.github.com/repos/qreal/qreal/deployments","created_at":"2011-04-03T15:38:06Z","updated_at":"2018-07-31T11:32:33Z","pushed_at":"2018-08-09T09:29:25Z","git_url":"git://github.com/qreal/qreal.git","ssh_url":"git@github.com:qreal/qreal.git","clone_url":"https://github.com/qreal/qreal.git","svn_url":"https://github.com/qreal/qreal","homepage":"","size":148621,"stargazers_count":56,"watchers_count":56,"language":"C++","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":102,"mirror_url":null,"archived":false,"open_issues_count":173,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":102,"open_issues":173,"watchers":56,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/qreal/qreal/pulls/1829"},"html":{"href":"https://github.com/qreal/qreal/pull/1829"},"issue":{"href":"https://api.github.com/repos/qreal/qreal/issues/1829"},"comments":{"href":"https://api.github.com/repos/qreal/qreal/issues/1829/comments"},"review_comments":{"href":"https://api.github.com/repos/qreal/qreal/pulls/1829/comments"},"review_comment":{"href":"https://api.github.com/repos/qreal/qreal/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/qreal/qreal/pulls/1829/commits"},"statuses":{"href":"https://api.github.com/repos/qreal/qreal/statuses/8702ea2789eaf14ad5df0aee40d9d77edbb80b58"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"dvvrd"}}