def __init__(self):
     super().__init__()
     self.is_server_flag = cli.BoolFlagBuilder(
     ).set_long_name("--server").set_help(
         "create server node, if set, default: false(create client node)"
     ).build()
     self.service_flag = cli.StringFlagBuilder().set_short_name(
         "-s").set_long_name("--service").set_long_name(
             "--service").set_help(
                 "name for service, it's required to be set").build()
Пример #2
0
 def __init__(self):
     super().__init__()
     self.model_pose = cli.StringFlagBuilder().set_long_name(
         "--model_folder").set_help("path to the model").build()
     self.model_flag = cli.StringChoicesFlagBuilder("BODY_25", [
         "BODY_25", "COCO", "MPI"
     ]).set_long_name("--model_pose").set_help("model to be used").build()
     self.hand_flag = cli.BoolFlagBuilder().set_long_name(
         "--hand").set_help("whether enable to detect hand").build()
     self.face_flag = cli.BoolFlagBuilder().set_long_name(
         "--face").set_help("whether enable to detect face").build()
 def __init__(self):
     super().__init__()
     self.is_publshing_node_flag = cli.BoolFlagBuilder(
     ).set_short_name("-p").set_help(
         "create publishing node, if set, default: false(create subscribing node)"
     ).build()
     self.use_ssl_flag = cli.BoolFlagBuilder(
     ).set_long_name("--use_ssl").set_help(
         "use communication via ssl connection, default: false").build()
     self.topic_flag = cli.StringFlagBuilder().set_short_name(
         "-t").set_long_name("--topic").set_help(
             "name for topic, it's required to be set").build()
     self.channel_type_flag = cli.StringChoicesFlagBuilder(
         ChannelDef.Type.Name(ChannelDef.CHANNEL_TYPE_TCP), [
             ChannelDef.Type.Name(ChannelDef.CHANNEL_TYPE_TCP),
             ChannelDef.Type.Name(ChannelDef.CHANNEL_TYPE_UDP),
             ChannelDef.Type.Name(ChannelDef.CHANNEL_TYPE_UDS),
             ChannelDef.Type.Name(ChannelDef.CHANNEL_TYPE_SHM),
         ]
     ).set_short_name("-c").set_long_name("--channel_type").set_help(
         "protocol to deliver message, it only works for publishing node"
     ).build()
 def __init__(self):
     super().__init__()
     self.name_flag = cli.StringFlagBuilder().set_short_name(
         "-n").set_long_name("--name").set_help("name for node").build()