add queue_size for publisher
This commit is contained in:
parent
7e0ba6c1fc
commit
01a7ea9139
|
@ -113,7 +113,7 @@ class JointStatePublisher():
|
||||||
for source in source_list:
|
for source in source_list:
|
||||||
self.sources.append(rospy.Subscriber(source, JointState, self.source_cb))
|
self.sources.append(rospy.Subscriber(source, JointState, self.source_cb))
|
||||||
|
|
||||||
self.pub = rospy.Publisher('joint_states', JointState)
|
self.pub = rospy.Publisher('joint_states', JointState, queue_size=5)
|
||||||
|
|
||||||
def source_cb(self, msg):
|
def source_cb(self, msg):
|
||||||
for i in range(len(msg.name)):
|
for i in range(len(msg.name)):
|
||||||
|
|
Loading…
Reference in New Issue