Commit 6f8e1bf3 authored by wangdawei's avatar wangdawei

test

parent c7f0a9e2
...@@ -58,7 +58,6 @@ void AdjustPPK::ReadBag(const string &bagPath) ...@@ -58,7 +58,6 @@ void AdjustPPK::ReadBag(const string &bagPath)
const rosbag::MessageInstance &m = *viewIterator; const rosbag::MessageInstance &m = *viewIterator;
// LOG_EVERY_N(INFO, 1) << setprecision(15) << "m.getTime(): " << m.getTime().toSec(); // LOG_EVERY_N(INFO, 1) << setprecision(15) << "m.getTime(): " << m.getTime().toSec();
if(!m.isType<pandar_msgs::PandarScan>()){ if(!m.isType<pandar_msgs::PandarScan>()){
viewIterator++;
continue; continue;
} }
PPointCloud cloud; PPointCloud cloud;
...@@ -307,6 +306,10 @@ bool AdjustPPK::LocateCloud(const CloudInfoForMatch &cloudInfo) ...@@ -307,6 +306,10 @@ bool AdjustPPK::LocateCloud(const CloudInfoForMatch &cloudInfo)
if(cnt % 10 != 0){ if(cnt % 10 != 0){
mapPose = mapPose * cloudInfo.filterPoseInfo.increasePose.cast<float>(); mapPose = mapPose * cloudInfo.filterPoseInfo.increasePose.cast<float>();
}else{ }else{
Quaterniond q(mapPose.linear());
Vector3d rpy= RotationQuaternionToEulerVector(q);
LOG(INFO) << "guessPose: " << mapPose.translation().transpose()
<< " rpy: " << rpy.transpose();
guessPose.map_point = mapPose.cast<double>(); guessPose.map_point = mapPose.cast<double>();
auto increaseRpy = RotationQuaternionToEulerVector( auto increaseRpy = RotationQuaternionToEulerVector(
Quaterniond(cloudInfo.filterPoseInfo.increasePose.linear())); Quaterniond(cloudInfo.filterPoseInfo.increasePose.linear()));
......
...@@ -20,9 +20,9 @@ struct PPKPeriod{ ...@@ -20,9 +20,9 @@ struct PPKPeriod{
double endTime = -1; double endTime = -1;
int InPeriod(double timestamp){ int InPeriod(double timestamp){
// LOG(INFO) << setprecision(15) << "timestamp " << timestamp LOG_EVERY_N(INFO, 99) << setprecision(15) << "timestamp " << timestamp
// << " startTime " << startTime << " startTime " << startTime
// << " endTime " << endTime; << " endTime " << endTime;
if(timestamp < startTime){ if(timestamp < startTime){
return -1; return -1;
} }
......
...@@ -205,7 +205,7 @@ Convert::Convert(const std::string &firetimeFile, const std::string &correctionF ...@@ -205,7 +205,7 @@ Convert::Convert(const std::string &firetimeFile, const std::string &correctionF
bool Convert::processScan( bool Convert::processScan(
const pandar_msgs::PandarScan::ConstPtr &scanMsg, PPointCloud &pc) const pandar_msgs::PandarScan::ConstPtr &scanMsg, PPointCloud &pc)
{ {
LOG(INFO) << "scanMsg->packets.size(): " << scanMsg->packets.size(); // LOG(INFO) << "scanMsg->packets.size(): " << scanMsg->packets.size();
if(0 == scanMsg->packets.size()){ if(0 == scanMsg->packets.size()){
return false; return false;
} }
......
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