allow empty joint vector for publishing of tree with all fixed joints

This commit is contained in:
wim 2009-12-02 00:24:24 +00:00
parent 9eed0abfa0
commit d5285c6385
1 changed files with 0 additions and 5 deletions

View File

@ -64,11 +64,6 @@ JointStateListener::~JointStateListener()
void JointStateListener::callbackJointState(const JointStateConstPtr& state) 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()){ if (state->get_name_size() != state->get_position_size()){
ROS_ERROR("Robot state publisher received an invalid joint state vector"); ROS_ERROR("Robot state publisher received an invalid joint state vector");
return; return;