payload: {"action":"created","comment":{"url":"https://api.github.com/repos/ANYbotics/teb_local_planner/pulls/comments/276185006","pull_request_review_id":227683645,"id":276185006,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI3NjE4NTAwNg==","diff_hunk":"@@ -0,0 +1,31 @@\n+#include \"anymal_teb_local_planner/orientation_filter.h\"\n+\n+namespace anymal_teb_local_planner {\n+\n+void OrientationFilter::setMode(OrientationMode newMode) { oMode_ = newMode; }\n+\n+void OrientationFilter::processPath(const any_navigation::PoseStamped& start, std::vector<any_navigation::PoseStamped>& path) {\n+  switch (oMode_) {\n+    case OrientationMode::FORWARD:\n+      for (int i = 0; i < path.size() - 1; i++) {\n+        setAngleBasedOnPositionDerivative(path, i);\n+      }\n+      break;\n+\n+    default:\n+      break;\n+  }\n+}\n+\n+void OrientationFilter::setAngleBasedOnPositionDerivative(std::vector<any_navigation::PoseStamped>& path, int index) {\n+  const int index0 = std::max(0, index - windowSize_);\n+  const int index1 = std::min(static_cast<int>(path.size()) - 1, index + windowSize_);","path":"src/orientation_filter.cpp","position":22,"original_position":22,"commit_id":"1450244f6d28ee079180ea48c06ee4917e740a63","original_commit_id":"331e7f184547fc6c1204973c716dab44e842d539","user":{"login":"remod","id":3808643,"node_id":"MDQ6VXNlcjM4MDg2NDM=","avatar_url":"https://avatars3.githubusercontent.com/u/3808643?v=4","gravatar_id":"","url":"https://api.github.com/users/remod","html_url":"https://github.com/remod","followers_url":"https://api.github.com/users/remod/followers","following_url":"https://api.github.com/users/remod/following{/other_user}","gists_url":"https://api.github.com/users/remod/gists{/gist_id}","starred_url":"https://api.github.com/users/remod/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/remod/subscriptions","organizations_url":"https://api.github.com/users/remod/orgs","repos_url":"https://api.github.com/users/remod/repos","events_url":"https://api.github.com/users/remod/events{/privacy}","received_events_url":"https://api.github.com/users/remod/received_events","type":"User","site_admin":false},"body":"Asserting is better than hoping :P","created_at":"2019-04-17T10:57:37Z","updated_at":"2019-04-17T10:57:37Z","html_url":"https://github.com/ANYbotics/teb_local_planner/pull/12#discussion_r276185006","pull_request_url":"https://api.github.com/repos/ANYbotics/teb_local_planner/pulls/12","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/ANYbotics/teb_local_planner/pulls/comments/276185006"},"html":{"href":"https://github.com/ANYbotics/teb_local_planner/pull/12#discussion_r276185006"},"pull_request":{"href":"https://api.github.com/repos/ANYbotics/teb_local_planner/pulls/12"}},"in_reply_to_id":275241524},"pull_request":{"url":"https://api.github.com/repos/ANYbotics/teb_local_planner/pulls/12","id":269562811,"node_id":"MDExOlB1bGxSZXF1ZXN0MjY5NTYyODEx","html_url":"https://github.com/ANYbotics/teb_local_planner/pull/12","diff_url":"https://github.com/ANYbotics/teb_local_planner/pull/12.diff","patch_url":"https://github.com/ANYbotics/teb_local_planner/pull/12.patch","issue_url":"https://api.github.com/repos/ANYbotics/teb_local_planner/issues/12","number":12,"state":"open","locked":false,"title":"Feature/custom viapoints","user":{"login":"harmishhk","id":4731493,"node_id":"MDQ6VXNlcjQ3MzE0OTM=","avatar_url":"https://avatars0.githubusercontent.com/u/4731493?v=4","gravatar_id":"","url":"https://api.github.com/users/harmishhk","html_url":"https://github.com/harmishhk","followers_url":"https://api.github.com/users/harmishhk/followers","following_url":"https://api.github.com/users/harmishhk/following{/other_user}","gists_url":"https://api.github.com/users/harmishhk/gists{/gist_id}","starred_url":"https://api.github.com/users/harmishhk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/harmishhk/subscriptions","organizations_url":"https://api.github.com/users/harmishhk/orgs","repos_url":"https://api.github.com/users/harmishhk/repos","events_url":"https://api.github.com/users/harmishhk/events{/privacy}","received_events_url":"https://api.github.com/users/harmishhk/received_events","type":"User","site_admin":false},"body":"This PR adds functionality to utilize tolerance values of any navigation path.","created_at":"2019-04-11T13:01:25Z","updated_at":"2019-04-17T10:57:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a70f9d34a869d37c0a2ac3119af6f43b040c52b5","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/ANYbotics/teb_local_planner/pulls/12/commits","review_comments_url":"https://api.github.com/repos/ANYbotics/teb_local_planner/pulls/12/comments","review_comment_url":"https://api.github.com/repos/ANYbotics/teb_local_planner/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ANYbotics/teb_local_planner/issues/12/comments","statuses_url":"https://api.github.com/repos/ANYbotics/teb_local_planner/statuses/1450244f6d28ee079180ea48c06ee4917e740a63","head":{"label":"ANYbotics:feature/custom_viapoints","ref":"feature/custom_viapoints","sha":"1450244f6d28ee079180ea48c06ee4917e740a63","user":{"login":"ANYbotics","id":18677290,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE4Njc3Mjkw","avatar_url":"https://avatars0.githubusercontent.com/u/18677290?v=4","gravatar_id":"","url":"https://api.github.com/users/ANYbotics","html_url":"https://github.com/ANYbotics","followers_url":"https://api.github.com/users/ANYbotics/followers","following_url":"https://api.github.com/users/ANYbotics/following{/other_user}","gists_url":"https://api.github.com/users/ANYbotics/gists{/gist_id}","starred_url":"https://api.github.com/users/ANYbotics/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ANYbotics/subscriptions","organizations_url":"https://api.github.com/users/ANYbotics/orgs","repos_url":"https://api.github.com/users/ANYbotics/repos","events_url":"https://api.github.com/users/ANYbotics/events{/privacy}","received_events_url":"https://api.github.com/users/ANYbotics/received_events","type":"Organization","site_admin":false},"repo":{"id":152239864,"node_id":"MDEwOlJlcG9zaXRvcnkxNTIyMzk4NjQ=","name":"teb_local_planner","full_name":"ANYbotics/teb_local_planner","private":false,"owner":{"login":"ANYbotics","id":18677290,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE4Njc3Mjkw","avatar_url":"https://avatars0.githubusercontent.com/u/18677290?v=4","gravatar_id":"","url":"https://api.github.com/users/ANYbotics","html_url":"https://github.com/ANYbotics","followers_url":"https://api.github.com/users/ANYbotics/followers","following_url":"https://api.github.com/users/ANYbotics/following{/other_user}","gists_url":"https://api.github.com/users/ANYbotics/gists{/gist_id}","starred_url":"https://api.github.com/users/ANYbotics/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ANYbotics/subscriptions","organizations_url":"https://api.github.com/users/ANYbotics/orgs","repos_url":"https://api.github.com/users/ANYbotics/repos","events_url":"https://api.github.com/users/ANYbotics/events{/privacy}","received_events_url":"https://api.github.com/users/ANYbotics/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/ANYbotics/teb_local_planner","description":"An optimal trajectory planner considering distinctive topologies for mobile robots based on Timed-Elastic-Bands (ROS Package)","fork":true,"url":"https://api.github.com/repos/ANYbotics/teb_local_planner","forks_url":"https://api.github.com/repos/ANYbotics/teb_local_planner/forks","keys_url":"https://api.github.com/repos/ANYbotics/teb_local_planner/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ANYbotics/teb_local_planner/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ANYbotics/teb_local_planner/teams","hooks_url":"https://api.github.com/repos/ANYbotics/teb_local_planner/hooks","issue_events_url":"https://api.github.com/repos/ANYbotics/teb_local_planner/issues/events{/number}","events_url":"https://api.github.com/repos/ANYbotics/teb_local_planner/events","assignees_url":"https://api.github.com/repos/ANYbotics/teb_local_planner/assignees{/user}","branches_url":"https://api.github.com/repos/ANYbotics/teb_local_planner/branches{/branch}","tags_url":"https://api.github.com/repos/ANYbotics/teb_local_planner/tags","blobs_url":"https://api.github.com/repos/ANYbotics/teb_local_planner/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ANYbotics/teb_local_planner/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ANYbotics/teb_local_planner/git/refs{/sha}","trees_url":"https://api.github.com/repos/ANYbotics/teb_local_planner/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ANYbotics/teb_local_planner/statuses/{sha}","languages_url":"https://api.github.com/repos/ANYbotics/teb_local_planner/languages","stargazers_url":"https://api.github.com/repos/ANYbotics/teb_local_planner/stargazers","contributors_url":"https://api.github.com/repos/ANYbotics/teb_local_planner/contributors","subscribers_url":"https://api.github.com/repos/ANYbotics/teb_local_planner/subscribers","subscription_url":"https://api.github.com/repos/ANYbotics/teb_local_planner/subscription","commits_url":"https://api.github.com/repos/ANYbotics/teb_local_planner/commits{/sha}","git_commits_url":"https://api.github.com/repos/ANYbotics/teb_local_planner/git/commits{/sha}","comments_url":"https://api.github.com/repos/ANYbotics/teb_local_planner/comments{/number}","issue_comment_url":"https://api.github.com/repos/ANYbotics/teb_local_planner/issues/comments{/number}","contents_url":"https://api.github.com/repos/ANYbotics/teb_local_planner/contents/{+path}","compare_url":"https://api.github.com/repos/ANYbotics/teb_local_planner/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ANYbotics/teb_local_planner/merges","archive_url":"https://api.github.com/repos/ANYbotics/teb_local_planner/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ANYbotics/teb_local_planner/downloads","issues_url":"https://api.github.com/repos/ANYbotics/teb_local_planner/issues{/number}","pulls_url":"https://api.github.com/repos/ANYbotics/teb_local_planner/pulls{/number}","milestones_url":"https://api.github.com/repos/ANYbotics/teb_local_planner/milestones{/number}","notifications_url":"https://api.github.com/repos/ANYbotics/teb_local_planner/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ANYbotics/teb_local_planner/labels{/name}","releases_url":"https://api.github.com/repos/ANYbotics/teb_local_planner/releases{/id}","deployments_url":"https://api.github.com/repos/ANYbotics/teb_local_planner/deployments","created_at":"2018-10-09T11:32:26Z","updated_at":"2019-03-18T09:24:44Z","pushed_at":"2019-04-17T10:47:12Z","git_url":"git://github.com/ANYbotics/teb_local_planner.git","ssh_url":"git@github.com:ANYbotics/teb_local_planner.git","clone_url":"https://github.com/ANYbotics/teb_local_planner.git","svn_url":"https://github.com/ANYbotics/teb_local_planner","homepage":"http://wiki.ros.org/teb_local_planner","size":1369,"stargazers_count":2,"watchers_count":2,"language":"C++","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":2,"license":{"key":"bsd-3-clause","name":"BSD 3-Clause \"New\" or \"Revised\" License","spdx_id":"BSD-3-Clause","url":"https://api.github.com/licenses/bsd-3-clause","node_id":"MDc6TGljZW5zZTU="},"forks":1,"open_issues":2,"watchers":2,"default_branch":"master"}},"base":{"label":"ANYbotics:feature/any_navigation","ref":"feature/any_navigation","sha":"8aa870fb45c299f95da2c48d991054330afdfaea","user":{"login":"ANYbotics","id":18677290,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE4Njc3Mjkw","avatar_url":"https://avatars0.githubusercontent.com/u/18677290?v=4","gravatar_id":"","url":"https://api.github.com/users/ANYbotics","html_url":"https://github.com/ANYbotics","followers_url":"https://api.github.com/users/ANYbotics/followers","following_url":"https://api.github.com/users/ANYbotics/following{/other_user}","gists_url":"https://api.github.com/users/ANYbotics/gists{/gist_id}","starred_url":"https://api.github.com/users/ANYbotics/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ANYbotics/subscriptions","organizations_url":"https://api.github.com/users/ANYbotics/orgs","repos_url":"https://api.github.com/users/ANYbotics/repos","events_url":"https://api.github.com/users/ANYbotics/events{/privacy}","received_events_url":"https://api.github.com/users/ANYbotics/received_events","type":"Organization","site_admin":false},"repo":{"id":152239864,"node_id":"MDEwOlJlcG9zaXRvcnkxNTIyMzk4NjQ=","name":"teb_local_planner","full_name":"ANYbotics/teb_local_planner","private":false,"owner":{"login":"ANYbotics","id":18677290,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE4Njc3Mjkw","avatar_url":"https://avatars0.githubusercontent.com/u/18677290?v=4","gravatar_id":"","url":"https://api.github.com/users/ANYbotics","html_url":"https://github.com/ANYbotics","followers_url":"https://api.github.com/users/ANYbotics/followers","following_url":"https://api.github.com/users/ANYbotics/following{/other_user}","gists_url":"https://api.github.com/users/ANYbotics/gists{/gist_id}","starred_url":"https://api.github.com/users/ANYbotics/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ANYbotics/subscriptions","organizations_url":"https://api.github.com/users/ANYbotics/orgs","repos_url":"https://api.github.com/users/ANYbotics/repos","events_url":"https://api.github.com/users/ANYbotics/events{/privacy}","received_events_url":"https://api.github.com/users/ANYbotics/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/ANYbotics/teb_local_planner","description":"An optimal trajectory planner considering distinctive topologies for mobile robots based on Timed-Elastic-Bands (ROS Package)","fork":true,"url":"https://api.github.com/repos/ANYbotics/teb_local_planner","forks_url":"https://api.github.com/repos/ANYbotics/teb_local_planner/forks","keys_url":"https://api.github.com/repos/ANYbotics/teb_local_planner/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ANYbotics/teb_local_planner/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ANYbotics/teb_local_planner/teams","hooks_url":"https://api.github.com/repos/ANYbotics/teb_local_planner/hooks","issue_events_url":"https://api.github.com/repos/ANYbotics/teb_local_planner/issues/events{/number}","events_url":"https://api.github.com/repos/ANYbotics/teb_local_planner/events","assignees_url":"https://api.github.com/repos/ANYbotics/teb_local_planner/assignees{/user}","branches_url":"https://api.github.com/repos/ANYbotics/teb_local_planner/branches{/branch}","tags_url":"https://api.github.com/repos/ANYbotics/teb_local_planner/tags","blobs_url":"https://api.github.com/repos/ANYbotics/teb_local_planner/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ANYbotics/teb_local_planner/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ANYbotics/teb_local_planner/git/refs{/sha}","trees_url":"https://api.github.com/repos/ANYbotics/teb_local_planner/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ANYbotics/teb_local_planner/statuses/{sha}","languages_url":"https://api.github.com/repos/ANYbotics/teb_local_planner/languages","stargazers_url":"https://api.github.com/repos/ANYbotics/teb_local_planner/stargazers","contributors_url":"https://api.github.com/repos/ANYbotics/teb_local_planner/contributors","subscribers_url":"https://api.github.com/repos/ANYbotics/teb_local_planner/subscribers","subscription_url":"https://api.github.com/repos/ANYbotics/teb_local_planner/subscription","commits_url":"https://api.github.com/repos/ANYbotics/teb_local_planner/commits{/sha}","git_commits_url":"https://api.github.com/repos/ANYbotics/teb_local_planner/git/commits{/sha}","comments_url":"https://api.github.com/repos/ANYbotics/teb_local_planner/comments{/number}","issue_comment_url":"https://api.github.com/repos/ANYbotics/teb_local_planner/issues/comments{/number}","contents_url":"https://api.github.com/repos/ANYbotics/teb_local_planner/contents/{+path}","compare_url":"https://api.github.com/repos/ANYbotics/teb_local_planner/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ANYbotics/teb_local_planner/merges","archive_url":"https://api.github.com/repos/ANYbotics/teb_local_planner/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ANYbotics/teb_local_planner/downloads","issues_url":"https://api.github.com/repos/ANYbotics/teb_local_planner/issues{/number}","pulls_url":"https://api.github.com/repos/ANYbotics/teb_local_planner/pulls{/number}","milestones_url":"https://api.github.com/repos/ANYbotics/teb_local_planner/milestones{/number}","notifications_url":"https://api.github.com/repos/ANYbotics/teb_local_planner/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ANYbotics/teb_local_planner/labels{/name}","releases_url":"https://api.github.com/repos/ANYbotics/teb_local_planner/releases{/id}","deployments_url":"https://api.github.com/repos/ANYbotics/teb_local_planner/deployments","created_at":"2018-10-09T11:32:26Z","updated_at":"2019-03-18T09:24:44Z","pushed_at":"2019-04-17T10:47:12Z","git_url":"git://github.com/ANYbotics/teb_local_planner.git","ssh_url":"git@github.com:ANYbotics/teb_local_planner.git","clone_url":"https://github.com/ANYbotics/teb_local_planner.git","svn_url":"https://github.com/ANYbotics/teb_local_planner","homepage":"http://wiki.ros.org/teb_local_planner","size":1369,"stargazers_count":2,"watchers_count":2,"language":"C++","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":2,"license":{"key":"bsd-3-clause","name":"BSD 3-Clause \"New\" or \"Revised\" License","spdx_id":"BSD-3-Clause","url":"https://api.github.com/licenses/bsd-3-clause","node_id":"MDc6TGljZW5zZTU="},"forks":1,"open_issues":2,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ANYbotics/teb_local_planner/pulls/12"},"html":{"href":"https://github.com/ANYbotics/teb_local_planner/pull/12"},"issue":{"href":"https://api.github.com/repos/ANYbotics/teb_local_planner/issues/12"},"comments":{"href":"https://api.github.com/repos/ANYbotics/teb_local_planner/issues/12/comments"},"review_comments":{"href":"https://api.github.com/repos/ANYbotics/teb_local_planner/pulls/12/comments"},"review_comment":{"href":"https://api.github.com/repos/ANYbotics/teb_local_planner/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ANYbotics/teb_local_planner/pulls/12/commits"},"statuses":{"href":"https://api.github.com/repos/ANYbotics/teb_local_planner/statuses/1450244f6d28ee079180ea48c06ee4917e740a63"}},"author_association":"MEMBER"}}
other: {"actor":{"display_login":"remod"}}