diff --git a/panda_gazebo/src/panda_joint_locker_world_plugin.cpp b/panda_gazebo/src/panda_joint_locker_world_plugin.cpp index 1669dbde..321bbe07 100644 --- a/panda_gazebo/src/panda_joint_locker_world_plugin.cpp +++ b/panda_gazebo/src/panda_joint_locker_world_plugin.cpp @@ -113,7 +113,7 @@ class PandaJointLockerPlugin : public WorldPlugin } res.success = true; - res.message = "Joint " + (req.lock ? "locking" : "unlocking") + " successful"; + res.message = std::string("Joint ") + (req.lock ? "locking" : "unlocking") + " successful"; return true; } };