moveit_controller_manager.launch: pass execution_type via pass_all_args#2928
moveit_controller_manager.launch: pass execution_type via pass_all_args#2928v4hn merged 2 commits intomoveit:masterfrom
Conversation
…gs="true" While we need to pass execution_type to fake_moveit_controller_manager.launch, the controller_manager.launch files of real-robot shouldn't be required to define this argument. However, if they don't roslaunch fails with an `unused args` exception (see moveit#2786). Passing arguments via pass_all_args should solve that issue.
I think it's not even used in the Also if the argument is removed in |
v4hn
left a comment
There was a problem hiding this comment.
I think it's not even used in the fake_moveit_controller_manager.launch, the argument is declared there but it's not used.
It's not used in the launch file, but meant to be used in substitutions in the loaded yaml file.
@rhaschke It's a nice trick I would not have thought of, but please add a comment above the include that explains why you pass all (some unnecessary) parameters.
Codecov Report
@@ Coverage Diff @@
## master #2928 +/- ##
==========================================
+ Coverage 61.33% 61.34% +0.02%
==========================================
Files 373 373
Lines 31766 31766
==========================================
+ Hits 19479 19485 +6
+ Misses 12287 12281 -6
Continue to review full report at Codecov.
|
|
@rhaschke Sorry to be nitpicking, but I think I'm missing something here. In my tests and also the panda_moveit_config the This can be seen by running I think there is nothing wrong with #2928 but if you use Personally, I liked @mintar more since it is more explicit and thus easier to see what is going on. |
|
I only tested on ROS noetic, so it could be that it works differently on different ROS versions. |
|
@rickstaa and @marioney, you are both right. I am open to both, removing or keeping the line. I agree with Rick's point that it explicitly states why we need the argument. |
|
I prefer the implicit argument passing with your new patch and would remove the unused argument slot in the real execution manager again. |
|
@v4hn I think you are right, it leads to less code and the comment explains what is happening. |
…gs (moveit#2928) While we need to pass execution_type to fake_moveit_controller_manager.launch, the controller_manager.launch files of real-robot shouldn't be required to define this argument. However, if they don't roslaunch fails with an `unused args` exception (see moveit#2786). Passing arguments via pass_all_args should solve that issue.
…gs (moveit#2928) While we need to pass execution_type to fake_moveit_controller_manager.launch, the controller_manager.launch files of real-robot shouldn't be required to define this argument. However, if they don't roslaunch fails with an `unused args` exception (see moveit#2786). Passing arguments via pass_all_args should solve that issue.
…gs (moveit#2928) While we need to pass execution_type to fake_moveit_controller_manager.launch, the controller_manager.launch files of real-robot shouldn't be required to define this argument. However, if they don't roslaunch fails with an `unused args` exception (see moveit#2786). Passing arguments via pass_all_args should solve that issue.
…gs (moveit#2928) While we need to pass execution_type to fake_moveit_controller_manager.launch, the controller_manager.launch files of real-robot shouldn't be required to define this argument. However, if they don't roslaunch fails with an `unused args` exception (see moveit#2786). Passing arguments via pass_all_args should solve that issue.
…gs (moveit#2928) While we need to pass execution_type to fake_moveit_controller_manager.launch, the controller_manager.launch files of real-robot shouldn't be required to define this argument. However, if they don't roslaunch fails with an `unused args` exception (see moveit#2786). Passing arguments via pass_all_args should solve that issue.
While we need to pass
execution_typetofake_moveit_controller_manager.launch, thecontroller_manager.launchfiles of real robots shouldn't be required to define this argument. However, if they don't,roslaunchfails with anunused argsexception.Passing the argument via
pass_all_args="true"should solve that issue.Fixes #2786.