Skip to content

Conversation

@MarcOlivierFecteau
Copy link
Collaborator

This commit attempts to fix issues with Gazebo for GRO830's lab by reverting changes made in A24.

NOTES:

  • As required when migrating from Ignition to Gazebo, the environment variable for Gazebo's ressource path's prefix is changed to "GZ_SIM".
  • (2025-09-18) This commit is awaiting testing: do NOT merge yet!

This commit aims to fix the final issue with GRO830's lab
(exercise 12.4) by properly setting the GZ_SIM_RESOURCE_PATH environment
variable in the launch file for the Gazebo simulation.

The main culprit for this issue seems to be that the resource paths were
added to the incorrect environment variable. IGN_GAZEBO_RESOURCE_PATH is
for Gazebo Fortress (for ROS2 Humble). From now on, "GZ_SIM" is the
correct prefix to use for environment variables.

NOTES:

- This commit has NOT yet been fully tested on a lab PC, so do NOT merge
yet!
@MarcOlivierFecteau MarcOlivierFecteau force-pushed the fix/gro830-lab-gazebo branch 2 times, most recently from 3307657 to 813d4f9 Compare September 19, 2025 16:07
@MarcOlivierFecteau MarcOlivierFecteau marked this pull request as ready for review September 19, 2025 16:09
@MarcOlivierFecteau MarcOlivierFecteau added the bug Something isn't working label Sep 19, 2025
@MarcOlivierFecteau MarcOlivierFecteau changed the title Revert (partial) of 766cc95c2d1e28bb64736c3475dc40d660730443 Fix Gazebo resource path issue for GRO830`s lab. Sep 19, 2025
Copy link
Collaborator

@chameau5050 chameau5050 left a comment

Choose a reason for hiding this comment

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

just a tiny change

This should ensure the existing values in one's configuration are not
overwritten by the launch file.

TODO:

- Confirm `AppendEnvironmentVariable` creates the environment variable
if it does not exist, which is the case for the faculty's lab PCs,
BEFORE merging the PR.
@MarcOlivierFecteau MarcOlivierFecteau requested review from MathieuMRodrigue and removed request for IanLalonde September 27, 2025 00:03
@MarcOlivierFecteau MarcOlivierFecteau merged commit 11673d4 into SherbyRobotics:ros2 Sep 27, 2025
2 checks passed
@MarcOlivierFecteau MarcOlivierFecteau deleted the fix/gro830-lab-gazebo branch September 27, 2025 00:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants