-
Notifications
You must be signed in to change notification settings - Fork 780
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
[ros2] Port spawn/delete methods #808
Conversation
1cb8c76
to
6843852
Compare
Thanks for the PR @j-rivero ! I'll pick it up from here since you're OOO. My current plan is to:
|
Some convenient commands to test spawning: SDF modelStatic model with a visual
With a plugin, without
With a plugin, with
SDF light
URDF robot
|
…rip since it's not needed, simplify Is* functions
43fef56
to
d1e3cad
Compare
Migration guide: ROS 2 Migration: Spawn and delete |
curious if in gazebo a model and light could both exist with the same name? (trying to think of side-effects of merging the services) |
That's a valid concern. Gazebo doesn't enforce name uniqueness among different entity types, which means there can be different entities with the same scoped name, which causes several issues like this one. But that isn't something which can be fixed from
|
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.
Reviewed the migration guide entry as well and it looks good too!
Part of the re-factor works for issue #779
This PR will generate the
gazebo_ros_factory
plugin that should take care of the spawn and delete methods. I did not touch most the code that manages the XML although there is plenty of space there to improve.I've fixed the problems with uncrustify and other cpp checks but the PR lacks of tests (sorry about that) and I did not integrate the plugin in the standard calls so it can be consider a WIP until we do it.