跳到主要内容
版本:1.2.0

切换 Policy

只在当前 group 为 locomotion 或 motion_tracking 时有效。其它 group 会报 current group does not support policy switch。先 切换 group,再切换 policy。

用法:switch_policy <policy> [--client-config PATH]

./build/examples/switch_policy default --client-config "$CLIENT"
./build/examples/switch_policy policy2 --client-config "$CLIENT"
./build/examples/switch_policy backflip --client-config "$CLIENT"
auto result = client.SwitchCurrentPolicy("policy2", command_options);