Quantcast
Channel: ROS Answers: Open Source Q&A Forum - RSS feed
Viewing all articles
Browse latest Browse all 171

Weird looking PointCloud in RViz

$
0
0
Hi! This is more or less a follow-up to a [previous question of mine](http://answers.ros.org/question/215295/display-pointcloud2-in-rviz/). In short: I used the **pcd_to_pointcloud** tool to create a PointCloud publisher. Now I have extended my publisher to work with the PMD Nano camboard I'm using. The cloud is displayed in RViz however it looks weird: ![image description](/upfiles/14389622918581526.png) If I look at it from the side I get this peculiar view: ![image description](/upfiles/14389624408418437.png) I work with the rgbd-grabber library and if I use sample provided in it I get this: ![image description](/upfiles/143896249940725.png) I had great difficulties figuring out how to publish and display the cloud inside RViz in the first and the way it looks like tells me I am doing some configuration wrong. You can see on the top of this...pyramid...turned upside down I get a view of my hand (though it looks pretty bad). It seems that the depth image I'm getting is somehow projected onto the bottom of this pyramid (bottom here is the "top" side of the cloud) and in 2D. All I'm doing is use the **pcl::toROSMsg(...)** to convert my **pcl::PointCloud::Ptr** to a **ros::sensor_msgs::PointCloud2** message, which a publish to the ROS network. I do not do any sort of transformation to its points. Any advice how to correct this behaviour? I can also provide the code though as I said I just take the points from the camera, convert them to a ROS-compatible message and display them inside RViz. Thanks!

Viewing all articles
Browse latest Browse all 171

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>