Point cloud unit conversion in wrappers/ros/src/mynt_eye_ros_wrapper/src/wrapper_nodelet.cc
This commit is contained in:
parent
c2f04c487e
commit
9014f3df57
|
@ -418,9 +418,9 @@ class ROSWrapperNodelet : public nodelet::Nodelet {
|
||||||
for (std::size_t x = 0; x < in.width; ++x) {
|
for (std::size_t x = 0; x < in.width; ++x) {
|
||||||
auto &&point = data.frame.at<cv::Vec3f>(y, x);
|
auto &&point = data.frame.at<cv::Vec3f>(y, x);
|
||||||
|
|
||||||
*iter_x = point[0];
|
*iter_x = point[0] * 0.001;
|
||||||
*iter_y = point[1];
|
*iter_y = point[1] * 0.001;
|
||||||
*iter_z = point[2];
|
*iter_z = point[2] * 0.001;
|
||||||
|
|
||||||
*iter_r = static_cast<uint8_t>(255);
|
*iter_r = static_cast<uint8_t>(255);
|
||||||
*iter_g = static_cast<uint8_t>(255);
|
*iter_g = static_cast<uint8_t>(255);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user