fix: Update FRI cycle time and adjust related parameters for improved synchronization

This commit is contained in:
Даниил Грабарь
2026-05-13 07:39:18 +03:00
parent 1f37a07770
commit 302eb3d8d7
6 changed files with 20 additions and 50 deletions
@@ -21,6 +21,8 @@ def _setup_controllers(context, *args, **kwargs):
simulate = LaunchConfiguration("simulate").perform(context).lower() in ("true", "1", "yes")
command_mode = LaunchConfiguration("command_mode").perform(context)
fri_cycle_ms = int(LaunchConfiguration("fri_cycle_ms").perform(context))
# JTC rate = FRI rate (1:1): каждый цикл JTC читает свежее состояние от FRI.
# При 2:1 нечётные JTC-циклы видят устаревший снапшот → чередование скорости 0/v → писк.
update_rate = 1000 // fri_cycle_ms
xacro_args = {"initial_positions_file": initial_positions_file}