From b12e32d6fc03876dd8f5c93acb10f060de75221d Mon Sep 17 00:00:00 2001 From: Holger Rapp Date: Wed, 19 Jul 2017 12:25:51 +0200 Subject: [PATCH] Improve crash logging on deprecated frame_ids. (#427) --- cartographer_ros/cartographer_ros/sensor_bridge.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cartographer_ros/cartographer_ros/sensor_bridge.cc b/cartographer_ros/cartographer_ros/sensor_bridge.cc index 63ed5d6..e1d7f0e 100644 --- a/cartographer_ros/cartographer_ros/sensor_bridge.cc +++ b/cartographer_ros/cartographer_ros/sensor_bridge.cc @@ -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; }