From 2609e6fd2f233d9c51670c71cc34721a48293661 Mon Sep 17 00:00:00 2001 From: LuoBin <2646887443@qq.com> Date: Mon, 2 Sep 2024 14:51:36 +0800 Subject: [PATCH] read arg in read_highstate.py --- example/high_level/read_highstate.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/example/high_level/read_highstate.py b/example/high_level/read_highstate.py index ba43a76..a3cec53 100644 --- a/example/high_level/read_highstate.py +++ b/example/high_level/read_highstate.py @@ -15,7 +15,8 @@ def HighStateHandler(msg: SportModeState_): if __name__ == "__main__": - ChannelFactoryInitialize(0, "enp3s0") + # sys.argv[1]: name of the network interface + ChannelFactoryInitialize(0, sys.argv[1]) sub = ChannelSubscriber("rt/sportmodestate", SportModeState_) sub.Init(HighStateHandler, 10)