Hi Martin, <br>Can you be a little more specific about what looks wrong about those range images to you?  <br><br>They look like valid from a quick inspection.  If you want the same view point as the rendering of the point cloud you need to move the sensor origin to where the viewpoint of your rendering is, not where the laser sensor is.  <br>

<br>Tully<br><br><div class="gmail_quote">On Fri, Oct 29, 2010 at 9:58 AM, Martin, L <span dir="ltr"><<a href="mailto:kollaps2001@hotmail.com">kollaps2001@hotmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

<br>
Hi,<br>
<br>
we ran into a problem when trying to convert a 3D point cloud into a range<br>
image. We tried to convert the following point cloud:<br>
<br>
<a href="http://ros-users.122217.n3.nabble.com/file/n1807863/screenshot-1288370947.png" target="_blank">http://ros-users.122217.n3.nabble.com/file/n1807863/screenshot-1288370947.png</a><br>
<br>
in order to do that we set:<br>
<br>
RangeImage::CoordinateFrame coordinate_frame = RangeImage::LASER_FRAME;<br>
<br>
and<br>
<br>
  Eigen3::Transform3f sensor_pose_test =<br>
(Eigen3::Transform3f)Eigen3::Translation3f(0.0, 0.0f, 0.0f);<br>
<br>
and received the following output:<br>
<br>
<a href="http://ros-users.122217.n3.nabble.com/file/n1807863/Screenshot-1.png" target="_blank">http://ros-users.122217.n3.nabble.com/file/n1807863/Screenshot-1.png</a><br>
<br>
which looks wrong. The tf of our laser is 0.39 -0.0165 1.267 and if we set<br>
those values for the sensor pose we get:<br>
<br>
<a href="http://ros-users.122217.n3.nabble.com/file/n1807863/Screenshot-2.png" target="_blank">http://ros-users.122217.n3.nabble.com/file/n1807863/Screenshot-2.png</a><br>
<br>
which is even more wrong. So basically I think we are not really sure how to<br>
set the sensor_pose.<br>
<br>
Many thanks for your help!<br>
<br>
Martin<br>
<font color="#888888"><br>
--<br>
View this message in context: <a href="http://ros-users.122217.n3.nabble.com/correct-range-image-creation-tp1807863p1807863.html" target="_blank">http://ros-users.122217.n3.nabble.com/correct-range-image-creation-tp1807863p1807863.html</a><br>


Sent from the ROS-Users mailing list archive at Nabble.com.<br>
_______________________________________________<br>
ros-users mailing list<br>
<a href="mailto:ros-users@code.ros.org">ros-users@code.ros.org</a><br>
<a href="https://code.ros.org/mailman/listinfo/ros-users" target="_blank">https://code.ros.org/mailman/listinfo/ros-users</a><br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Tully Foote<br>Systems Engineer<br>Willow Garage, Inc.<br><a href="mailto:tfoote@willowgarage.com">tfoote@willowgarage.com</a><br>(650) 475-2827<br>