Skip to content
Snippets Groups Projects
Commit b35c39e2 authored by Johannes Mey's avatar Johannes Mey
Browse files

fix printf string problem

parent b519570a
Branches
No related tags found
No related merge requests found
......@@ -51,9 +51,9 @@ void GazeboZoneSpawner::spawnCollisionBox(shape_msgs::SolidPrimitive shape, geom
// spawnModelService.request.reference_frame = ; // if left empty, world is used
if (client.call(spawnService)) {
if ( spawnService.response.success) {
ROS_INFO_NAMED("GazeboZoneSpawner", "Successfully spawned Box 's'. %s", spawnService.request.model_name, spawnService.response.status_message.c_str());
ROS_INFO_NAMED("GazeboZoneSpawner", "Successfully spawned Box 's'. %s", spawnService.request.model_name.c_str(), spawnService.response.status_message.c_str());
} else {
ROS_INFO_NAMED("GazeboZoneSpawner", "Failed to spawn Box '%s'. %s", spawnService.request.model_name, spawnService.response.status_message.c_str());
ROS_INFO_NAMED("GazeboZoneSpawner", "Failed to spawn Box '%s'. %s", spawnService.request.model_name.c_str(), spawnService.response.status_message.c_str());
}
} else {
ROS_ERROR_NAMED("GazeboZoneSpawner", "Failed to call service '/gazebo/spawn_sdf_model'");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment