{"action":"created","issue":{"url":"https://api.github.com/repos/CentroEPiaggio/kuka-lwr/issues/63","labels_url":"https://api.github.com/repos/CentroEPiaggio/kuka-lwr/issues/63/labels{/name}","comments_url":"https://api.github.com/repos/CentroEPiaggio/kuka-lwr/issues/63/comments","events_url":"https://api.github.com/repos/CentroEPiaggio/kuka-lwr/issues/63/events","html_url":"https://github.com/CentroEPiaggio/kuka-lwr/issues/63","id":126657619,"number":63,"title":"fril torque + position","user":{"login":"gpldecha","id":10815376,"avatar_url":"https://avatars.githubusercontent.com/u/10815376?v=3","gravatar_id":"","url":"https://api.github.com/users/gpldecha","html_url":"https://github.com/gpldecha","followers_url":"https://api.github.com/users/gpldecha/followers","following_url":"https://api.github.com/users/gpldecha/following{/other_user}","gists_url":"https://api.github.com/users/gpldecha/gists{/gist_id}","starred_url":"https://api.github.com/users/gpldecha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gpldecha/subscriptions","organizations_url":"https://api.github.com/users/gpldecha/orgs","repos_url":"https://api.github.com/users/gpldecha/repos","events_url":"https://api.github.com/users/gpldecha/events{/privacy}","received_events_url":"https://api.github.com/users/gpldecha/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/CentroEPiaggio/kuka-lwr/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-14T13:46:45Z","updated_at":"2016-01-18T09:48:31Z","closed_at":null,"body":"Sorry if I asked a similar question, but I was looking in lwr_hw_fril.hpp at the following piece of code:\r\n\r\nfor(int j=0; j < n_joints_; j++)\r\n            {\r\n              newJntPosition[j] = (float)joint_position_command_[j];\r\n              newJntAddTorque[j] = (float)joint_effort_command_[j];\r\n              newJntStiff[j] = (float)joint_stiffness_command_[j];\r\n              newJntDamp[j] = (float)joint_damping_command_[j];\r\n            }\r\n            device_->SetCommandedJointStiffness(newJntStiff);\r\n            device_->SetCommandedJointPositions(newJntPosition);\r\n            device_->SetCommandedJointDamping(newJntDamp);\r\n            device_->SetCommandedJointTorques(newJntAddTorque);\r\n\r\nIt suggests that four different hardward interfaces should be present in the kuka model since \r\none handle is associated with one resource. In the current model in the repository there is\r\nonly an additional dummy link for joint_stiffness. \r\nDo you have another model in which you an additional three dummy links ?\r\n- one link for position\r\n- one link for torque\r\n- one link for damping\r\n- one line for stiffness\r\n\r\nThanks a lot for your help.\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/CentroEPiaggio/kuka-lwr/issues/comments/172480869","html_url":"https://github.com/CentroEPiaggio/kuka-lwr/issues/63#issuecomment-172480869","issue_url":"https://api.github.com/repos/CentroEPiaggio/kuka-lwr/issues/63","id":172480869,"user":{"login":"carlosjoserg","id":4049053,"avatar_url":"https://avatars.githubusercontent.com/u/4049053?v=3","gravatar_id":"","url":"https://api.github.com/users/carlosjoserg","html_url":"https://github.com/carlosjoserg","followers_url":"https://api.github.com/users/carlosjoserg/followers","following_url":"https://api.github.com/users/carlosjoserg/following{/other_user}","gists_url":"https://api.github.com/users/carlosjoserg/gists{/gist_id}","starred_url":"https://api.github.com/users/carlosjoserg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/carlosjoserg/subscriptions","organizations_url":"https://api.github.com/users/carlosjoserg/orgs","repos_url":"https://api.github.com/users/carlosjoserg/repos","events_url":"https://api.github.com/users/carlosjoserg/events{/privacy}","received_events_url":"https://api.github.com/users/carlosjoserg/received_events","type":"User","site_admin":false},"created_at":"2016-01-18T09:48:31Z","updated_at":"2016-01-18T09:48:31Z","body":"Hi @gpldecha \r\n\r\nAs I said in #64, this is right now the priority, working on the lwr_hw_fril.hpp interface.\r\n\r\nTo answer you question:\r\n> It suggests that four different hardward interfaces should be present in the kuka model since \r\none handle is associated with one resource. In the current model in the repository there is\r\nonly an additional dummy link for joint_stiffness. \r\n> Do you have another model in which you an additional three dummy links ?\r\n\r\nNo so far. What I did do was to create a dummy hwiface called `CartesianImpedanceInterface`, such that using a controller on that interface would trigger that strategy in the robot. But this is still offline (WIP).\r\n\r\n> I can now set damping like the torque in my PositionJointInterface controller.\r\n\r\nYes, that is correct, it is basically reproducing what's been done for the stiffness, only that I've never tried with the damping anyway.\r\n\r\n> I guess now all I need to do is add something for setting the torques even if I am in JointState mode instead of effort.\r\n\r\nI didn't fully got this part, the effort state should be already in the state interface as part of the joint. Or what do you mean?\r\n\r\n"}}