Skip to content

AirSim Windows 11 WSL2 and ROS2 not working #4292

@blakermchale

Description

@blakermchale

Bug report

  • AirSim Version/#commit: 0becf91
  • UE/Unity version: 4.27
  • autopilot version: NA
  • OS Version: Windows 11 and WSL2 Ubuntu 20.04

What's the issue you encountered?

I'm trying to run the ros2 wrapper like the ros1 wrapper from WSL2 with default quadrotor and call:

ros2 launch airsim_ros_pkgs airsim_node.launch.py host:=$WSL_HOST_IP

It ends up failing because of a timeout with 'getServerVersion' seen below:

Console Output
[INFO] [launch]: Default logging verbosity is set to INFO
[INFO] [static_transform_publisher-1]: process started with pid [26725]
[INFO] [airsim_node-2]: process started with pid [26727]
[static_transform_publisher-1] [INFO][main():98]: Spinning until killed publishing transform from 'world_ned' to 'world_enu'
[airsim_node-2] Waiting for connection - X
[airsim_node-2] Connected!
[airsim_node-2] terminate called after throwing an instance of 'rpc::timeout'
[airsim_node-2]   what():  rpc::timeout: Timeout of 60000ms while calling RPC function 'getServerVersion'
It is connecting to AirSim and I'm not sure what else could be done. I've looked through the PR #3976 and it looks like the tests were done in base Ubuntu.

Settings

Used default.

How can the issue be reproduced?

  1. Build ROS2 wrapper in WSL2 Ubuntu 20.04 with ros2 galactic
  2. Run ros2 launch airsim_ros_pkgs airsim_node.launch.py host:=$WSL_HOST_IP

Include full error message in text form

Seen above.

What's better than filing an issue? Filing a pull request :).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions