Unable to enable ROS2 bridge in Windows with ROS2 Humble running in WSL2

I am running Isaac sim windows and ROS2 in WSL2.

I followed all the steps as mentioned in ROS and ROS 2 Installation — Omniverse IsaacSim latest documentation.

But when I do the steps in ROS and ROS 2 Installation — Omniverse IsaacSim latest documentation

set isaac_sim_package_path=%userprofile%\AppData\Local\ov\pkg\isaac-sim-2023.1.1

set RMW_IMPLEMENTATION=rmw_fastrtps_cpp

REM Can only be set once per terminal.
REM Setting this command multiple times will append the internal library path again potentially leading to conflicts
set PATH=%PATH%;%isaac_sim_package_path%\exts\omni.isaac.ros2_bridge\humble\lib

REM Run Isaac Sim with ROS2 Bridge Enabled
%isaac_sim_package_path%\isaac-sim.bat --/isaac/startup/ros_bridge_extension=omni.isaac.ros2_bridge

When I run the last command*(%isaac_sim_package_path%\isaac-sim.bat --/isaac/startup/ros_bridge_extension=omni.isaac.ros2_bridge)*

I am getting the following errors.

[16.801s] [ext: omni.isaac.ros2_bridge-2.5.1] startup
2024-10-01 08:30:40 [16,782ms] [Warning] [omni.isaac.ros2_bridge.scripts.extension] ROS_DISTRO env var not found, Please source ROS2 Foxy, or Humble, before enabling this extension
[16.861s] Using backup internal ROS2 humble distro
[ERROR] [1727771440.721258600] [rcl]: Error getting RMW implementation identifier / RMW implementation not installed (expected identifier of ‘rmw_fastrtps_cpp’), with error message ‘failed to load shared library ‘rmw_fastrtps_cpp.dll’ due to LoadLibrary error: 126, at C:\rh\humble310\src\ros2\rcutils\src\shared_library.c:159, at C:\rh\humble310\src\ros2\rmw_implementation\rmw_implementation\src\functions.cpp:67’, exiting with 1., at C:\rh\humble310\src\ros2\rcl\rcl\src\rcl\rmw_implementation_identifier_check.c:145

Can anyone help me with this error.

I am going to move this to the ISAAC SIM page. Please use this for future IS concerns.

This seems to be a ROS 2 issue. I found a similar issue here: ROS2 release libraries for Windows: Failed to load shared library of rmw implementation · Issue #488 · ros2/ros2_documentation · GitHub.

Looks like installing ROS 2 following ROS 2 Build Installation from aka.ms/ros resolves the issue. Could you please give it a try?