Skip to content

Commit

Permalink
use c_str() (#950) (#954)
Browse files Browse the repository at this point in the history
Signed-off-by: Karsten Knese <karsten@openrobotics.org>
  • Loading branch information
chapulina authored Jul 11, 2019
1 parent 5e4a989 commit 3ebdc91
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions gazebo_ros/src/gazebo_ros_state.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ void GazeboRosStatePrivate::GetEntityState(
_res->success = false;

RCLCPP_ERROR(ros_node_->get_logger(),
"GetEntityState: entity [%s] does not exist", _req->name);
"GetEntityState: entity [%s] does not exist", _req->name.c_str());
return;
}

Expand Down Expand Up @@ -125,7 +125,7 @@ void GazeboRosStatePrivate::GetEntityState(

RCLCPP_ERROR(ros_node_->get_logger(),
"GetEntityState: reference entity [%s] not found, did you forget to scope the entity name?",
_req->name);
_req->name.c_str());
return;
}

Expand Down Expand Up @@ -162,7 +162,7 @@ void GazeboRosStatePrivate::SetEntityState(
_res->success = false;

RCLCPP_ERROR(ros_node_->get_logger(),
"SetEntityState: entity [%s] does not exist", _req->state.name);
"SetEntityState: entity [%s] does not exist", _req->state.name.c_str());
return;
}

Expand All @@ -184,7 +184,7 @@ void GazeboRosStatePrivate::SetEntityState(

RCLCPP_ERROR(ros_node_->get_logger(),
"GetEntityState: reference entity [%s] not found, did you forget to scope the entity name?",
_req->state.name);
_req->state.name.c_str());
return;
}

Expand Down

0 comments on commit 3ebdc91

Please sign in to comment.