Reading PointCloud2 in C++
How do you read a PointCloud2 in C++? I'm interested in getting the depth(z point). Maybe an equivalent of this: [reading pointcloud2 in python](https://code.ros.org/trac/ros-pkg/ticket/4440).
View ArticleRGB and Depth sensor_msgs::Image vs XYZRGB sensor_msgs::PointCloud2
Hello, So I have ROS running across multiple machines on a limited network, and I have two possibilities, transfer a XYZRGB sensor_msgs::PointCloud2 directly or two sensor_msgs::Image (one rgb and one...
View ArticleGenerate PointCloud2 without sensor
How can I construct a sensor_msgs::PointCloud2 message from scratch, in c++? I have looked up the structure and documentation of that message but I don't know how to build it up. Does someone have an...
View ArticleTrouble visualizing PointCloud2 in Rviz
Hello, I publish a PointCloud2 message to a predefined topic that rviz's PointCloud display subscribes to (/output) successfully, but the pointcloud does not show up on the visualization. I know it...
View ArticleEquivalent of Marker frame_locked for PointCloud2 in rviz?
I have knowledge that point clouds are locked (have an unchanging transform relative to) a moving frame. The rviz point cloud won't move with the moving frame because at the one timestamp it was...
View ArticleCode examples of Pointcloud Autonomous Navigation?
I am currently using a VLP-16 device that produces Pointcloud data type messages. I have tried with no success to convert them to Laserscan for Autonomous Navigation (as that appears to be the popular...
View ArticleIm trying to transform a pointcloud (rotation along z) using the following...
#include #include #include #include void callback(const sensor_msgs::PointCloud2ConstPtr &cloud_msg) { ROS_INFO("Message recieved:"); //msg to c string Eigen::Matrix4f transform_1 =...
View Articlehow to compute the centroid of the PointCloud2
I am considering how can I compute the centroid of sensor_msgs/PointCloud2, is there a direct way to do this? Because I only find he pcl::CentroidPoint< PointT > Class Template Reference *[link...
View ArticleMaintain/keep all the PointCloud2 in Rviz
I am publishing PointCloud2 in Rviz, but when I publish the current PointCloud2 msg from the topic, the last msg will disappear, how can I maintain all the PointCloud2 in Rviz?
View ArticleHow to know Ring/Layer/Laser(/Color) from PointCloud2
Hi, friend. I am using Ubuntu 14.04 and ROS Indigo for the sensor **Velodyne VLP-16**. I am trying to extract the useful Information form `PointCloud2` and reorder them to the format that I needed....
View Articlesensor_msgs pointcloud2 color value ?
Does sensor_msgs/PointCloud2 data type also contains the rgb value of the image? Currentely i'm using below code, and when i publish the converted pcl type, it also shows rgb values, how is that...
View Articlerviz stops node from publishing
Hallo, I have weird problem with rviz in ros. I have a node, who receives a PointCloud and formats it into a PointCloud2 and publishes a PointCloud2 message afterwards. I can display that pointcloud...
View Articlebuild octomap using pointcloud2 data
I could use a little help getting Octomap to publish occupancy grid cell data. I have been reading the explanation on the ROS Wiki for how to build an Octomap using the octomap_server node, and...
View ArticleTarget pose from pointcloud
Hi, I'm using ROS kinetic and PCL to find a target point. The aim is to use moveit to move to the target point/pose. I used pcl to create a concave hull and as shown in the code below, I publish the tf...
View Articleproblem in calculating coordinate from PointCloud2
Hi all, this is my callback void get_point_cloud(const sensor_msgs::PointCloud2 &img) { sensor_msgs::PointCloud2 img1; tf::TransformListener listener; tf::StampedTransform transform;...
View Articlekinect2 dont take all point clouds
Hi everyone my kinect 2 does not save the entire point cloud that is displayed in the rviz or in the viewer, ignores surfaces and some elements(walls, objects, ground, etc) the strange thing is that in...
View ArticleSICK MRS6124 detecting phantom data, how to filter pointcloud2 data by distance?
Hi everyone, I am using the [sick...
View ArticleGenerate and publish PointCloud2 in ros2?
What's the most convenient way to generate a bunch of points in a loop, assign xyz (and possibly rgb), and then publish as a PointCloud2? I'm interested in a full C++ code example mainly but python...
View ArticleIssue with message_filters and PointCloud2 in python
I want to subscribe to pointcloud data and image data and sync them and then publish them again. I have written a short and simple script for this: import rospy from sensor_msgs.msg import Image as...
View Article