Commit 51166134 authored by wangdawei's avatar wangdawei

test

parent 6ae1019d
...@@ -53,6 +53,9 @@ int main(int argc, char *argv[]) ...@@ -53,6 +53,9 @@ int main(int argc, char *argv[])
FLAGS_colorlogtostderr = true; FLAGS_colorlogtostderr = true;
FLAGS_stderrthreshold = 0; FLAGS_stderrthreshold = 0;
FLAGS_logbufsecs = 0; FLAGS_logbufsecs = 0;
pandar_pointcloud::Convert::SetEnvironmentVariableTZ();
if(boost::filesystem::exists(FLAGS_ie_base_dir)){ if(boost::filesystem::exists(FLAGS_ie_base_dir)){
FLAGS_log_dir = FLAGS_ie_base_dir + "/log"; FLAGS_log_dir = FLAGS_ie_base_dir + "/log";
boost::filesystem::create_directory(FLAGS_log_dir); boost::filesystem::create_directory(FLAGS_log_dir);
......
...@@ -96,7 +96,7 @@ void AdjustPPK::OnReceivedCloud(const PPointCloud &cloud) ...@@ -96,7 +96,7 @@ void AdjustPPK::OnReceivedCloud(const PPointCloud &cloud)
cloudPacket.cloud.reserve(cloud.size()); cloudPacket.cloud.reserve(cloud.size());
LOG(INFO) << setprecision(15) << "OnReceivedCloud: " << cloudPacket.timestamp LOG(INFO) << setprecision(15) << "OnReceivedCloud: " << cloudPacket.timestamp
<< " cloud.size()" << cloud.size(); << " cloud.size()" << cloud.size();
pcl::io::savePCDFileBinary(ieBaseDir_ + "/" + to_string(cloudPacket.timestamp) + ".pcd", cloud); // pcl::io::savePCDFileBinary(ieBaseDir_ + "/" + to_string(cloudPacket.timestamp) + ".pcd", cloud);
return; return;
for(const auto &p : cloud){ for(const auto &p : cloud){
PointInter point; PointInter point;
......
...@@ -395,6 +395,7 @@ class Convert { ...@@ -395,6 +395,7 @@ class Convert {
int processLiDARData(); int processLiDARData();
void publishPoints(); void publishPoints();
static void SetEnvironmentVariableTZ();
private: private:
void init(pandar_msgs::PandarPacket packet); void init(pandar_msgs::PandarPacket packet);
void processGps(const pandar_msgs::PandarGps::ConstPtr &gpsMsg); void processGps(const pandar_msgs::PandarGps::ConstPtr &gpsMsg);
...@@ -415,7 +416,6 @@ class Convert { ...@@ -415,7 +416,6 @@ class Convert {
void moveTaskEndToStartAngle(); void moveTaskEndToStartAngle();
void init(); void init();
void checkClockwise(); void checkClockwise();
void SetEnvironmentVariableTZ();
bool isNeedPublish(); bool isNeedPublish();
bool processPacket(PPointCloud& pc); bool processPacket(PPointCloud& pc);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment