Commit e1a2bbff authored by wangdawei's avatar wangdawei

fix time float

parent ae9077e4
...@@ -2,7 +2,8 @@ cmake_minimum_required(VERSION 2.8) ...@@ -2,7 +2,8 @@ cmake_minimum_required(VERSION 2.8)
project(multi_traj) project(multi_traj)
set(CMAKE_BUILD_TYPE "Release") set(CMAKE_BUILD_TYPE "RelWithDebInfo")
#set(CMAKE_BUILD_TYPE "Release")
#set(CMAKE_BUILD_TYPE "Debug") #set(CMAKE_BUILD_TYPE "Debug")
message(STATUS "CMAKE_BUILD_TYPE: " ${CMAKE_BUILD_TYPE}) message(STATUS "CMAKE_BUILD_TYPE: " ${CMAKE_BUILD_TYPE})
......
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE QtCreatorProject> <!DOCTYPE QtCreatorProject>
<!-- Written by QtCreator 4.11.1, 2023-10-30T21:02:59. --> <!-- Written by QtCreator 4.11.1, 2023-10-31T11:52:14. -->
<qtcreator> <qtcreator>
<data> <data>
<variable>EnvironmentId</variable> <variable>EnvironmentId</variable>
...@@ -230,7 +230,7 @@ ...@@ -230,7 +230,7 @@
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">multi_traj</value> <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">multi_traj</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">CMakeProjectManager.CMakeRunConfiguration.multi_traj</value> <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">CMakeProjectManager.CMakeRunConfiguration.multi_traj</value>
<value type="QString" key="ProjectExplorer.RunConfiguration.BuildKey">multi_traj</value> <value type="QString" key="ProjectExplorer.RunConfiguration.BuildKey">multi_traj</value>
<value type="QString" key="RunConfiguration.Arguments"></value> <value type="QString" key="RunConfiguration.Arguments">--base_dir=/home/wdw/Documents/bev/multiTraj/261</value>
<value type="bool" key="RunConfiguration.Arguments.multi">false</value> <value type="bool" key="RunConfiguration.Arguments.multi">false</value>
<value type="QString" key="RunConfiguration.OverrideDebuggerStartup"></value> <value type="QString" key="RunConfiguration.OverrideDebuggerStartup"></value>
<value type="bool" key="RunConfiguration.UseCppDebugger">false</value> <value type="bool" key="RunConfiguration.UseCppDebugger">false</value>
......
...@@ -462,7 +462,7 @@ vector<CloseTrajInfo> crossFilter( ...@@ -462,7 +462,7 @@ vector<CloseTrajInfo> crossFilter(
pcl::octree::OctreePointCloudSearch<PointExport> taskOctree(resolution); pcl::octree::OctreePointCloudSearch<PointExport> taskOctree(resolution);
PointCloudExport::Ptr taskPeriodCloud(new PointCloudExport); PointCloudExport::Ptr taskPeriodCloud(new PointCloudExport);
taskOctree.setInputCloud(taskPeriodCloud); taskOctree.setInputCloud(taskPeriodCloud);
float currTime; double currTime;
vector<PointExport> filterdPeriod; vector<PointExport> filterdPeriod;
for(size_t pointId = 0; pointId < pointClouds[pcIndex]->points.size(); pointId++){ for(size_t pointId = 0; pointId < pointClouds[pcIndex]->points.size(); pointId++){
const PointExport& query = pointClouds[pcIndex]->points.at(pointId); const PointExport& query = pointClouds[pcIndex]->points.at(pointId);
......
...@@ -69,6 +69,9 @@ int main(int argc, char *argv[]) ...@@ -69,6 +69,9 @@ int main(int argc, char *argv[])
ofs << meshId; ofs << meshId;
for(auto period : task.periods){ for(auto period : task.periods){
auto timeDelta = period.second - period.first; auto timeDelta = period.second - period.first;
LOG(INFO) << "start: " << period.first
<< " end: " << period.second
<< " timeDelta: " << timeDelta;
if(timeDelta < 2){ if(timeDelta < 2){
continue; continue;
} }
......
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