-
Notifications
You must be signed in to change notification settings - Fork 4.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AirSim with ROS WSL2 Connection Error: rpc::rpc_error #3667
Comments
The AirSim version isn't mentioned in the issue description, please do update the same!. Assuming you're using the 1.4.0 binaries, and the latest master for the ROS wrapper in WSL, I think the problem is being caused by #3536. You could checkout the master branch at commit 6799dc1 (just before the PR merge), and it should work. Note that you'll have to use the exact same settings in Windows as well as WSL in the Documents folder. If it doesn't work then something else is the problem. If not using the latest master ROS wrapper, or using source built latest master on Windows also for the simulation, then disregard above, and something else is the issue. Update: Added a commit in #3635 which falls back to reading from local settings if the API doesn't exist. If possible, could you please try it out and see if it fixes the problem |
We have encountered the same issue today. The "AirSim" on Ubuntu 18.04 is the client , and the Win10 pc runs a custom environment on UE4 4.25 with Airsim plugin. We got the
on the Ubuntu 18.04 , when we run the We followed all the steps on the Creating and Setting Up Unreal Environment Btw, if we use another scene made laster year (with an earlier version of Airsim) with the same Any idea how we may fix the bug? Here is the settings file.
|
I think the problem lies with the combination settings being used in both the cases, and with a behaviour change in AirSim parsing them, see #3726 @racheraven Unless you're using a modified version of AirSim, many of the fields in your settings don't exist at all. The PX4, SimpleFlight elements should be inside |
I have a similar problem. I am working on connecting ROS (in WSL2) to AirSim on windows 10. My AirSim environment is the City latest release (v1.5). The ROS on ubuntu 18 is also working properly. When I try to run this code roslaunch airsim_ros_pkgs airsim_node.launch output:=screen host:=$WSL_HOST_IP started roslaunch server http://DESKTOP-4BJ7Q09:40949/ SUMMARYPARAMETERS
NODES ROS_MASTER_URI=http://localhost:11311 process[airsim_node-1]: started with pid [392] Client Ver:1 (Min Req:1), Server Ver:1 (Min Req:1) And here is my settings.json files which are located in Documents/AirSim folder of both Windows 10 and WSL/Ubuntu:
I guess my settings.json has what @rajat2004 mentioned. Anybody knows how can I fix this? |
I've been trying to connect my WSL2 ROS instance to AirSim on Windows.
Following the instructions in the docs: https://microsoft.github.io/AirSim/airsim_ros_pkgs/, when I run the command roslaunch airsim_ros_pkgs airsim_node.launch output:=screen host:=$WSL_HOST_IP it gets connected, but starts outputting this error:
I am currently using WSL2 running Ubuntu 18.04, UnrealEngine4 version
These are the settings in my settings.json:
If it helps, this was the closest error I think I could find: #3095
The text was updated successfully, but these errors were encountered: