We know offset_shift is always 4, makes things a lot simpler
git-svn-id: https://code.ros.org/svn/ros-pkg/stacks/laser_pipeline/trunk@35246 eb33c2ac-9c88-4c90-87e0-44a10359b0c3
This commit is contained in:
parent
c72d74c7fb
commit
a85006555f
|
|
@ -618,17 +618,8 @@ const boost::numeric::ublas::matrix<double>& LaserProjection::getUnitVectors_(do
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
//check if we need to get an offset shift to remove the index field
|
//once we hit the index, we'll set the shift
|
||||||
if(i < cloud_out.fields.size() - 1)
|
offset_shift = 4;
|
||||||
{
|
|
||||||
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