change printf to ros_debug, ticket #3932

This commit is contained in:
wim 2010-03-29 22:38:04 +00:00
parent 1801b362a3
commit 4b496476d3
1 changed files with 2 additions and 1 deletions

View File

@ -21,6 +21,7 @@
#include "robot_state_publisher/treefksolverposfull_recursive.hpp"
#include <ros/ros.h>
#include <iostream>
#include <cstdio>
@ -58,7 +59,7 @@ void TreeFkSolverPosFull_recursive::addFrameToMap(const map<string, double>& q_i
if (this_segment->second.segment.getJoint().getType() != Joint::None){
map<string, double>::const_iterator jnt_pos = q_in.find(this_segment->second.segment.getJoint().getName());
if (jnt_pos == q_in.end()){
printf("Warning: TreeFKSolverPosFull Could not find value for joint '%s'. Skipping this tree branch\n", this_segment->first.c_str());
ROS_DEBUG("Warning: TreeFKSolverPosFull Could not find value for joint '%s'. Skipping this tree branch", this_segment->first.c_str());
return;
}
jnt_p = jnt_pos->second;