Joined: Apr 16, 2011
Post Count: 11
Status:
Offline
Re: Plugin - Creating Objects with other Properties
Hey Nicolas, I do not have much time at the moment, but I think you can simply download it from a svn repository and check it yourself. I will try to provide you some information.
@ Emanuel: How can I obtain Width, Depth and Height from a DAE file maybe using the DAELoader Class?
You will see that there is a centre of mass added for example and some other information. I wrote the URDFPackage and u will find some important elements like HomeURDFObject, CatalogURDF... U should try to make everything somehow without changing the main code, since you might wanna upgrade. In this repository this is not possible anymore, since the one who was working on it before didn pay attention to that. So do not do the same mistake.
But you wont be fully able to not change main code. (Maybe u can also use Pluginfunctionality - I do that partially, but it is not contained above)
what are you trying to do? My purpose is to import new Objects written in URDF Format (some Robot Description FOrmat) and then to export the full home as an urdf. It almost functions.
Argentina
Joined: Jul 4, 2011
Post Count: 5
Status:
Offline
Re: Plugin - Creating Objects with other Properties
Thanks my friend. My idea is add relations between pieces and other stuff. For example, my piece of furniture have an RFID (a code) and relations with others RFID's. All this is for an application that will be used in a Mobile information system. I'm going to read your code with in the next days. Thank you very much for your help.
Argentina
Joined: Jul 4, 2011
Post Count: 5
Status:
Offline
Re: Plugin - Creating Objects with other Properties
Hello my friend. First, sorry my english.. Second, on Byron's code, he appends some attributes to CatalogPieceOfFurniture and HomePieceOfFurniture (some attributes about mass). And he extends HomeDoorOrWindow and other in GazeeboDoorOrWindow and HomeGazeeboDoorOrWindow, appending particular information. He modify the FileUserPreferences class. I'm reading the swing code now. When i finish whit that i'll write here the results.
Joined: Apr 16, 2011
Post Count: 11
Status:
Offline
Re: Plugin - Creating Objects with other Properties
Hey unrazzle, please specify which part of the code you do not understand.
The Gazebo part was not my doing, but in general this does not have anything to do with SH3D, but with the robot operating system we are trying to export the home to. This is what is meant by URDF-Export.
The import and export of URDF files is what I am working on, but does not really have anything to do with the objects.
Joined: Apr 16, 2011
Post Count: 11
Status:
Offline
Re: Plugin - Creating Objects with other Properties
Another thing I want ot mention is the following. I do not know with which version you two are working, but in general our version cannot be upgraded anymore which is really sad. So, if by any chance you can use plugins or talk with emanuel puybaret about your adjustments, do it and like this what you do can be also used to just extend SH3D funcitonality for everyone. Also you can update the program and always use the newest version of SH3D.
2nd for generating new objects: Besides creating the classes URDFPiece, HomeURDFPiece, etc. (same for Gazebo classes) If you just want to change things in the objects you need to do the following: The key classes to modify then is: homecontroller and furniturecatalogtransferhandler(for adding furniture) homefurniturecontroller: here u need to add properties, add setters and getters, and modifier functions homefurniturepanel: is what will be shown on double click. If you check svn there should be a so called class urdf-panel which will be displayed on the bottom. this class you can just use and create new buttons, etc. and