File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 19
19
20
20
type Subscriber{MsgType<: MsgT }
21
21
o:: PyObject
22
- callback:: Function
22
+ callback
23
23
24
24
function Subscriber (
25
- topic:: String , cb:: Function , cb_args = (); kwargs...
25
+ topic:: String , cb, cb_args:: Tuple = (); kwargs...
26
26
)
27
27
@debug (" Creating <$(string (MsgType)) > subscriber on topic: '$topic '" )
28
28
rospycls = _get_rospy_class (MsgType)
36
36
Subscriber {MsgType<:MsgT} (
37
37
topic:: String ,
38
38
:: Type{MsgType} ,
39
- cb:: Function ,
40
- cb_args = ();
39
+ cb,
40
+ cb_args:: Tuple = ();
41
41
kwargs...
42
42
) = Subscriber {MsgType} (topic, cb, cb_args; kwargs... )
Original file line number Diff line number Diff line change 39
39
40
40
type Service{SrvType <: ServiceDefinition }
41
41
o:: PyObject
42
- jl_handler:: Function
42
+ jl_handler
43
43
44
- function Service (name:: String , handler:: Function ; kwargs... )
44
+ function Service (name:: String , handler; kwargs... )
45
45
@debug (" Providing <$SrvType > service at '$name '" )
46
46
rospycls = _get_rospy_class (SrvType)
47
47
ReqType = _srv_reqtype (SrvType)
63
63
function Service {SrvType<:ServiceDefinition} (
64
64
name:: String ,
65
65
srv:: Type{SrvType} ,
66
- handler:: Function ;
66
+ handler;
67
67
kwargs...
68
68
)
69
69
Service {SrvType} (name, handler; kwargs... )
You can’t perform that action at this time.
0 commit comments