-
Notifications
You must be signed in to change notification settings - Fork 498
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
Add option to automatically generate ros2_control's fake components description file #1283
Conversation
Codecov Report
@@ Coverage Diff @@
## main #1283 +/- ##
==========================================
- Coverage 61.48% 61.47% -0.01%
==========================================
Files 274 274
Lines 24940 24940
==========================================
- Hits 15332 15329 -3
- Misses 9608 9611 +3
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm OK with this. It looks like you satisfied my concern from #1261
moveit_configs_utils/moveit_configs_utils/moveit_configs_builder.py
Outdated
Show resolved
Hide resolved
<state_interface name="velocity"> | ||
<param name="initial_value">0.0</param> | ||
</state_interface> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This defaults to 0.
<state_interface name="velocity"> | |
<param name="initial_value">0.0</param> | |
</state_interface> | |
<state_interface name="velocity"/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was getting a warning about not explicitly setting this, @destogl is this needed?
moveit_configs_utils/moveit_configs_utils/moveit_configs_builder.py
Outdated
Show resolved
Hide resolved
moveit_configs_utils/moveit_configs_utils/moveit_configs_builder.py
Outdated
Show resolved
Hide resolved
"initial_positions" | ||
] | ||
if initial_positions is None: | ||
# For backward compatibility check for config/initial_positions.yaml |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you should just print a warning here. No need to maintain backward compatability in my opinion
moveit_configs_utils/moveit_configs_utils/moveit_configs_builder.py
Outdated
Show resolved
Hide resolved
As mentioned in the maintainers meeting last week, I have some code that does this the MSA side. Currently both I guess my main question is: when is the ros2_control tag need to be used? |
Any time you're using ros2_control at all, that tag has to be in the URDF somewhere. Simulation or hardware |
What is the "fake" part then? |
Sorry I didn't understand the question completely at first. For you auto-generating these templates, this should always be fine. It's what allows the RViz simulation without needing Gazebo/Ignition. That's a nice, simple default that ought to be available for everybody in my opinion.
If people want to start using real hardware, they'll need to add their own tag. Like here for the UR driver:
|
…ontrol fake components description from URDF file
75e5380
to
7cd6bc3
Compare
This pull request is in conflict. Could you fix it @JafarAbdi? |
@JafarAbdi Do you think that #1299 covers everything you wanted to do with this PR? |
This pull request is in conflict. Could you fix it @JafarAbdi? |
@AndyZe or @JafarAbdi do you know what should be done next with this change? |
This pull request is in conflict. Could you fix it @JafarAbdi? |
This PR has many conflicts and was abandoned. It seems like a useful change so I'll create an issue to track finishing this work. |
Description
Reduces the number of required trajectory execution config files for sim by 3 (out of 5), all the information needed to generate the fake components description file is already in the URDF file
See the discussion in #1261
Checklist