From 56c049a901b9473b8f0284bfec5ed7d0f7baed14 Mon Sep 17 00:00:00 2001 From: meeussen Date: Fri, 16 Oct 2009 16:41:04 +0000 Subject: [PATCH] Increase buffer size for joint state from 1 to 500 --- robot_state_publisher/src/joint_state_listener.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/robot_state_publisher/src/joint_state_listener.cpp b/robot_state_publisher/src/joint_state_listener.cpp index 4bb67b4..e240b67 100644 --- a/robot_state_publisher/src/joint_state_listener.cpp +++ b/robot_state_publisher/src/joint_state_listener.cpp @@ -54,7 +54,7 @@ JointStateListener::JointStateListener(const KDL::Tree& tree) publish_rate_ = Rate(publish_freq); // subscribe to mechanism state - joint_state_sub_ = n_.subscribe("joint_states", 1, &JointStateListener::callbackJointState, this);; + joint_state_sub_ = n_.subscribe("joint_states", 500, &JointStateListener::callbackJointState, this);; };