{"action":"created","issue":{"url":"https://api.github.com/repos/personalrobotics/or_ompl/issues/34","labels_url":"https://api.github.com/repos/personalrobotics/or_ompl/issues/34/labels{/name}","comments_url":"https://api.github.com/repos/personalrobotics/or_ompl/issues/34/comments","events_url":"https://api.github.com/repos/personalrobotics/or_ompl/issues/34/events","html_url":"https://github.com/personalrobotics/or_ompl/issues/34","id":114337219,"number":34,"title":"getValidSegmentLength() returns 0 at planner factory constructor call","user":{"login":"Shushman","id":1007251,"avatar_url":"https://avatars.githubusercontent.com/u/1007251?v=3","gravatar_id":"","url":"https://api.github.com/users/Shushman","html_url":"https://github.com/Shushman","followers_url":"https://api.github.com/users/Shushman/followers","following_url":"https://api.github.com/users/Shushman/following{/other_user}","gists_url":"https://api.github.com/users/Shushman/gists{/gist_id}","starred_url":"https://api.github.com/users/Shushman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Shushman/subscriptions","organizations_url":"https://api.github.com/users/Shushman/orgs","repos_url":"https://api.github.com/users/Shushman/repos","events_url":"https://api.github.com/users/Shushman/events{/privacy}","received_events_url":"https://api.github.com/users/Shushman/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/personalrobotics/or_ompl/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-10-30T19:17:01Z","updated_at":"2015-11-11T18:39:26Z","closed_at":"2015-11-10T19:02:34Z","body":"At the time my planner factory's constructor is called, it needs `space->getLongestValidSegmentLength()`, which returns 0. `space->getMaximumExtent()` also returns 0, while `space->getLongestValidSegmentFraction()` returns a non-zero value."},"comment":{"url":"https://api.github.com/repos/personalrobotics/or_ompl/issues/comments/155871431","html_url":"https://github.com/personalrobotics/or_ompl/issues/34#issuecomment-155871431","issue_url":"https://api.github.com/repos/personalrobotics/or_ompl/issues/34","id":155871431,"user":{"login":"cdellin","id":2708448,"avatar_url":"https://avatars.githubusercontent.com/u/2708448?v=3","gravatar_id":"","url":"https://api.github.com/users/cdellin","html_url":"https://github.com/cdellin","followers_url":"https://api.github.com/users/cdellin/followers","following_url":"https://api.github.com/users/cdellin/following{/other_user}","gists_url":"https://api.github.com/users/cdellin/gists{/gist_id}","starred_url":"https://api.github.com/users/cdellin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cdellin/subscriptions","organizations_url":"https://api.github.com/users/cdellin/orgs","repos_url":"https://api.github.com/users/cdellin/repos","events_url":"https://api.github.com/users/cdellin/events{/privacy}","received_events_url":"https://api.github.com/users/cdellin/received_events","type":"User","site_admin":false},"created_at":"2015-11-11T18:39:26Z","updated_at":"2015-11-11T18:39:26Z","body":"I can't reproduce this; it appears to work for me with the new `setup()` call.  I attached a minimal test case below (extract with `patch -p0 < ompl_setup_test.patch.txt`).  @Shushman, could you try this?  The output should be:\r\n\r\n```\r\n[OMPLConversions.cpp:173 CreateStateSpace] Robot specifies DOF weights. Only unit weights are supported by OMPL; planning will commence as if there are no weights.\r\nspace getValidSegmentLength(): 0.011796\r\n[OMPLPlanner.cpp:237 CreatePlanner] Failed creating planner.[OMPLPlanner.cpp:211 InitPlan] Failed creating OMPL planner.\r\n```\r\n\r\n[ompl_setup_test.patch.txt](https://github.com/personalrobotics/or_ompl/files/32164/ompl_setup_test.patch.txt)\r\n"}}