提交 93c6873d 编写于 作者: R Ronggui Peng 提交者: Jiangtao Hu

Revert "Driver:update ins status when gnss exit"

This reverts commit c9c6272fb32478a231334ca5eccf53254cfd8e21.
上级 f5d76990
......@@ -19,8 +19,6 @@
#include <cmath>
#include <memory>
#include <string>
#include <thread>
#include <chrono>
#include "Eigen/Geometry"
#include "boost/array.hpp"
......@@ -343,15 +341,6 @@ void DataParser::GpsToTransformStamped(const std::shared_ptr<Gps> &gps,
rotation->set_qw(gps->localization().orientation().qw());
}
DataParser::~DataParser() {
if (insstatus_writer_ != nullptr) {
ins_status_.set_type(apollo::drivers::gnss::InsStatus::INVALID);
common::util::FillHeader("gnss", &ins_status_);
insstatus_writer_->Write(std::make_shared<InsStatus>(ins_status_));
}
std::this_thread::sleep_for(std::chrono::microseconds(1500));
}
} // namespace gnss
} // namespace drivers
} // namespace apollo
......@@ -45,7 +45,7 @@ class DataParser {
using MessagePtr = ::google::protobuf::Message *;
explicit DataParser(const config::Config &config,
const std::shared_ptr<apollo::cyber::Node> &node);
~DataParser();
~DataParser() {}
bool Init();
void ParseRawData(const std::string &msg);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册