Improve crash logging on deprecated frame_ids. (#427)
parent
5417a4ab9d
commit
b12e32d6fc
|
@ -29,7 +29,9 @@ namespace {
|
||||||
|
|
||||||
const string& CheckNoLeadingSlash(const string& frame_id) {
|
const string& CheckNoLeadingSlash(const string& frame_id) {
|
||||||
if (frame_id.size() > 0) {
|
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;
|
return frame_id;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue