23 : mTfListener(
ros::Duration(5184000.0))
38 if (
mBaseFrame == pObject->header.frame_id)
return;
41 geometry_msgs::PoseStamped input, output;
42 input.header = pObject->header;
44 if(!pObject->sampledPoses.size()){
45 std::cerr <<
"Got a AsrObject without poses." << std::endl;
48 input.pose = pObject->sampledPoses.front().pose;
52 throw std::runtime_error(
"Unable to resolve transformation in target coordinate frame.");
58 pObject->header = output.header;
60 pObject->sampledPoses.pop_back();
61 geometry_msgs::PoseWithCovariance output_pose_with_c;
62 output_pose_with_c.pose = output.pose;
63 pObject->sampledPoses.push_back(output_pose_with_c);