|
Sweet Home 3D Forum » List all forums » » Forum: Developers » » » Thread: Plugin - Creating Objects with other Properties |
||
| Print at Dec 20, 2025, 6:44:24 AM |
|
|
| Posted by Byron at Jul 8, 2011, 10:24:39 AM |
|
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? Regards Byron |
| Posted by sicodelicos2003 at Jul 8, 2011, 12:17:22 PM |
|
Re: Plugin - Creating Objects with other Properties Thanks. I'm checking now!! Thanks again |
| Posted by Byron at Jul 8, 2011, 9:22:11 PM |
|
Re: Plugin - Creating Objects with other Properties Here this is the repository. https://vmi.lmt.ei.tum.de/svn/vmi-ros-pkg/trunk/sweetgazebo/sweetgazebo 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. Tell me whether u can check out the folder! |
| Posted by Byron at Jul 8, 2011, 9:22:44 PM |
|
Re: Plugin - Creating Objects with other Properties oh yeah it is a svn repository. |
| Posted by sicodelicos2003 at Jul 9, 2011, 6:28:38 PM |
|
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. |
| Posted by unrazzle at Jul 31, 2011, 9:46:36 AM |
|
Re: Plugin - Creating Objects with other Properties sicodelicos2003, did you get anywhere reading Byron's code? i'm new to java and eclipse and i don't understand what Byron's doing in his code. Byron's code is hooked up with playerstage.sourceforge.net/gazebo and i don't understand how to run it to see what changes he made to SH3D. i'm trying to add new properties to furniture objects (for example, 'door style', 'door hardware', etc.). i appreciate any help you can give. thanks |
| Posted by unrazzle at Jul 31, 2011, 9:54:57 AM |
|
Re: Plugin - Creating Objects with other Properties Byron, can you give me a little better idea of what you're doing here? i'm new to java and eclipse and i don't understand what you're doing in your code. i can't even find any SH3D code on your svn site that i can read. i'm trying to add new properties to furniture objects (for example, 'door style', 'door hardware', etc.). thanks for your help. |
| Posted by sicodelicos2003 at Jul 31, 2011, 2:36:08 PM |
|
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. |
| Posted by Byron at Aug 1, 2011, 10:11:04 AM |
|
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. |
| Posted by Byron at Aug 1, 2011, 10:17:40 AM |
|
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 |
|
|
|
Current timezone is GMT Dec 20, 2025, 6:44:24 AM |