{"action":"created","comment":{"url":"https://api.github.com/repos/googlecartographer/cartographer_ros/pulls/comments/120843320","pull_request_review_id":42839013,"id":120843320,"diff_hunk":"@@ -0,0 +1,53 @@\n+/*\n+ * Copyright 2017 The Cartographer Authors\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+\n+#ifndef CARTOGRAPHER_ROS_GOOGLE_CARTOGRAPHER_SRC_COLOR_MANAGER_H_\n+#define CARTOGRAPHER_ROS_GOOGLE_CARTOGRAPHER_SRC_COLOR_MANAGER_H_\n+\n+#include <vector>\n+\n+namespace cartographer_ros {\n+\n+class ColorManager {\n+ public:\n+  /** A class for online generation of a colour palette, with every two direct\n+  **  successors having large contrast. All parameters are from [0, 1].\n+  **/\n+  ColorManager(const double initial_hue, const double saturation,\n+               const double value);\n+\n+  struct rgb {","path":"cartographer_ros/cartographer_ros/color_manager.h","position":32,"original_position":32,"commit_id":"89a928e3688707717eee23fb02574407b7255faa","original_commit_id":"89a928e3688707717eee23fb02574407b7255faa","user":{"login":"wohe","id":12056038,"avatar_url":"https://avatars2.githubusercontent.com/u/12056038?v=3","gravatar_id":"","url":"https://api.github.com/users/wohe","html_url":"https://github.com/wohe","followers_url":"https://api.github.com/users/wohe/followers","following_url":"https://api.github.com/users/wohe/following{/other_user}","gists_url":"https://api.github.com/users/wohe/gists{/gist_id}","starred_url":"https://api.github.com/users/wohe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wohe/subscriptions","organizations_url":"https://api.github.com/users/wohe/orgs","repos_url":"https://api.github.com/users/wohe/repos","events_url":"https://api.github.com/users/wohe/events{/privacy}","received_events_url":"https://api.github.com/users/wohe/received_events","type":"User","site_admin":false},"body":"Style: Uppercase. How about `Color`?","created_at":"2017-06-08T09:43:38Z","updated_at":"2017-06-08T09:49:35Z","html_url":"https://github.com/googlecartographer/cartographer_ros/pull/360#discussion_r120843320","pull_request_url":"https://api.github.com/repos/googlecartographer/cartographer_ros/pulls/360","_links":{"self":{"href":"https://api.github.com/repos/googlecartographer/cartographer_ros/pulls/comments/120843320"},"html":{"href":"https://github.com/googlecartographer/cartographer_ros/pull/360#discussion_r120843320"},"pull_request":{"href":"https://api.github.com/repos/googlecartographer/cartographer_ros/pulls/360"}}},"pull_request":{"url":"https://api.github.com/repos/googlecartographer/cartographer_ros/pulls/360","id":123988601,"html_url":"https://github.com/googlecartographer/cartographer_ros/pull/360","diff_url":"https://github.com/googlecartographer/cartographer_ros/pull/360.diff","patch_url":"https://github.com/googlecartographer/cartographer_ros/pull/360.patch","issue_url":"https://api.github.com/repos/googlecartographer/cartographer_ros/issues/360","number":360,"state":"open","locked":false,"title":"Trajectory visualization","user":{"login":"ojura","id":9062353,"avatar_url":"https://avatars0.githubusercontent.com/u/9062353?v=3","gravatar_id":"","url":"https://api.github.com/users/ojura","html_url":"https://github.com/ojura","followers_url":"https://api.github.com/users/ojura/followers","following_url":"https://api.github.com/users/ojura/following{/other_user}","gists_url":"https://api.github.com/users/ojura/gists{/gist_id}","starred_url":"https://api.github.com/users/ojura/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ojura/subscriptions","organizations_url":"https://api.github.com/users/ojura/orgs","repos_url":"https://api.github.com/users/ojura/repos","events_url":"https://api.github.com/users/ojura/events{/privacy}","received_events_url":"https://api.github.com/users/ojura/received_events","type":"User","site_admin":false},"body":"Originally by @jihoonl (#337). It seems that he has given up on his pull request due to git complications. I thought it would be a shame if this didn't get merged in, so I rebased everything and split the original pull request in two parts, as @wohe originally suggested.","created_at":"2017-06-05T14:32:06Z","updated_at":"2017-06-08T09:49:35Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ddba2786a3b1526069a1be247e29ce7be5761654","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/googlecartographer/cartographer_ros/pulls/360/commits","review_comments_url":"https://api.github.com/repos/googlecartographer/cartographer_ros/pulls/360/comments","review_comment_url":"https://api.github.com/repos/googlecartographer/cartographer_ros/pulls/comments{/number}","comments_url":"https://api.github.com/repos/googlecartographer/cartographer_ros/issues/360/comments","statuses_url":"https://api.github.com/repos/googlecartographer/cartographer_ros/statuses/89a928e3688707717eee23fb02574407b7255faa","head":{"label":"larics:trajectory_publishing","ref":"trajectory_publishing","sha":"89a928e3688707717eee23fb02574407b7255faa","user":{"login":"larics","id":5793148,"avatar_url":"https://avatars0.githubusercontent.com/u/5793148?v=3","gravatar_id":"","url":"https://api.github.com/users/larics","html_url":"https://github.com/larics","followers_url":"https://api.github.com/users/larics/followers","following_url":"https://api.github.com/users/larics/following{/other_user}","gists_url":"https://api.github.com/users/larics/gists{/gist_id}","starred_url":"https://api.github.com/users/larics/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/larics/subscriptions","organizations_url":"https://api.github.com/users/larics/orgs","repos_url":"https://api.github.com/users/larics/repos","events_url":"https://api.github.com/users/larics/events{/privacy}","received_events_url":"https://api.github.com/users/larics/received_events","type":"Organization","site_admin":false},"repo":{"id":91825936,"name":"cartographer_ros","full_name":"larics/cartographer_ros","owner":{"login":"larics","id":5793148,"avatar_url":"https://avatars0.githubusercontent.com/u/5793148?v=3","gravatar_id":"","url":"https://api.github.com/users/larics","html_url":"https://github.com/larics","followers_url":"https://api.github.com/users/larics/followers","following_url":"https://api.github.com/users/larics/following{/other_user}","gists_url":"https://api.github.com/users/larics/gists{/gist_id}","starred_url":"https://api.github.com/users/larics/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/larics/subscriptions","organizations_url":"https://api.github.com/users/larics/orgs","repos_url":"https://api.github.com/users/larics/repos","events_url":"https://api.github.com/users/larics/events{/privacy}","received_events_url":"https://api.github.com/users/larics/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/larics/cartographer_ros","description":"Provides ROS integration for Cartographer.","fork":true,"url":"https://api.github.com/repos/larics/cartographer_ros","forks_url":"https://api.github.com/repos/larics/cartographer_ros/forks","keys_url":"https://api.github.com/repos/larics/cartographer_ros/keys{/key_id}","collaborators_url":"https://api.github.com/repos/larics/cartographer_ros/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/larics/cartographer_ros/teams","hooks_url":"https://api.github.com/repos/larics/cartographer_ros/hooks","issue_events_url":"https://api.github.com/repos/larics/cartographer_ros/issues/events{/number}","events_url":"https://api.github.com/repos/larics/cartographer_ros/events","assignees_url":"https://api.github.com/repos/larics/cartographer_ros/assignees{/user}","branches_url":"https://api.github.com/repos/larics/cartographer_ros/branches{/branch}","tags_url":"https://api.github.com/repos/larics/cartographer_ros/tags","blobs_url":"https://api.github.com/repos/larics/cartographer_ros/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/larics/cartographer_ros/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/larics/cartographer_ros/git/refs{/sha}","trees_url":"https://api.github.com/repos/larics/cartographer_ros/git/trees{/sha}","statuses_url":"https://api.github.com/repos/larics/cartographer_ros/statuses/{sha}","languages_url":"https://api.github.com/repos/larics/cartographer_ros/languages","stargazers_url":"https://api.github.com/repos/larics/cartographer_ros/stargazers","contributors_url":"https://api.github.com/repos/larics/cartographer_ros/contributors","subscribers_url":"https://api.github.com/repos/larics/cartographer_ros/subscribers","subscription_url":"https://api.github.com/repos/larics/cartographer_ros/subscription","commits_url":"https://api.github.com/repos/larics/cartographer_ros/commits{/sha}","git_commits_url":"https://api.github.com/repos/larics/cartographer_ros/git/commits{/sha}","comments_url":"https://api.github.com/repos/larics/cartographer_ros/comments{/number}","issue_comment_url":"https://api.github.com/repos/larics/cartographer_ros/issues/comments{/number}","contents_url":"https://api.github.com/repos/larics/cartographer_ros/contents/{+path}","compare_url":"https://api.github.com/repos/larics/cartographer_ros/compare/{base}...{head}","merges_url":"https://api.github.com/repos/larics/cartographer_ros/merges","archive_url":"https://api.github.com/repos/larics/cartographer_ros/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/larics/cartographer_ros/downloads","issues_url":"https://api.github.com/repos/larics/cartographer_ros/issues{/number}","pulls_url":"https://api.github.com/repos/larics/cartographer_ros/pulls{/number}","milestones_url":"https://api.github.com/repos/larics/cartographer_ros/milestones{/number}","notifications_url":"https://api.github.com/repos/larics/cartographer_ros/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/larics/cartographer_ros/labels{/name}","releases_url":"https://api.github.com/repos/larics/cartographer_ros/releases{/id}","deployments_url":"https://api.github.com/repos/larics/cartographer_ros/deployments","created_at":"2017-05-19T16:37:32Z","updated_at":"2017-05-19T16:37:34Z","pushed_at":"2017-06-08T09:35:39Z","git_url":"git://github.com/larics/cartographer_ros.git","ssh_url":"git@github.com:larics/cartographer_ros.git","clone_url":"https://github.com/larics/cartographer_ros.git","svn_url":"https://github.com/larics/cartographer_ros","homepage":"","size":482,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"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":"googlecartographer:master","ref":"master","sha":"73da0aa12428d6712c1e7afb2cf94b919e66ea15","user":{"login":"googlecartographer","id":20636162,"avatar_url":"https://avatars0.githubusercontent.com/u/20636162?v=3","gravatar_id":"","url":"https://api.github.com/users/googlecartographer","html_url":"https://github.com/googlecartographer","followers_url":"https://api.github.com/users/googlecartographer/followers","following_url":"https://api.github.com/users/googlecartographer/following{/other_user}","gists_url":"https://api.github.com/users/googlecartographer/gists{/gist_id}","starred_url":"https://api.github.com/users/googlecartographer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/googlecartographer/subscriptions","organizations_url":"https://api.github.com/users/googlecartographer/orgs","repos_url":"https://api.github.com/users/googlecartographer/repos","events_url":"https://api.github.com/users/googlecartographer/events{/privacy}","received_events_url":"https://api.github.com/users/googlecartographer/received_events","type":"Organization","site_admin":false},"repo":{"id":64838142,"name":"cartographer_ros","full_name":"googlecartographer/cartographer_ros","owner":{"login":"googlecartographer","id":20636162,"avatar_url":"https://avatars0.githubusercontent.com/u/20636162?v=3","gravatar_id":"","url":"https://api.github.com/users/googlecartographer","html_url":"https://github.com/googlecartographer","followers_url":"https://api.github.com/users/googlecartographer/followers","following_url":"https://api.github.com/users/googlecartographer/following{/other_user}","gists_url":"https://api.github.com/users/googlecartographer/gists{/gist_id}","starred_url":"https://api.github.com/users/googlecartographer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/googlecartographer/subscriptions","organizations_url":"https://api.github.com/users/googlecartographer/orgs","repos_url":"https://api.github.com/users/googlecartographer/repos","events_url":"https://api.github.com/users/googlecartographer/events{/privacy}","received_events_url":"https://api.github.com/users/googlecartographer/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/googlecartographer/cartographer_ros","description":"Provides ROS integration for Cartographer.","fork":false,"url":"https://api.github.com/repos/googlecartographer/cartographer_ros","forks_url":"https://api.github.com/repos/googlecartographer/cartographer_ros/forks","keys_url":"https://api.github.com/repos/googlecartographer/cartographer_ros/keys{/key_id}","collaborators_url":"https://api.github.com/repos/googlecartographer/cartographer_ros/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/googlecartographer/cartographer_ros/teams","hooks_url":"https://api.github.com/repos/googlecartographer/cartographer_ros/hooks","issue_events_url":"https://api.github.com/repos/googlecartographer/cartographer_ros/issues/events{/number}","events_url":"https://api.github.com/repos/googlecartographer/cartographer_ros/events","assignees_url":"https://api.github.com/repos/googlecartographer/cartographer_ros/assignees{/user}","branches_url":"https://api.github.com/repos/googlecartographer/cartographer_ros/branches{/branch}","tags_url":"https://api.github.com/repos/googlecartographer/cartographer_ros/tags","blobs_url":"https://api.github.com/repos/googlecartographer/cartographer_ros/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/googlecartographer/cartographer_ros/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/googlecartographer/cartographer_ros/git/refs{/sha}","trees_url":"https://api.github.com/repos/googlecartographer/cartographer_ros/git/trees{/sha}","statuses_url":"https://api.github.com/repos/googlecartographer/cartographer_ros/statuses/{sha}","languages_url":"https://api.github.com/repos/googlecartographer/cartographer_ros/languages","stargazers_url":"https://api.github.com/repos/googlecartographer/cartographer_ros/stargazers","contributors_url":"https://api.github.com/repos/googlecartographer/cartographer_ros/contributors","subscribers_url":"https://api.github.com/repos/googlecartographer/cartographer_ros/subscribers","subscription_url":"https://api.github.com/repos/googlecartographer/cartographer_ros/subscription","commits_url":"https://api.github.com/repos/googlecartographer/cartographer_ros/commits{/sha}","git_commits_url":"https://api.github.com/repos/googlecartographer/cartographer_ros/git/commits{/sha}","comments_url":"https://api.github.com/repos/googlecartographer/cartographer_ros/comments{/number}","issue_comment_url":"https://api.github.com/repos/googlecartographer/cartographer_ros/issues/comments{/number}","contents_url":"https://api.github.com/repos/googlecartographer/cartographer_ros/contents/{+path}","compare_url":"https://api.github.com/repos/googlecartographer/cartographer_ros/compare/{base}...{head}","merges_url":"https://api.github.com/repos/googlecartographer/cartographer_ros/merges","archive_url":"https://api.github.com/repos/googlecartographer/cartographer_ros/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/googlecartographer/cartographer_ros/downloads","issues_url":"https://api.github.com/repos/googlecartographer/cartographer_ros/issues{/number}","pulls_url":"https://api.github.com/repos/googlecartographer/cartographer_ros/pulls{/number}","milestones_url":"https://api.github.com/repos/googlecartographer/cartographer_ros/milestones{/number}","notifications_url":"https://api.github.com/repos/googlecartographer/cartographer_ros/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/googlecartographer/cartographer_ros/labels{/name}","releases_url":"https://api.github.com/repos/googlecartographer/cartographer_ros/releases{/id}","deployments_url":"https://api.github.com/repos/googlecartographer/cartographer_ros/deployments","created_at":"2016-08-03T10:43:23Z","updated_at":"2017-06-08T09:03:49Z","pushed_at":"2017-06-08T09:35:41Z","git_url":"git://github.com/googlecartographer/cartographer_ros.git","ssh_url":"git@github.com:googlecartographer/cartographer_ros.git","clone_url":"https://github.com/googlecartographer/cartographer_ros.git","svn_url":"https://github.com/googlecartographer/cartographer_ros","homepage":"","size":441,"stargazers_count":339,"watchers_count":339,"language":"C++","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":245,"mirror_url":null,"open_issues_count":14,"forks":245,"open_issues":14,"watchers":339,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/googlecartographer/cartographer_ros/pulls/360"},"html":{"href":"https://github.com/googlecartographer/cartographer_ros/pull/360"},"issue":{"href":"https://api.github.com/repos/googlecartographer/cartographer_ros/issues/360"},"comments":{"href":"https://api.github.com/repos/googlecartographer/cartographer_ros/issues/360/comments"},"review_comments":{"href":"https://api.github.com/repos/googlecartographer/cartographer_ros/pulls/360/comments"},"review_comment":{"href":"https://api.github.com/repos/googlecartographer/cartographer_ros/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/googlecartographer/cartographer_ros/pulls/360/commits"},"statuses":{"href":"https://api.github.com/repos/googlecartographer/cartographer_ros/statuses/89a928e3688707717eee23fb02574407b7255faa"}}}}
{"actor":{"display_login":"wohe"}}