From d5285c6385462ad807e47d24fb26f396d7ecb1c6 Mon Sep 17 00:00:00 2001 From: wim Date: Wed, 2 Dec 2009 00:24:24 +0000 Subject: [PATCH] allow empty joint vector for publishing of tree with all fixed joints --- robot_state_publisher/src/joint_state_listener.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/robot_state_publisher/src/joint_state_listener.cpp b/robot_state_publisher/src/joint_state_listener.cpp index 4bb67b4..268117b 100644 --- a/robot_state_publisher/src/joint_state_listener.cpp +++ b/robot_state_publisher/src/joint_state_listener.cpp @@ -64,11 +64,6 @@ JointStateListener::~JointStateListener() void JointStateListener::callbackJointState(const JointStateConstPtr& state) { - if (state->get_name_size() == 0){ - ROS_ERROR("Robot state publisher received an empty joint state vector"); - return; - } - if (state->get_name_size() != state->get_position_size()){ ROS_ERROR("Robot state publisher received an invalid joint state vector"); return;