Question : Open a Developer Command Prompt
Answered by : amr-khaled-eltohamy
:: activate the ROS 2 environment
c:\opt\ros\foxy\x64\setup.bat
:: activate the Gazebo simulation environment
c:\opt\ros\foxy\x64\share\gazebo\setup.bat
set "SDF_PATH=c:\opt\ros\foxy\x64\share\sdformat\1.6"
Source : https://ms-iot.github.io/ROSOnWindows/GettingStarted/SetupRos2.html | Last Update : Fri, 04 Mar 22