-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support saving to macro/xacro file structure #51
Comments
@akgoins: can you elaborate a bit more on how you'd like those break points to work? URDFs encode a tree structure, so break points would necessarily have to be inserted at specific places in branches, correct? Do you have any ideas about how to deal with macro arguments? Would users be free in specifying whatever arguments they want? If not: are we going to restrict them? And what kind of UI would you like to see: allow arbitrary expressions in the property browser widget, or should there be some export wizard where certain values can be replaced with xacro properties? |
@gavanderhoorn, Yes, the break points would be inserted into the "chain" tree where the joint structure is shown. This would allow the user to place the break at the desired location(s) in the tree, separating end-effector from robot, or robot arm from mobile platform, etc. I was originally thinking that we might keep the tree structure intact, but I am now thinking that it might be easiest to separate the chain into two separate RobotModel objects (more discussion about this later). Initially, I would think that the first commit might not support macro arguments. In order to support them, there would have to be a separate window for macro options that would allow the user to insert and define arguments and values. We have two ways of supporting this:
As for UI, I was thinking that in the top window, instead of having the RobotModel be the top level, we could add at the same level a Xacro option which can include all of the arguments and values which will be passed into the lower level macro files which get called. Each macro file could be its own separate list in the window so that the view now looks like: Xacro where each item can be selected, expanded, and options edited. This would make the delineation between files the clearest. |
As a group, we primarily work from xacros in our organization. This would be quite helpful to be able to output xacros from this utility. Tool is fantastic so far and this would be a really helpful addition, |
Instead of only being able to save to a URDF, we could add a right click option to the link/joint tree on the left to "insert xacro break point". This would create two visible horizontal rules that could be shifted up/down in order to define what gets saved to a macro.xacro file. To distinguish between multiple macro.xacro files (e.g. robot vs. EE), each set of horizontal rules could be colored differently or have a different width. The user would have the option to export as a single URDF, or as multiple macro.xacro files with one top level .xacro file. Upon export, there would be several prompts to give file names for each macro file or have a way to edit properties for each subsection in the tree. This would also have to have a right click option to be able to delete the break points if they are no longer desired.
The text was updated successfully, but these errors were encountered: