AirSim has been known for impossible to get time-synced stereo camera AirSim#4569, AirSim#4171, AirSim#2784.
The time delay between 2 cameras is varying around 0.05 - 0.15 seconds depends on computer specs.
This repo solves above problem using the computer vision mode inspired by VIODE.
AirSim: v1.8.1 - Linux.
OS: Ubuntu 20.04 (ROS 1 - Noetic).
Unreal Engine: v4.27.
- Clone AirSim repo, copy and replace the
CMakeList.txtandpackage.xmlintoAirsim/ros/src/airsim_ros_pkgs/. Copystereo_recording_node.cpptoAirsim/ros/src/airsim_ros_pkgs/srcand build the code. - Record a rosbag with only 2 topics
imu/Imuandodom_local_ned. - Correct the path and file name of the recoreded rosbag in
stereo_recording_node.cpp. - Change the
settings.jsonto computer vision mode. - Run the stereo_recording_node using
rosrun.
Contact hoangvietdo@sju.ac.kr or make an issue for discussion.
PRs are of course welcome.