Main Page
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
i
l
m
n
o
p
r
s
t
u
v
Functions
a
c
d
e
f
g
i
l
m
n
o
p
r
s
t
u
v
Variables
Classes
Class List
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Functions
_
a
b
c
f
g
h
i
l
m
o
p
r
s
t
u
Variables
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
v
w
x
y
Files
File List
src
ReceiveFeatures.py
Go to the documentation of this file.
1
import
array
2
import
pickle
3
4
import
rospy
5
from
rose2.msg
import
ROSE2Features
6
from
pprint
import
pprint
7
8
9
#Node to debug FeatureExtractorrose2. It receive features from that node, unpickles them and prints them.
10
class
ReceiverFeatures
:
11
def
__init__
(self):
12
rospy.init_node(
'FeatureReceiver'
)
13
print(
'Waiting for features...'
)
14
rospy.Subscriber(
'features_ROSE2'
, ROSE2Features, self.
processFeatures
)
15
rospy.spin()
16
17
def
processFeatures
(self, features):
18
print(
'EXTENDED LINES'
)
19
for
l
in
features.lines:
20
line = pickle.loads(array.array(
'b'
,l.bytes))
21
pprint(vars(line))
22
print(
'EDGES'
)
23
for
e
in
features.edges:
24
edge = pickle.loads(array.array(
'b'
,e.bytes))
25
pprint(vars(edge))
26
print(
'ROOMS'
)
27
for
r
in
features.rooms:
28
print(pickle.loads(array.array(
'b'
,r.bytes)))
29
print(
'CONTOUR'
)
30
print(features.contour)
31
32
if
__name__ ==
'__main__'
:
33
34
f =
ReceiverFeatures
()
src.ReceiveFeatures.ReceiverFeatures
Definition:
ReceiveFeatures.py:10
src.ReceiveFeatures.ReceiverFeatures.processFeatures
def processFeatures(self, features)
Definition:
ReceiveFeatures.py:17
src.ReceiveFeatures.ReceiverFeatures.__init__
def __init__(self)
Definition:
ReceiveFeatures.py:11
rose2
Author(s): Gabriele Somaschini, Matteo Luperto
autogenerated on Wed Jun 28 2023 02:21:53