Open LN-123-hub opened 11 months ago
Because I was in a hurry to work on the project, I didn't debug in detail: the reason for the error was that simmode_name was an empty string, and it seemed that the Setting.json was not read successfully, but I have added Settings.json to the target path according to this plan https://github.com/microsoft/AirSim/issues/2009
Unfortunately it didn't work, so I forced the variable name directly in the Airlib part of the source code, and the program started. If you have other more fundamental solutions, please continue to leave a message
@LN-123-hub which settings.json do you use for this WSL setup? As in what is the location of the settings.json, is it in your windows wsl directory or in the Documents/Airsim folder on your WSL?
Bug report
What's the issue you encountered?
My computer's WSL and WIN11 have successfully communicated, but when I run the command
I encountered this error : Client Ver:1 (Min Req:1), Server Ver:1 (Min Req:1) terminate called after throwing an instance of 'std::invalid_argument' what(): Unknown SimMode: , failed to set default vehicle settings [airsim_node-2] process has died [pid 2068, exit code -6, cmd /home/tennis/AirSim-main/ros/devel/lib/airsim_ros_pkgs/airsim_node __name:=airsim_node __log:=/home/tennis/.ros/log/cc8372c4-2770-11ee-9067- 00155d5e1ba8/airsim_node-2.log]. log file: /home/tennis/.ros/log/cc8372c4-2770-11ee-9067-00155d5e1ba8/airsim_node-2*.log
Settings
This is my Settings.json,and I copy it to the WSL bacause of https://github.com/microsoft/AirSim/issues/2009,but it not works :(
1. 2.
Include full error message in text form
... logging to /home/tennis/.ros/log/cc8372c4-2770-11ee-9067-00155d5e1ba8/roslaunch-7950x-2043.log Checking log directory for disk usage. This may take a while. Press Ctrl-C to interrupt Done checking log file disk usage. Usage is <1GB.
started roslaunch server http://7950x:33935/
SUMMARY
PARAMETERS
NODES / airsim_node (airsim_ros_pkgs/airsim_node) ned_to_enu_pub (tf/static_transform_publisher)
auto-starting new master process[master]: started with pid [2054] ROS_MASTER_URI=http://localhost:11311
setting /run_id to cc8372c4-2770-11ee-9067-00155d5e1ba8 process[rosout-1]: started with pid [2065] started core service [/rosout] process[airsim_node-2]: started with pid [2068] process[ned_to_enu_pub-3]: started with pid [2069] Waiting for connection - Connected!
Client Ver:1 (Min Req:1), Server Ver:1 (Min Req:1) terminate called after throwing an instance of 'std::invalid_argument' what(): Unknown SimMode: , failed to set default vehicle settings [airsim_node-2] process has died [pid 2068, exit code -6, cmd /home/tennis/AirSim-main/ros/devel/lib/airsim_ros_pkgs/airsim_node __name:=airsim_node __log:=/home/tennis/.ros/log/cc8372c4-2770-11ee-9067-00155d5e1ba8/airsim_node-2.log]. log file: /home/tennis/.ros/log/cc8372c4-2770-11ee-9067-00155d5e1ba8/airsim_node-2*.log
What's better than filing an issue? Filing a pull request :).