HKUST-Aerial-Robotics / APACE

APACE: Agile and Perception-aware Trajectory Generation for Quadrotor Flights (ICRA2024)
GNU General Public License v3.0
37 stars 1 forks source link

运行命令 roslaunch airsim_ctrl ctrl_md_exploration.launch出现报错 #1

Open ltf1001 opened 2 months ago

ltf1001 commented 2 months ago

感谢作者分享如此杰出的工作。当我在运行此代码时,运行到roslaunch airsim_ctrl ctrl_md_exploration.launch出现了错误,错误为 WARNING: [/home/dell/APACE/src/APACE/airsim_ctrl/launch/ctrl_md_exploration.launch] unknown attribute 'type' [airsim_node-1] process has died [pid 1829541, exit code -6, cmd /home/dell/APACE/devel/lib/airsim_ros_pkgs/airsim_node __name:=airsim_node __log:=/home/dell/.ros/log/52e60206-3246-11ef-94d3-1515a4912863/airsim_node-1.log]. log file: /home/dell/.ros/log/52e60206-3246-11ef-94d3-1515a4912863/airsim_node-1*.log两个错误。完整的报错: ... logging to /home/dell/.ros/log/52e60206-3246-11ef-94d3-1515a4912863/roslaunch-dell-System-Product-Name-1829527.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://dell-System-Product-Name:33575/

SUMMARY

PARAMETERS

NODES / airsim_ctrl (airsim_ctrl/Ctrl_node) airsim_node (airsim_ros_pkgs/airsim_node) ned_to_enu_pub (tf/static_transform_publisher) world_pub (tf/static_transform_publisher)

WARNING: [/home/dell/APACE/src/APACE/airsim_ctrl/launch/ctrl_md_exploration.launch] unknown attribute 'type' ROS_MASTER_URI=http://localhost:11311

process[airsim_node-1]: started with pid [1829541] WARNING: Package name "TD3" does not follow the naming conventions. It should start with a lower case letter and only contain lower case letters, digits, underscores, and dashes. process[ned_to_enu_pub-2]: started with pid [1829542] process[world_pub-3]: started with pid [1829543] process[airsim_ctrl-4]: started with pid [1829548] [ INFO] [1719295525.540862826]: Initial value for hov_thr set to 0.59/0.59 [ INFO] [1719295525.541403919]: Hovering thrust kalman filter is NOT used. 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-1] process has died [pid 1829541, exit code -6, cmd /home/dell/APACE/devel/lib/airsim_ros_pkgs/airsim_node __name:=airsim_node __log:=/home/dell/.ros/log/52e60206-3246-11ef-94d3-1515a4912863/airsim_node-1.log]. log file: /home/dell/.ros/log/52e60206-3246-11ef-94d3-1515a4912863/airsim_node-1*.log

。我应该如何解决这个错误?

xchencq commented 2 months ago

Hi Andre, thank you for your interest!

I noticed an error message "failed to set default vehicle settings". And the error may due to a settings file missing.

I've just updated the repo with a settings.json file. Please move this settings.json file from the repository to ~/Documents/AirSim folder and replace the original one if any.

Thank you again and feel free for any other questions.