Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add queue_size to remove ROS Warning #86

Merged
merged 1 commit into from Jan 20, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion wiimote/nodes/feedbackTester.py
Expand Up @@ -12,7 +12,7 @@
INTER_PATTERN_SLEEP_DURATION = 0.2

def talker():
pub = rospy.Publisher('/joy/set_feedback', JoyFeedbackArray)
pub = rospy.Publisher('/joy/set_feedback', JoyFeedbackArray, queue_size=1)
rospy.init_node('ledControlTester', anonymous=True)

led0 = JoyFeedback()
Expand Down
10 changes: 5 additions & 5 deletions wiimote/nodes/wiimote_node.py
Expand Up @@ -228,7 +228,7 @@ def __init__(self, wiiMote, freq=100):

WiimoteDataSender.__init__(self, wiiMote, freq)

self.pub = rospy.Publisher('imu/data', Imu)
self.pub = rospy.Publisher('imu/data', Imu, queue_size=1)

def run(self):
"""Loop that obtains the latest wiimote state, publishes the IMU data, and sleeps.
Expand Down Expand Up @@ -311,7 +311,7 @@ def __init__(self, wiiMote, freq=100):
WiimoteDataSender.__init__(self, wiiMote, freq)


self.pub = rospy.Publisher('joy', Joy)
self.pub = rospy.Publisher('joy', Joy, queue_size=1)

def run(self):
"""Loop that obtains the latest wiimote state, publishes the joystick data, and sleeps.
Expand Down Expand Up @@ -407,7 +407,7 @@ def run(self):
if not self.wiistate.nunchukPresent:
continue
if self.pub is None:
self.pub = rospy.Publisher('/wiimote/nunchuk', Joy)
self.pub = rospy.Publisher('/wiimote/nunchuk', Joy, queue_size=1)
rospy.loginfo("Wiimote Nunchuk joystick publisher starting (topic nunchuk).")

(joyx, joyy) = self.wiistate.nunchukStick
Expand Down Expand Up @@ -553,7 +553,7 @@ def __init__(self, wiiMote, freq=100):

WiimoteDataSender.__init__(self, wiiMote, freq)

self.pub = rospy.Publisher('/wiimote/state', State)
self.pub = rospy.Publisher('/wiimote/state', State, queue_size=1)

def run(self):
"""Loop that obtains the latest wiimote state, publishes the data, and sleeps.
Expand Down Expand Up @@ -724,7 +724,7 @@ def __init__(self, wiiMote):
# we do publish the is_calibrated() message
# here, because this msg is so closely related
# to the calibrate() service:
self.is_calibratedPublisher = rospy.Publisher('/imu/is_calibrated', Bool, latch=True)
self.is_calibratedPublisher = rospy.Publisher('/imu/is_calibrated', Bool, latch=True, queue_size=1)
# We'll always just reuse this msg object:
self.is_CalibratedResponseMsg = Bool();

Expand Down