{"action":"opened","issue":{"url":"https://api.github.com/repos/opensim-org/opensim-core/issues/1018","repository_url":"https://api.github.com/repos/opensim-org/opensim-core","labels_url":"https://api.github.com/repos/opensim-org/opensim-core/issues/1018/labels{/name}","comments_url":"https://api.github.com/repos/opensim-org/opensim-core/issues/1018/comments","events_url":"https://api.github.com/repos/opensim-org/opensim-core/issues/1018/events","html_url":"https://github.com/opensim-org/opensim-core/issues/1018","id":160805236,"number":1018,"title":"Path of ground body is serialized differently than path of other bodies","user":{"login":"tkuchida","id":4203505,"avatar_url":"https://avatars.githubusercontent.com/u/4203505?v=3","gravatar_id":"","url":"https://api.github.com/users/tkuchida","html_url":"https://github.com/tkuchida","followers_url":"https://api.github.com/users/tkuchida/followers","following_url":"https://api.github.com/users/tkuchida/following{/other_user}","gists_url":"https://api.github.com/users/tkuchida/gists{/gist_id}","starred_url":"https://api.github.com/users/tkuchida/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tkuchida/subscriptions","organizations_url":"https://api.github.com/users/tkuchida/orgs","repos_url":"https://api.github.com/users/tkuchida/repos","events_url":"https://api.github.com/users/tkuchida/events{/privacy}","received_events_url":"https://api.github.com/users/tkuchida/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-06-17T03:28:29Z","updated_at":"2016-06-17T03:28:29Z","closed_at":null,"body":"The following code creates a Body and attaches it to Ground with a FreeJoint:\r\n```cpp\r\nusing SimTK::Vec3;\r\n\r\nauto myModel = OpenSim::Model();\r\nmyModel.setName(\"myModel\");\r\nauto myBody = new OpenSim::Body(\"myBody\", 1., Vec3(0), SimTK::Inertia::brick(Vec3(1.)));\r\nauto myJoint = new OpenSim::FreeJoint(\"myJoint\", myModel.getGround(), *myBody);\r\nmyModel.addBody(myBody);\r\nmyModel.addJoint(myJoint);\r\n```\r\nWhen serialized, the xml looks like this:\r\n```xml\r\n...\r\n<FreeJoint name=\"myJoint\">\r\n    <!--List of connectors (structural dependencies) that this component has.-->\r\n    <connectors>\r\n        <Connector_PhysicalFrame_ name=\"parent_frame\">\r\n            <!--Name of the component this Connector should be connected to.-->\r\n            <connectee_name>../myModel/ground</connectee_name>\r\n        </Connector_PhysicalFrame_>\r\n        <Connector_PhysicalFrame_ name=\"child_frame\">\r\n            <!--Name of the component this Connector should be connected to.-->\r\n            <connectee_name>myBody</connectee_name>\r\n        </Connector_PhysicalFrame_>\r\n    </connectors>\r\n...\r\n```\r\nI believe the connectee_name of parent_frame is intended to be \"ground\", not \"../myModel/ground\". (The connectee_name is just \"ground\" in [the hopper model file used during the hackathon](https://github.com/opensim-org/opensim-core/blob/master/OpenSim/Sandbox/ExampleHopperDevice/BouncingLeg.osim#L318).)"}}
{"actor":{"display_login":"tkuchida"}}