Skip to content

Commit

Permalink
Merge pull request #8 from ros-teleop/update_jade_from_indigo_devel
Browse files Browse the repository at this point in the history
fix queue_size SyntaxWarning
  • Loading branch information
Enrique Fernández Perdomo committed Mar 13, 2016
2 parents dbbd545 + 4cfc89d commit e280f91
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/joystick_relay.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ def reset_turbo(self):
class TextMarker(object):

def __init__(self, scale = 1.0, z = 0.0):
self._pub = rospy.Publisher('text_marker', Marker, latch=True)
self._pub = rospy.Publisher('text_marker', Marker, queue_size=1, latch=True)

self._scale = scale
self._z = z
Expand Down Expand Up @@ -173,10 +173,10 @@ def __init__(self):

self._marker = TextMarker(0.5, 2.0)

self._pub_cmd = rospy.Publisher('joy_vel_out', Twist)
self._pub_cmd = rospy.Publisher('joy_vel_out', Twist, queue_size=1)
self._subscriber = rospy.Subscriber('joy_vel_in', Twist, self._forward_cmd, queue_size=1)

self._pub_priority = rospy.Publisher('joy_priority', Bool, latch=True)
self._pub_priority = rospy.Publisher('joy_priority', Bool, queue_size=1, latch=True)

# Wait for subscribers and publish initial joy_priority:
self._pub_priority.publish(self._current_priority)
Expand Down

0 comments on commit e280f91

Please sign in to comment.