Fix the origin of accumulated range data. (#613)
This changes the origin of accumulated range data from the zero vector (which could be far off) to the origin of the first range data in the accumulation.master
							parent
							
								
									82a4b2f171
								
							
						
					
					
						commit
						c011177bfd
					
				| 
						 | 
				
			
			@ -90,7 +90,7 @@ LocalTrajectoryBuilder::AddRangeData(const common::Time time,
 | 
			
		|||
  if (num_accumulated_ == 0) {
 | 
			
		||||
    first_pose_estimate_ = extrapolator_->ExtrapolatePose(time).cast<float>();
 | 
			
		||||
    accumulated_range_data_ =
 | 
			
		||||
        sensor::RangeData{Eigen::Vector3f::Zero(), {}, {}};
 | 
			
		||||
        sensor::RangeData{range_data.origin, {}, {}};
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // TODO(gaschler): Take time delta of individual points into account.
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -70,7 +70,7 @@ LocalTrajectoryBuilder::AddRangeData(const common::Time time,
 | 
			
		|||
  if (num_accumulated_ == 0) {
 | 
			
		||||
    first_pose_estimate_ = extrapolator_->ExtrapolatePose(time).cast<float>();
 | 
			
		||||
    accumulated_range_data_ =
 | 
			
		||||
        sensor::RangeData{Eigen::Vector3f::Zero(), {}, {}};
 | 
			
		||||
        sensor::RangeData{range_data.origin, {}, {}};
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  // TODO(gaschler): Take time delta of individual points into account.
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue