ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version
if __name__=='__main__':
     rospy.init_node('robot_news_radio_transmitter', String, queue_size=10)

queue_size is not an argument of rospy.init_node(..), but of rospy.Publisher(..).

if __name__=='__main__':
     rospy.init_node('robot_news_radio_transmitter', String, queue_size=10)

queue_size is not an argument of rospy.init_node(..), but of rospy.Publisher(..).

See the documentation:

__init__(self, name, data_class, subscriber_listener=None, tcp_nodelay=False, latch=False, headers=None, queue_size=None)
Constructor