Add Gazebo Sim support while maintaining Gazebo Classic compatibility #13
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Implements migration from Gazebo Classic to Gazebo Sim (formerly Ignition Gazebo) following LCAS migration patterns. Both simulators remain functional.
Changes
Package Dependencies (
hunter_gazebo/package.xml)ros_gz_sim,ros_gz_bridge,gz_ros2_controlalongside existing Gazebo Classic dependenciesLaunch Files
launch_gz_sim.launch.pyfor Gazebo Sim usingros_gz_sim/gz_sim.launch.pyandros_gz_sim/createspawnersim_gazebo:=simargument to xacro to load only Gazebo Sim plugin/clock@rosgraph_msgs/msg/Clock[gz.msgs.ClockExecuteProcesstocontroller_manager/spawnernodeslaunch_sim.launch.pyfor Gazebo Classic to passsim_gazebo:=classicargumentRobot Description (
hunter_description/description/ros2_control.xacro)sim_gazeboargument (default: 'classic')libgazebo_ros2_control.so) loads only whensim_gazebo:=classiclibgz_ros2_control-system.so) loads only whensim_gazebo:=sim$(find ...)→$(find-pkg-share ...)Documentation
MIGRATION_GUIDE.mdwith technical details, plugin selection explanation, and testing checklistUsage
The appropriate plugin loads based on the xacro argument passed by each launch file, ensuring only one simulator plugin is active at a time.
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.