File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 1
1
# API for publishing and subscribing to message topics
2
2
export Publisher, Subscriber, publish
3
3
4
+ using Compat
5
+
4
6
type Publisher{MsgType<: MsgT }
5
7
o:: PyObject
6
8
@@ -28,7 +30,7 @@ type Subscriber{MsgType<:MsgT}
28
30
@debug (" Creating <$(string (MsgType)) > subscriber on topic: '$topic '" )
29
31
rospycls = _get_rospy_class (MsgType)
30
32
31
- cond = Base . AsyncCondition ()
33
+ cond = Compat . AsyncCondition ()
32
34
mqueue = _py_ros_callbacks[" MessageQueue" ](CB_NOTIFY_PTR, cond. handle)
33
35
subobj = __rospy__[:Subscriber ](ascii (topic), rospycls, mqueue[" storemsg" ]; kwargs... )
34
36
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ type Service{SrvType <: ServiceDefinition}
42
42
@debug (" Providing <$SrvType > service at '$name '" )
43
43
rospycls = _get_rospy_class (SrvType)
44
44
45
- cond = Base . AsyncCondition ()
45
+ cond = Compat . AsyncCondition ()
46
46
pysrv = _py_ros_callbacks[" ServiceCallback" ](CB_NOTIFY_PTR, cond. handle)
47
47
48
48
srvobj = try
You can’t perform that action at this time.
0 commit comments