@@ -94,6 +94,16 @@ def __init__(self, channel):
94
94
request_serializer = hal__pb__pb2 .Empty .SerializeToString ,
95
95
response_deserializer = hal__pb__pb2 .CalibrationStatus .FromString ,
96
96
_registered_method = True )
97
+ self .SetTorque = channel .unary_unary (
98
+ '/hal_pb.ServoControl/SetTorque' ,
99
+ request_serializer = hal__pb__pb2 .TorqueSettings .SerializeToString ,
100
+ response_deserializer = hal__pb__pb2 .Empty .FromString ,
101
+ _registered_method = True )
102
+ self .SetTorqueEnable = channel .unary_unary (
103
+ '/hal_pb.ServoControl/SetTorqueEnable' ,
104
+ request_serializer = hal__pb__pb2 .TorqueEnableSettings .SerializeToString ,
105
+ response_deserializer = hal__pb__pb2 .Empty .FromString ,
106
+ _registered_method = True )
97
107
98
108
99
109
class ServoControlServicer (object ):
@@ -171,6 +181,18 @@ def GetCalibrationStatus(self, request, context):
171
181
context .set_details ('Method not implemented!' )
172
182
raise NotImplementedError ('Method not implemented!' )
173
183
184
+ def SetTorque (self , request , context ):
185
+ """Missing associated documentation comment in .proto file."""
186
+ context .set_code (grpc .StatusCode .UNIMPLEMENTED )
187
+ context .set_details ('Method not implemented!' )
188
+ raise NotImplementedError ('Method not implemented!' )
189
+
190
+ def SetTorqueEnable (self , request , context ):
191
+ """Missing associated documentation comment in .proto file."""
192
+ context .set_code (grpc .StatusCode .UNIMPLEMENTED )
193
+ context .set_details ('Method not implemented!' )
194
+ raise NotImplementedError ('Method not implemented!' )
195
+
174
196
175
197
def add_ServoControlServicer_to_server (servicer , server ):
176
198
rpc_method_handlers = {
@@ -234,6 +256,16 @@ def add_ServoControlServicer_to_server(servicer, server):
234
256
request_deserializer = hal__pb__pb2 .Empty .FromString ,
235
257
response_serializer = hal__pb__pb2 .CalibrationStatus .SerializeToString ,
236
258
),
259
+ 'SetTorque' : grpc .unary_unary_rpc_method_handler (
260
+ servicer .SetTorque ,
261
+ request_deserializer = hal__pb__pb2 .TorqueSettings .FromString ,
262
+ response_serializer = hal__pb__pb2 .Empty .SerializeToString ,
263
+ ),
264
+ 'SetTorqueEnable' : grpc .unary_unary_rpc_method_handler (
265
+ servicer .SetTorqueEnable ,
266
+ request_deserializer = hal__pb__pb2 .TorqueEnableSettings .FromString ,
267
+ response_serializer = hal__pb__pb2 .Empty .SerializeToString ,
268
+ ),
237
269
}
238
270
generic_handler = grpc .method_handlers_generic_handler (
239
271
'hal_pb.ServoControl' , rpc_method_handlers )
@@ -568,3 +600,57 @@ def GetCalibrationStatus(request,
568
600
timeout ,
569
601
metadata ,
570
602
_registered_method = True )
603
+
604
+ @staticmethod
605
+ def SetTorque (request ,
606
+ target ,
607
+ options = (),
608
+ channel_credentials = None ,
609
+ call_credentials = None ,
610
+ insecure = False ,
611
+ compression = None ,
612
+ wait_for_ready = None ,
613
+ timeout = None ,
614
+ metadata = None ):
615
+ return grpc .experimental .unary_unary (
616
+ request ,
617
+ target ,
618
+ '/hal_pb.ServoControl/SetTorque' ,
619
+ hal__pb__pb2 .TorqueSettings .SerializeToString ,
620
+ hal__pb__pb2 .Empty .FromString ,
621
+ options ,
622
+ channel_credentials ,
623
+ insecure ,
624
+ call_credentials ,
625
+ compression ,
626
+ wait_for_ready ,
627
+ timeout ,
628
+ metadata ,
629
+ _registered_method = True )
630
+
631
+ @staticmethod
632
+ def SetTorqueEnable (request ,
633
+ target ,
634
+ options = (),
635
+ channel_credentials = None ,
636
+ call_credentials = None ,
637
+ insecure = False ,
638
+ compression = None ,
639
+ wait_for_ready = None ,
640
+ timeout = None ,
641
+ metadata = None ):
642
+ return grpc .experimental .unary_unary (
643
+ request ,
644
+ target ,
645
+ '/hal_pb.ServoControl/SetTorqueEnable' ,
646
+ hal__pb__pb2 .TorqueEnableSettings .SerializeToString ,
647
+ hal__pb__pb2 .Empty .FromString ,
648
+ options ,
649
+ channel_credentials ,
650
+ insecure ,
651
+ call_credentials ,
652
+ compression ,
653
+ wait_for_ready ,
654
+ timeout ,
655
+ metadata ,
656
+ _registered_method = True )
0 commit comments