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.txt
andpackage.xml
intoAirsim/ros/src/airsim_ros_pkgs/
. Copystereo_recording_node.cpp
toAirsim/ros/src/airsim_ros_pkgs/src
and build the code. - Record a rosbag with only 2 topics
imu/Imu
andodom_local_ned
. - Correct the path and file name of the recoreded rosbag in
stereo_recording_node.cpp
. - Change the
settings.json
to computer vision mode. - Run the stereo_recording_node using
rosrun
.
Contact [email protected]
or make an issue for discussion.
PRs are of course welcome.