Hello
I have downloaded some indoor (house) environments from google 3D warehouse and would like to import them in openrave. However, those environments are in collada v1.4 while openrave accepts v1.5 One naive way of importing them is by changing the file header from 1.4 to 1.5, but then openrave considers the environment as a single rigid link and not individual objects. Can anyone suggest a better method of converting v1.4 to v1.5 and/or importing them in openrave such that individual objects in the environment are retained. -- Ashesh Jain www.cs.cornell.edu/~ashesh
--
Ashesh |
Administrator
|
even if openrave opens them in one rigid like, the link geometries (via link.GetGeometries()) should contain all the individual nodes. i think you can go through that list and create new KinBody objects for every geometry via KinBody.InitFromGeometries. rosen,2013/9/17 asheshjain399 <[hidden email]> Hello ------------------------------------------------------------------------------ LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99! 1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint 2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13. http://pubads.g.doubleclick.net/gampad/clk?id=58041151&iu=/4140/ostg.clktrk _______________________________________________ Openrave-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/openrave-users |
Thanks Rosen. I tried what you suggested but I get the following error
kinbody.InitFromGeometries(geometry) TypeError: object of type 'Geometry' has no len() Do you think is this a problem with the collada file I imported? Just to remind, the collada files are obtained from google 3d ware house (here is the link to collada file).
--
Ashesh |
Administrator
|
can you try kinbody.InitFromGeometries([geometry]) 2013/9/21 asheshjain399 <[hidden email]> Thanks Rosen. I tried what you suggested but I get the following error ------------------------------------------------------------------------------ LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99! 1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint 2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/22/13. http://pubads.g.doubleclick.net/gampad/clk?id=64545871&iu=/4140/ostg.clktrk _______________________________________________ Openrave-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/openrave-users |
with kinbody.InitFromGeometries([geometry]) I get the following error:
TypeError: No registered converter was able to produce a C++ rvalue of type boost::shared_ptr<openravepy::PyKinBody::PyLink::PyGeometryInfo> from this Python object of type Geometry
--
Ashesh |
Administrator
|
oops, can you try kinbody.InitFromGeometries([geometry.GetInfo()]) 2013/9/21 asheshjain399 <[hidden email]> with kinbody.InitFromGeometries([geometry]) I get the following error: ------------------------------------------------------------------------------ LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99! 1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint 2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/22/13. http://pubads.g.doubleclick.net/gampad/clk?id=64545871&iu=/4140/ostg.clktrk _______________________________________________ Openrave-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/openrave-users |
geometry.GetInfo() shows that Geometry object has no attribute GetInfo, which I think shouldn't be happening.
env.Load('lab.skeleton.xml') kinbody = env.ReadKinBodyURI('room.dae') env.AddKinBody(kinbody,True) links = kinbody.GetLinks() print links for link in links: for geom in link.GetGeometries(): print geom.GetInfo() # This throws an error print geom.GetInfo() AttributeError: 'Geometry' object has no attribute 'GetInfo' I am using openrave v0.8.2 Thanks!!
--
Ashesh |
Administrator
|
can you try openrave master branch on git? that should have the function implemented 2013/9/22 asheshjain399 <[hidden email]> geometry.GetInfo() shows that Geometry object has no attribute GetInfo, which ------------------------------------------------------------------------------ LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99! 1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint 2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/22/13. http://pubads.g.doubleclick.net/gampad/clk?id=64545871&iu=/4140/ostg.clktrk _______________________________________________ Openrave-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/openrave-users |
Free forum by Nabble | Edit this page |