Skip to content
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

Added support for using ROS 2 parameters to spawn entities in Gazebo using ros_gz_sim::create #475

Merged
merged 5 commits into from
Dec 28, 2023

Conversation

Ayush1285
Copy link
Contributor

@Ayush1285 Ayush1285 commented Dec 25, 2023

🎉 New feature

Closes #459

Summary

Added ROS 2 parameters support in ros_gz_sim::create node, while preserving the existing behavior. ROS parameters will be checked first, if not found then will revert to Gflags arguments.

Test it

Launch the demo launch file from the ros_gz_sim_demos package.
ros2 launch ros_gz_sim_demos robot_description_publisher.launch.py

Checklist

  • Signed all commits for DCO
  • Added tests
  • Added example and/or tutorial
  • Updated documentation (as needed)
  • Updated migration guide (as needed)
  • Consider updating Python bindings (if the library has them)
  • codecheck passed (See contributing)
  • All tests passed (See test coverage)
  • While waiting for a review on your PR, please help review another open pull request to support the maintainers

Note to maintainers: Remember to use Squash-Merge and edit the commit message to match the pull request summary while retaining Signed-off-by messages.

Copy link
Collaborator

@ahcorde ahcorde left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

include a TODO to remove Gflags in ROS-J

ros_gz_sim/src/create.cpp Show resolved Hide resolved
Signed-off-by: Ayush1285 <[email protected]>
Signed-off-by: Ayush1285 <[email protected]>
@Ayush1285 Ayush1285 requested a review from ahcorde December 27, 2023 05:39
ros_gz_sim/src/create.cpp Outdated Show resolved Hide resolved
Signed-off-by: Ayush1285 <[email protected]>
@ahcorde ahcorde merged commit c610636 into gazebosim:ros2 Dec 28, 2023
4 checks passed
@ahcorde
Copy link
Collaborator

ahcorde commented Dec 28, 2023

@Ayush1285 Thank you for the contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Make ros_gz_sim::create use ROS parameters
2 participants