Commit b098a991 authored by limingbo's avatar limingbo

test

parent c8543d67
Pipeline #866 canceled with stages
...@@ -140,7 +140,7 @@ vector<PointCloudExport::Ptr> multiThreadGetPointCloud( ...@@ -140,7 +140,7 @@ vector<PointCloudExport::Ptr> multiThreadGetPointCloud(
vector<PointCloudExport::Ptr> pointClouds; vector<PointCloudExport::Ptr> pointClouds;
pointClouds.resize(trajectories.size()); pointClouds.resize(trajectories.size());
for(uint8_t thread_index = 0; thread_index < trajectories.size(); thread_index++){ for(uint8_t thread_index = 0; thread_index < trajectories.size(); thread_index++){
pointClouds[thread_index].reset(new PointCloudExport);
thread_vec.emplace_back(ThreadPtr(new boost::thread(boost::bind(&getPointCloud, thread_vec.emplace_back(ThreadPtr(new boost::thread(boost::bind(&getPointCloud,
proj, proj,
trajectories[thread_index], trajectories[thread_index],
...@@ -157,7 +157,6 @@ void getPointCloud(boost::shared_ptr<LocalCartesian> proj, ...@@ -157,7 +157,6 @@ void getPointCloud(boost::shared_ptr<LocalCartesian> proj,
boost::shared_ptr<Trajectory> &trajectory, boost::shared_ptr<Trajectory> &trajectory,
PointCloudExport::Ptr& pointCloud) PointCloudExport::Ptr& pointCloud)
{ {
pointCloud.reset(new PointCloudExport);
vector<TrajPoint> traj = trajectory->getTrajectory(); vector<TrajPoint> traj = trajectory->getTrajectory();
for(const TrajPoint& trajPoint : traj){ for(const TrajPoint& trajPoint : traj){
PointExport point; PointExport point;
......
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