Remove unnecessary if. (#347)
parent
841b17f393
commit
b9ad9bb4b8
|
@ -183,7 +183,6 @@ 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",
|
||||||
|
@ -193,7 +192,6 @@ void Run(const std::vector<string>& bag_filenames) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
while (!delayed_messages.empty() &&
|
while (!delayed_messages.empty() &&
|
||||||
delayed_messages.front().getTime() <
|
delayed_messages.front().getTime() <
|
||||||
|
|
Loading…
Reference in New Issue