{"action":"created","issue":{"url":"https://api.github.com/repos/robotology/idyntree/issues/424","repository_url":"https://api.github.com/repos/robotology/idyntree","labels_url":"https://api.github.com/repos/robotology/idyntree/issues/424/labels{/name}","comments_url":"https://api.github.com/repos/robotology/idyntree/issues/424/comments","events_url":"https://api.github.com/repos/robotology/idyntree/issues/424/events","html_url":"https://github.com/robotology/idyntree/issues/424","id":304767759,"number":424,"title":"Use Joint constructor in Matlab/Octave","user":{"login":"traversaro","id":1857049,"avatar_url":"https://avatars2.githubusercontent.com/u/1857049?v=4","gravatar_id":"","url":"https://api.github.com/users/traversaro","html_url":"https://github.com/traversaro","followers_url":"https://api.github.com/users/traversaro/followers","following_url":"https://api.github.com/users/traversaro/following{/other_user}","gists_url":"https://api.github.com/users/traversaro/gists{/gist_id}","starred_url":"https://api.github.com/users/traversaro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/traversaro/subscriptions","organizations_url":"https://api.github.com/users/traversaro/orgs","repos_url":"https://api.github.com/users/traversaro/repos","events_url":"https://api.github.com/users/traversaro/events{/privacy}","received_events_url":"https://api.github.com/users/traversaro/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-03-13T13:37:48Z","updated_at":"2018-03-13T14:26:36Z","closed_at":null,"author_association":"OWNER","body":"Originally posted by @aikolina  in https://github.com/robotology/idyntree/issues/175 :+1: \r\n\r\nI have a problem to use the RevoluteJoint constructor in Matlab.\r\n\r\nI have tried [all the possible variants](http://wiki.icub.org/codyco/dox/html/idyntree/html/classiDynTree_1_1RevoluteJoint.html#aa09aee905d118d03a9d22b5bdc98e132) (two/four/no arguments), and I always get the error message **No matching constructor**.\r\n\r\n```Matlab\r\n>> planar_model\r\nError using iDynTree.RevoluteJoint (line 85)\r\nNo matching constructor\r\n\r\nError in planar_model (line 37)\r\nankleJoint = iDynTree.RevoluteJoint();\r\n \r\n>> planar_model\r\nError using iDynTree.RevoluteJoint (line 85)\r\nNo matching constructor\r\n\r\nError in planar_model (line 38)\r\nankleJoint = iDynTree.RevoluteJoint(baseLink, lowerLegLink, baseLink_H_lowerLegLink, rotationAxis);\r\n \r\n>> planar_model\r\nError using iDynTree.RevoluteJoint (line 85)\r\nNo matching constructor\r\n\r\nError in planar_model (line 39)\r\nankleJoint = iDynTree.RevoluteJoint(baseLink_H_lowerLegLink, rotationAxis);\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/robotology/idyntree/issues/comments/372683787","html_url":"https://github.com/robotology/idyntree/issues/424#issuecomment-372683787","issue_url":"https://api.github.com/repos/robotology/idyntree/issues/424","id":372683787,"user":{"login":"traversaro","id":1857049,"avatar_url":"https://avatars2.githubusercontent.com/u/1857049?v=4","gravatar_id":"","url":"https://api.github.com/users/traversaro","html_url":"https://github.com/traversaro","followers_url":"https://api.github.com/users/traversaro/followers","following_url":"https://api.github.com/users/traversaro/following{/other_user}","gists_url":"https://api.github.com/users/traversaro/gists{/gist_id}","starred_url":"https://api.github.com/users/traversaro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/traversaro/subscriptions","organizations_url":"https://api.github.com/users/traversaro/orgs","repos_url":"https://api.github.com/users/traversaro/repos","events_url":"https://api.github.com/users/traversaro/events{/privacy}","received_events_url":"https://api.github.com/users/traversaro/received_events","type":"User","site_admin":false},"created_at":"2018-03-13T14:26:36Z","updated_at":"2018-03-13T14:26:36Z","author_association":"OWNER","body":"The problem is affecting also the Python bindings:\r\n~~~\r\n44: ======================================================================\r\n44: ERROR: testPrismaticJoint (__main__.JointTest)\r\n44: ----------------------------------------------------------------------\r\n44: Traceback (most recent call last):\r\n44:   File \"joints.py\", line 22, in testPrismaticJoint\r\n44:     prismJoint = iDynTree.PrismaticJoint();\r\n44: AttributeError: 'module' object has no attribute 'PrismaticJoint'\r\n44: \r\n44: ======================================================================\r\n44: ERROR: testRevoluteJoint (__main__.JointTest)\r\n44: ----------------------------------------------------------------------\r\n44: Traceback (most recent call last):\r\n44:   File \"joints.py\", line 25, in testRevoluteJoint\r\n44:     revJoint = iDynTree.RevoluteJoint();\r\n44:   File \"../../python/iDynTree.py\", line 4220, in __init__\r\n44:     raise AttributeError(\"No constructor defined - class is abstract\")\r\n44: AttributeError: No constructor defined - class is abstract\r\n44: \r\n44: ----------------------------------------------------------------------\r\n~~~\r\n\r\nThis error is a bit more clear. Apparently, for some reason SWIG thinks that the class is abstract and does not generate a constructor. "}}
{"actor":{"display_login":"traversaro"}}