Debugging with Robot_Localization
I am currently facing a problem where I am getting the following error:
[ekf_node-1] terminate called after throwing an instance of 'std::runtime_error'
[ekf_node-1] what(): can't subtract times with different time sources [1 != 2]
[ERROR] [ekf_node-1]: process has died [pid 43657, exit code -6, cmd '/home/tonimand/ros2_rob_loc/install/robot_localization/lib/robot_localization/ekf_node --ros-args -r __node:=ekf_filter_node --params-file /home/tonimand/ros2_rob_loc/install/robot_localization/share/robot_localization/params/ekf.yaml'].
while working with the default ekf.launch.py file whereas I have 1 odometry and 1 IMU as input, and I already made sure that the header-stamps in there are in SYSTEM_TIME with
time = Clock()
msg.header.stamp = time.now().to_msg()
where I get a logger message confirming that time.now() is a SYSTEM_TIME. However something seems to be still in ROS_TIME apparently.
My question now is: how do I actually debug with Robot_Localization? I set Debug to true, and the file is being generated, but it basically just ends at a random point where it won't tell me what error happened. I'd like to understand what is going on and causing the troubles. Any help is appreciated. If necessary, I can provide the param-files, but as I said, I really only enabled debug and set my odom0 and imu0 to my published topics.