-
Notifications
You must be signed in to change notification settings - Fork 112
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
Fix for issue #169: load xacros in MoveIt cfgs instead of urdfs #170
Fix for issue #169: load xacros in MoveIt cfgs instead of urdfs #170
Conversation
5fd6779
to
d4ebbd5
Compare
+1 |
@shaun-edwards: I've changed my approach: instead of including
Similar idea, different implementation. |
Instead of loading the '.urdf' top-levels, this change makes all MoveIt config pkgs load the top-level '.xacro'. Even though users are expected to only use the provided MoveIt config pkgs as examples or for initial exploratory planning, they should still be easily editable and updateable. By loading the top-level xacro directly, users avoid having to run the xacro through xacro.py, allowing them to skip that step. In addition, this change updates demo.launch and moveit_planning_execution.launch to use the 'load_*.launch' files provided by the robot support pkgs. This is more in-line with the recommended use of launch files in support pkgs, as it uses the 'public api' of the support pkg (as described in [1]), instead of directly accessing the xacro. [1] http://wiki.ros.org/Industrial/Tutorials/WorkingWithRosIndustrialRobotSupportPackages
This has less maintenance overhead, as there are no changes to the auto-generated MoveIt launch files (only to demo.launch and moveit_planning_execution.launch).
b4642c5
to
cda90fb
Compare
Ping? |
Doesn't moveit allow you to specify a xacro in the setup wizard? And presumably doesn't it auto generate files that use a xacro instead of a urdf? |
Yes to both questions. The resulting config pkg then looks exactly like what this PR introduces, minus the inclusion of the So first get the pkgs to do what the Setup Assistant would've generated, then suppress loading the |
Why change demo.launch? What is the benefit if using our _load launch file? |
@shaun-edwards wrote:
Because it should not let
From Working with ROS-Industrial Robot Support Packages - Using the provided launch files (here):
This PR tries to implement that suggestion by making use of the abstraction provided by the The MoveIt Setup Assistant would still directly load the |
I'd like to limit the number of extra steps required after generating a moveit config. It's bad enough that we have to create a |
Yes, but unfortunately it cannot be avoided if we want the two to be consistent.
See above: I feel it is important that the two are consistent, so it's either/or for me. |
+1 to merging this. However, I don't think we can make this a blanket requirement until we have an automatic generation script (either the MoveIt setup assistant or an update to the generation scripts) |
I'm going to 'mothball' this one for now, at least until I can update the MoveIt setup assistant to also support 'loading' launch files. Otherwise this will still require too much manual editing of files. |
Closing this one. Replaced by #208, which is somewhat simpler, but doesn't address the duplication. |
As per subject.
Makes MoveIt load top-level xacros instead of the urdfs. This should make editing / updating support pkgs a bit more convenient, as the
xacro xacro.py ..
step is not needed then.