rosserial_python arduino node queue_size problem
When launching rosserial_python I receive the following warning:
- /rosdistro: indigo
- /rosversion: 1.11.10
- /serial_node/baud: 57600
- /serial_node/port: /dev/ttyACM0
NODES / serial_node (rosserial_python/serial_node.py)
auto-starting new master process[master]: started with pid [6087] ROS_MASTER_URI=http://localhost:11311
setting /run_id to f6d85ce2-9af7-11e4-b2dc-eca86bf8a38d process[rosout-1]: started with pid [6100] started core service [/rosout] process[serial_node-2]: started with pid [6117] /opt/ros/indigo/lib/python2.7/dist-packages/rosserial_python/SerialClient.py:336: SyntaxWarning: The publisher should be created with an explicit keyword argument 'queue_size'. Please see http://wiki.ros.org/rospy/Overview/Pu... for more information. self.pub_diagnostics = rospy.Publisher('/diagnostics', diagnostic_msgs.msg.DiagnosticArray) /opt/ros/indigo/lib/python2.7/dist-packages/rosserial_python/SerialClient.py:101: SyntaxWarning: The publisher should be created with an explicit keyword argument 'queue_size'. Please see http://wiki.ros.org/rospy/Overview/Pu... for more information. self.publisher = rospy.Publisher(self.topic, self.message)
How can I fix it ?
I've tried to change my arduino code:
ros::Publisher pub("/MockBot/adc", &adc_msg, queue_size=1);
But I now the compiler throw me errors...
Where is the trick to make it work ?
Thanks in advance Christian