From 32b088274deb1786bc2196df6df138704125607f Mon Sep 17 00:00:00 2001 From: meeussen Date: Mon, 26 Oct 2009 22:03:38 +0000 Subject: [PATCH] joint state listener should not keep buffer --- 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 e240b67..4bb67b4 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", 500, &JointStateListener::callbackJointState, this);; + joint_state_sub_ = n_.subscribe("joint_states", 1, &JointStateListener::callbackJointState, this);; };