"what(): can't subtract times with different time sources [2 != 1]" error when spawning diff_drive_controller on ros2_control
I'm using ros2_control to control my robot. After exectue controller_manager, when I spawned "diff_drive_controller" I have this error.
[ros2_control_node-1] [INFO] [1632907663.808010997] [controller_manager]: update rate is 50 Hz
[ros2_control_node-1] [INFO] [1632907695.226861708] [controller_manager]: Loading controller 'diff_drive_controller'
[ros2_control_node-1] [INFO] [1632907695.255700365] [controller_manager]: Configuring controller 'diff_drive_controller'
[ros2_control_node-1] terminate called after throwing an instance of 'std::runtime_error'
[ros2_control_node-1] what(): can't subtract times with different time sources [2 != 1]
another terminal shown as
$ ros2 control load_controller --set-state start diff_drive_controller
Sucessfully loaded controller diff_drive_controller into state active
I tried add parameter use_sim_time: True
to controller_manager, diff_drive_controller.. but result is same..
How can I solve this error?