{"action":"created","comment":{"url":"https://api.github.com/repos/ipa-fxm-mb/cob_control/pulls/comments/33679348","id":33679348,"diff_hunk":"@@ -0,0 +1,106 @@\n+/*!\n+ *****************************************************************\n+ * \\file\n+ *\n+ * \\note\n+ *   Copyright (c) 2015 \\n\n+ *   Fraunhofer Institute for Manufacturing Engineering\n+ *   and Automation (IPA) \\n\\n\n+ *\n+ *****************************************************************\n+ *\n+ * \\note\n+ *   Project name: care-o-bot\n+ * \\note\n+ *   ROS stack name: cob_control\n+ * \\note\n+ *   ROS package name: cob_twist_controller\n+ *\n+ * \\author\n+ *   Author: Christoph Mark, email: christoph.mark@ipa.fraunhofer.de / christoph.mark@gmail.com\n+ *\n+ * \\date Date of creation: June, 2015\n+ *\n+ * \\brief\n+ *   This header contains the class and method definitions of\n+ *   all interface types (position/velocity).\n+ *\n+ ****************************************************************/\n+#ifndef COB_CONTROL_COB_TWIST_CONTROLLER_INCLUDE_INTERFACE_TYPES_INTERFACE_TYPE_H_\n+#define COB_CONTROL_COB_TWIST_CONTROLLER_INCLUDE_INTERFACE_TYPES_INTERFACE_TYPE_H_\n+\n+#include \"cob_twist_controller/interface_types/interface_type_base.h\"\n+\n+/* BEGIN InterfaceBuilder *****************************************************************************************/\n+/// Class providing a static method to create damping method objects.\n+class InterfaceBuilder\n+{\n+    public:\n+        InterfaceBuilder() {}\n+        ~InterfaceBuilder() {}\n+        \n+        static InterfaceBase* create_interface(ros::NodeHandle& nh,\n+                                               const TwistControllerParams &params);\n+};\n+/* END InterfaceBuilder *******************************************************************************************/\n+\n+\n+\n+\n+/* BEGIN InterfaceVelocity ****************************************************************************************/\n+class InterfaceVelocity : public InterfaceBase\n+{\n+    public:\n+        InterfaceVelocity(ros::NodeHandle& nh, const TwistControllerParams &params)\n+        : InterfaceBase(nh, params)\n+        {\n+            pub_ = nh.advertise<std_msgs::Float64MultiArray>(\"joint_group_velocity_controller/command\", 1);\n+        }\n+\n+        ~InterfaceVelocity() {}\n+\n+        virtual void process_result(const KDL::JntArray &q_dot_ik,\n+                                    std::vector<double> &initial_position);\n+};\n+/* END InterfaceVelocity **********************************************************************************************/\n+\n+\n+/* BEGIN InterfacePosition ****************************************************************************************/\n+class InterfacePosition : public InterfaceBase\n+{\n+    public:\n+        InterfacePosition(ros::NodeHandle& nh, const TwistControllerParams &params)\n+        : InterfaceBase(nh, params),\n+          iteration_counter_(0)\n+        {\n+            for(int i = 0; i < params.dof; i++)\n+            {\n+                ma_.push_back(MovingAverage());\n+                vel_support_integration_point_.push_back(0.0);\n+                vel_first_integration_point_.push_back(0.0);\n+            }","path":"cob_twist_controller/include/cob_twist_controller/interface_types/interface_type.h","position":81,"original_position":81,"commit_id":"56acd72cffd6241bb3054fdbe7bca910dbd45f21","original_commit_id":"56acd72cffd6241bb3054fdbe7bca910dbd45f21","user":{"login":"ipa-fxm-mb","id":11269199,"avatar_url":"https://avatars.githubusercontent.com/u/11269199?v=3","gravatar_id":"","url":"https://api.github.com/users/ipa-fxm-mb","html_url":"https://github.com/ipa-fxm-mb","followers_url":"https://api.github.com/users/ipa-fxm-mb/followers","following_url":"https://api.github.com/users/ipa-fxm-mb/following{/other_user}","gists_url":"https://api.github.com/users/ipa-fxm-mb/gists{/gist_id}","starred_url":"https://api.github.com/users/ipa-fxm-mb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ipa-fxm-mb/subscriptions","organizations_url":"https://api.github.com/users/ipa-fxm-mb/orgs","repos_url":"https://api.github.com/users/ipa-fxm-mb/repos","events_url":"https://api.github.com/users/ipa-fxm-mb/events{/privacy}","received_events_url":"https://api.github.com/users/ipa-fxm-mb/received_events","type":"User","site_admin":false},"body":"After closing } spend a separate line. ","created_at":"2015-07-01T13:48:31Z","updated_at":"2015-07-01T13:48:31Z","html_url":"https://github.com/ipa-fxm-mb/cob_control/pull/2#discussion_r33679348","pull_request_url":"https://api.github.com/repos/ipa-fxm-mb/cob_control/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/ipa-fxm-mb/cob_control/pulls/comments/33679348"},"html":{"href":"https://github.com/ipa-fxm-mb/cob_control/pull/2#discussion_r33679348"},"pull_request":{"href":"https://api.github.com/repos/ipa-fxm-mb/cob_control/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/ipa-fxm-mb/cob_control/pulls/2","id":38982828,"html_url":"https://github.com/ipa-fxm-mb/cob_control/pull/2","diff_url":"https://github.com/ipa-fxm-mb/cob_control/pull/2.diff","patch_url":"https://github.com/ipa-fxm-mb/cob_control/pull/2.patch","issue_url":"https://api.github.com/repos/ipa-fxm-mb/cob_control/issues/2","number":2,"state":"open","locked":false,"title":"Multi feature merge","user":{"login":"ipa-fxm-mb","id":11269199,"avatar_url":"https://avatars.githubusercontent.com/u/11269199?v=3","gravatar_id":"","url":"https://api.github.com/users/ipa-fxm-mb","html_url":"https://github.com/ipa-fxm-mb","followers_url":"https://api.github.com/users/ipa-fxm-mb/followers","following_url":"https://api.github.com/users/ipa-fxm-mb/following{/other_user}","gists_url":"https://api.github.com/users/ipa-fxm-mb/gists{/gist_id}","starred_url":"https://api.github.com/users/ipa-fxm-mb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ipa-fxm-mb/subscriptions","organizations_url":"https://api.github.com/users/ipa-fxm-mb/orgs","repos_url":"https://api.github.com/users/ipa-fxm-mb/repos","events_url":"https://api.github.com/users/ipa-fxm-mb/events{/privacy}","received_events_url":"https://api.github.com/users/ipa-fxm-mb/received_events","type":"User","site_admin":false},"body":"Code review. ","created_at":"2015-07-01T13:39:05Z","updated_at":"2015-07-01T13:48:31Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2574ad4e4a56b87b8d6e7235c6b245a6045a4732","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ipa-fxm-mb/cob_control/pulls/2/commits","review_comments_url":"https://api.github.com/repos/ipa-fxm-mb/cob_control/pulls/2/comments","review_comment_url":"https://api.github.com/repos/ipa-fxm-mb/cob_control/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ipa-fxm-mb/cob_control/issues/2/comments","statuses_url":"https://api.github.com/repos/ipa-fxm-mb/cob_control/statuses/56acd72cffd6241bb3054fdbe7bca910dbd45f21","head":{"label":"ipa-fxm:multi_feature_merge","ref":"multi_feature_merge","sha":"56acd72cffd6241bb3054fdbe7bca910dbd45f21","user":{"login":"ipa-fxm","id":508006,"avatar_url":"https://avatars.githubusercontent.com/u/508006?v=3","gravatar_id":"","url":"https://api.github.com/users/ipa-fxm","html_url":"https://github.com/ipa-fxm","followers_url":"https://api.github.com/users/ipa-fxm/followers","following_url":"https://api.github.com/users/ipa-fxm/following{/other_user}","gists_url":"https://api.github.com/users/ipa-fxm/gists{/gist_id}","starred_url":"https://api.github.com/users/ipa-fxm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ipa-fxm/subscriptions","organizations_url":"https://api.github.com/users/ipa-fxm/orgs","repos_url":"https://api.github.com/users/ipa-fxm/repos","events_url":"https://api.github.com/users/ipa-fxm/events{/privacy}","received_events_url":"https://api.github.com/users/ipa-fxm/received_events","type":"User","site_admin":false},"repo":{"id":20218732,"name":"cob_control","full_name":"ipa-fxm/cob_control","owner":{"login":"ipa-fxm","id":508006,"avatar_url":"https://avatars.githubusercontent.com/u/508006?v=3","gravatar_id":"","url":"https://api.github.com/users/ipa-fxm","html_url":"https://github.com/ipa-fxm","followers_url":"https://api.github.com/users/ipa-fxm/followers","following_url":"https://api.github.com/users/ipa-fxm/following{/other_user}","gists_url":"https://api.github.com/users/ipa-fxm/gists{/gist_id}","starred_url":"https://api.github.com/users/ipa-fxm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ipa-fxm/subscriptions","organizations_url":"https://api.github.com/users/ipa-fxm/orgs","repos_url":"https://api.github.com/users/ipa-fxm/repos","events_url":"https://api.github.com/users/ipa-fxm/events{/privacy}","received_events_url":"https://api.github.com/users/ipa-fxm/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ipa-fxm/cob_control","description":"The cob_control stack includes packages that are used to do low level control tasks with Care-O-bot hardware over ROS.","fork":true,"url":"https://api.github.com/repos/ipa-fxm/cob_control","forks_url":"https://api.github.com/repos/ipa-fxm/cob_control/forks","keys_url":"https://api.github.com/repos/ipa-fxm/cob_control/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ipa-fxm/cob_control/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ipa-fxm/cob_control/teams","hooks_url":"https://api.github.com/repos/ipa-fxm/cob_control/hooks","issue_events_url":"https://api.github.com/repos/ipa-fxm/cob_control/issues/events{/number}","events_url":"https://api.github.com/repos/ipa-fxm/cob_control/events","assignees_url":"https://api.github.com/repos/ipa-fxm/cob_control/assignees{/user}","branches_url":"https://api.github.com/repos/ipa-fxm/cob_control/branches{/branch}","tags_url":"https://api.github.com/repos/ipa-fxm/cob_control/tags","blobs_url":"https://api.github.com/repos/ipa-fxm/cob_control/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ipa-fxm/cob_control/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ipa-fxm/cob_control/git/refs{/sha}","trees_url":"https://api.github.com/repos/ipa-fxm/cob_control/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ipa-fxm/cob_control/statuses/{sha}","languages_url":"https://api.github.com/repos/ipa-fxm/cob_control/languages","stargazers_url":"https://api.github.com/repos/ipa-fxm/cob_control/stargazers","contributors_url":"https://api.github.com/repos/ipa-fxm/cob_control/contributors","subscribers_url":"https://api.github.com/repos/ipa-fxm/cob_control/subscribers","subscription_url":"https://api.github.com/repos/ipa-fxm/cob_control/subscription","commits_url":"https://api.github.com/repos/ipa-fxm/cob_control/commits{/sha}","git_commits_url":"https://api.github.com/repos/ipa-fxm/cob_control/git/commits{/sha}","comments_url":"https://api.github.com/repos/ipa-fxm/cob_control/comments{/number}","issue_comment_url":"https://api.github.com/repos/ipa-fxm/cob_control/issues/comments{/number}","contents_url":"https://api.github.com/repos/ipa-fxm/cob_control/contents/{+path}","compare_url":"https://api.github.com/repos/ipa-fxm/cob_control/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ipa-fxm/cob_control/merges","archive_url":"https://api.github.com/repos/ipa-fxm/cob_control/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ipa-fxm/cob_control/downloads","issues_url":"https://api.github.com/repos/ipa-fxm/cob_control/issues{/number}","pulls_url":"https://api.github.com/repos/ipa-fxm/cob_control/pulls{/number}","milestones_url":"https://api.github.com/repos/ipa-fxm/cob_control/milestones{/number}","notifications_url":"https://api.github.com/repos/ipa-fxm/cob_control/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ipa-fxm/cob_control/labels{/name}","releases_url":"https://api.github.com/repos/ipa-fxm/cob_control/releases{/id}","created_at":"2014-05-27T12:11:10Z","updated_at":"2015-05-04T12:25:06Z","pushed_at":"2015-07-01T13:23:04Z","git_url":"git://github.com/ipa-fxm/cob_control.git","ssh_url":"git@github.com:ipa-fxm/cob_control.git","clone_url":"https://github.com/ipa-fxm/cob_control.git","svn_url":"https://github.com/ipa-fxm/cob_control","homepage":"www.care-o-bot.org","size":2021,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"indigo_dev"}},"base":{"label":"ipa-fxm-mb:task_stack_prio_feature","ref":"task_stack_prio_feature","sha":"2a7c12b0cba38b977feb54aaa49c22f013c2abdc","user":{"login":"ipa-fxm-mb","id":11269199,"avatar_url":"https://avatars.githubusercontent.com/u/11269199?v=3","gravatar_id":"","url":"https://api.github.com/users/ipa-fxm-mb","html_url":"https://github.com/ipa-fxm-mb","followers_url":"https://api.github.com/users/ipa-fxm-mb/followers","following_url":"https://api.github.com/users/ipa-fxm-mb/following{/other_user}","gists_url":"https://api.github.com/users/ipa-fxm-mb/gists{/gist_id}","starred_url":"https://api.github.com/users/ipa-fxm-mb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ipa-fxm-mb/subscriptions","organizations_url":"https://api.github.com/users/ipa-fxm-mb/orgs","repos_url":"https://api.github.com/users/ipa-fxm-mb/repos","events_url":"https://api.github.com/users/ipa-fxm-mb/events{/privacy}","received_events_url":"https://api.github.com/users/ipa-fxm-mb/received_events","type":"User","site_admin":false},"repo":{"id":32982325,"name":"cob_control","full_name":"ipa-fxm-mb/cob_control","owner":{"login":"ipa-fxm-mb","id":11269199,"avatar_url":"https://avatars.githubusercontent.com/u/11269199?v=3","gravatar_id":"","url":"https://api.github.com/users/ipa-fxm-mb","html_url":"https://github.com/ipa-fxm-mb","followers_url":"https://api.github.com/users/ipa-fxm-mb/followers","following_url":"https://api.github.com/users/ipa-fxm-mb/following{/other_user}","gists_url":"https://api.github.com/users/ipa-fxm-mb/gists{/gist_id}","starred_url":"https://api.github.com/users/ipa-fxm-mb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ipa-fxm-mb/subscriptions","organizations_url":"https://api.github.com/users/ipa-fxm-mb/orgs","repos_url":"https://api.github.com/users/ipa-fxm-mb/repos","events_url":"https://api.github.com/users/ipa-fxm-mb/events{/privacy}","received_events_url":"https://api.github.com/users/ipa-fxm-mb/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ipa-fxm-mb/cob_control","description":"The cob_control stack includes packages that are used to do low level control tasks with Care-O-bot hardware over ROS.","fork":true,"url":"https://api.github.com/repos/ipa-fxm-mb/cob_control","forks_url":"https://api.github.com/repos/ipa-fxm-mb/cob_control/forks","keys_url":"https://api.github.com/repos/ipa-fxm-mb/cob_control/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ipa-fxm-mb/cob_control/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ipa-fxm-mb/cob_control/teams","hooks_url":"https://api.github.com/repos/ipa-fxm-mb/cob_control/hooks","issue_events_url":"https://api.github.com/repos/ipa-fxm-mb/cob_control/issues/events{/number}","events_url":"https://api.github.com/repos/ipa-fxm-mb/cob_control/events","assignees_url":"https://api.github.com/repos/ipa-fxm-mb/cob_control/assignees{/user}","branches_url":"https://api.github.com/repos/ipa-fxm-mb/cob_control/branches{/branch}","tags_url":"https://api.github.com/repos/ipa-fxm-mb/cob_control/tags","blobs_url":"https://api.github.com/repos/ipa-fxm-mb/cob_control/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ipa-fxm-mb/cob_control/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ipa-fxm-mb/cob_control/git/refs{/sha}","trees_url":"https://api.github.com/repos/ipa-fxm-mb/cob_control/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ipa-fxm-mb/cob_control/statuses/{sha}","languages_url":"https://api.github.com/repos/ipa-fxm-mb/cob_control/languages","stargazers_url":"https://api.github.com/repos/ipa-fxm-mb/cob_control/stargazers","contributors_url":"https://api.github.com/repos/ipa-fxm-mb/cob_control/contributors","subscribers_url":"https://api.github.com/repos/ipa-fxm-mb/cob_control/subscribers","subscription_url":"https://api.github.com/repos/ipa-fxm-mb/cob_control/subscription","commits_url":"https://api.github.com/repos/ipa-fxm-mb/cob_control/commits{/sha}","git_commits_url":"https://api.github.com/repos/ipa-fxm-mb/cob_control/git/commits{/sha}","comments_url":"https://api.github.com/repos/ipa-fxm-mb/cob_control/comments{/number}","issue_comment_url":"https://api.github.com/repos/ipa-fxm-mb/cob_control/issues/comments{/number}","contents_url":"https://api.github.com/repos/ipa-fxm-mb/cob_control/contents/{+path}","compare_url":"https://api.github.com/repos/ipa-fxm-mb/cob_control/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ipa-fxm-mb/cob_control/merges","archive_url":"https://api.github.com/repos/ipa-fxm-mb/cob_control/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ipa-fxm-mb/cob_control/downloads","issues_url":"https://api.github.com/repos/ipa-fxm-mb/cob_control/issues{/number}","pulls_url":"https://api.github.com/repos/ipa-fxm-mb/cob_control/pulls{/number}","milestones_url":"https://api.github.com/repos/ipa-fxm-mb/cob_control/milestones{/number}","notifications_url":"https://api.github.com/repos/ipa-fxm-mb/cob_control/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ipa-fxm-mb/cob_control/labels{/name}","releases_url":"https://api.github.com/repos/ipa-fxm-mb/cob_control/releases{/id}","created_at":"2015-03-27T11:24:17Z","updated_at":"2015-05-04T13:46:30Z","pushed_at":"2015-07-01T13:39:06Z","git_url":"git://github.com/ipa-fxm-mb/cob_control.git","ssh_url":"git@github.com:ipa-fxm-mb/cob_control.git","clone_url":"https://github.com/ipa-fxm-mb/cob_control.git","svn_url":"https://github.com/ipa-fxm-mb/cob_control","homepage":"www.care-o-bot.org","size":1758,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"indigo_dev"}},"_links":{"self":{"href":"https://api.github.com/repos/ipa-fxm-mb/cob_control/pulls/2"},"html":{"href":"https://github.com/ipa-fxm-mb/cob_control/pull/2"},"issue":{"href":"https://api.github.com/repos/ipa-fxm-mb/cob_control/issues/2"},"comments":{"href":"https://api.github.com/repos/ipa-fxm-mb/cob_control/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/ipa-fxm-mb/cob_control/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/ipa-fxm-mb/cob_control/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ipa-fxm-mb/cob_control/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/ipa-fxm-mb/cob_control/statuses/56acd72cffd6241bb3054fdbe7bca910dbd45f21"}}}}