Fixing a bug in computing the offset shift
git-svn-id: https://code.ros.org/svn/ros-pkg/stacks/laser_pipeline/trunk@35245 eb33c2ac-9c88-4c90-87e0-44a10359b0c3
This commit is contained in:
parent
3582dd2558
commit
c72d74c7fb
|
|
@ -623,6 +623,12 @@ const boost::numeric::ublas::matrix<double>& LaserProjection::getUnitVectors_(do
|
|||
{
|
||||
offset_shift = cloud_out.fields[i + 1].offset - cloud_out.fields[i].offset;
|
||||
}
|
||||
else
|
||||
{
|
||||
//we know that the index is the last field... but the shift is still important
|
||||
//for computing the point_step and data size
|
||||
offset_shift = 4;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user