rospy subscriber buffer length
Hi
This is from the C++ subscriber tutorial
* The second parameter to the subscribe() function is the size of the message
* queue. If messages are arriving faster than they are being processed, this
* is the number of messages that will be buffered up before beginning to throw
* away the oldest ones.
*/
ros::Subscriber sub = n.subscribe("chatter", 1000, chatterCallback);
In the python tutorial it is
rospy.Subscriber("chatter", String, callback)
//This declares that your node subscribes to the chatter topic which is of type std_msgs.msgs.String. When new messages are received, callback is invoked with the *message as the first argument.
I am wondering if the python version supports a message queue?
Also why is the same method different between C++ and Python for instance in the python subscriber you have to declare what type of message you are subscribing to...
Is this because python is an interpreted language?
Also do you find it easier to code in python over C++ in terms of development time for a ROS project?