Skip to content

Commit

Permalink
Restart package resolving from last position, do not start all over.
Browse files Browse the repository at this point in the history
  • Loading branch information
guihomework committed Oct 6, 2015
1 parent 789ba32 commit 13abddf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gazebo_ros/src/gazebo_ros_api_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -577,7 +577,7 @@ bool GazeboRosApiPlugin::spawnURDFModel(gazebo_msgs::SpawnModel::Request &req,
ROS_DEBUG_ONCE("Package name [%s] has path [%s]", package_name.c_str(), package_path.c_str());

model_xml.replace(pos1,(pos2-pos1),package_path);
pos1 = model_xml.find(package_prefix,0);
pos1 = model_xml.find(package_prefix, pos1);
}
}
// ROS_DEBUG("Model XML\n\n%s\n\n ",model_xml.c_str());
Expand Down

0 comments on commit 13abddf

Please # to comment.