Env. Variables on launch

On Part2 - Build a Robot, under “Spawn using Ignition Spawn Service” we do
export GZ_SIM_RESOURCE_PATH=/home/user/ros2_ws/src/robot_description/urdf:/home/user/ros2_ws/src

Why is it that under “Spawn using ROS2 Launch File” the launch file sets the variable “IGN_GAZEBO_RESOURCE_PATH” instead of “GZ_SIM_RESOURCE_PATH”? More importantly, why does it work?

Thank you!

Edit: Even on Part 3, some examples also use ign.messages for the message types, but these commands fail…

Good point @clusher.

Let me get our experts to clarify this.

Hi @clusher ,

Please refer to this post: [BUG] - Chapter 3.2 Bridge not working - #2 by girishkumar.kannan
The above post is the reason why IGN_GAZEBO_RESOURCE_PATH works and GZ_SIM_RESOURCE_PATH does not work.

Regards,
Girish

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.