Improve crash logging on deprecated frame_ids. (#427)

master
Holger Rapp 2017-07-19 12:25:51 +02:00 committed by Wolfgang Hess
parent 5417a4ab9d
commit b12e32d6fc
1 changed files with 3 additions and 1 deletions

View File

@ -29,7 +29,9 @@ namespace {
const string& CheckNoLeadingSlash(const string& frame_id) {
if (frame_id.size() > 0) {
CHECK_NE(frame_id[0], '/');
CHECK_NE(frame_id[0], '/') << "The frame_id " << frame_id
<< " should not start with a /. See 1.7 in "
"http://wiki.ros.org/tf2/Migration.";
}
return frame_id;
}