Remove unnecessary if. (#347)
parent
841b17f393
commit
b9ad9bb4b8
|
@ -183,14 +183,12 @@ void Run(const std::vector<string>& bag_filenames) {
|
||||||
auto tf_message = msg.instantiate<tf2_msgs::TFMessage>();
|
auto tf_message = msg.instantiate<tf2_msgs::TFMessage>();
|
||||||
tf_publisher.publish(tf_message);
|
tf_publisher.publish(tf_message);
|
||||||
|
|
||||||
if (FLAGS_use_bag_transforms) {
|
for (const auto& transform : tf_message->transforms) {
|
||||||
for (const auto& transform : tf_message->transforms) {
|
try {
|
||||||
try {
|
tf_buffer.setTransform(transform, "unused_authority",
|
||||||
tf_buffer.setTransform(transform, "unused_authority",
|
msg.getTopic() == kTfStaticTopic);
|
||||||
msg.getTopic() == kTfStaticTopic);
|
} catch (const tf2::TransformException& ex) {
|
||||||
} catch (const tf2::TransformException& ex) {
|
LOG(WARNING) << ex.what();
|
||||||
LOG(WARNING) << ex.what();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue