Hi, Dude, I am using python to subscribe to the point cloud topic information of type sensor_msgs/PointCloud2 that I publish in ROS, I hope I can visualize the point cloud data I subscribe to in real time, I think python-pcl can help me with this requirement, But in my experiment, my point cloud instance is as follows:
I think the first three values of each row of these data are the X, Y, Z values of the point cloud, and the fourth value is the rgb value, but I don't understand why the rgb The value would be so large and negative, I thought the rgb value should be three independently represented values, But the data just shows an implausible RGB data value.
I think I must have made a mistake in some step, or I am missing some necessary steps, but I don't know what exactly is causing the problem, I need help, I would like to reply, thank you very much
Operating System: Ubuntu18.04.5 PCL Version: python_pcl-0.3.0rc1 ROS Version: ROS Melodic
Hi, Dude, I am using python to subscribe to the point cloud topic information of type sensor_msgs/PointCloud2 that I publish in ROS, I hope I can visualize the point cloud data I subscribe to in real time, I think python-pcl can help me with this requirement, But in my experiment, my point cloud instance is as follows:![Screenshot from 2022-05-17 00-23-44](https://user-images.githubusercontent.com/79902739/168639217-b41f38a3-582b-4a66-8c28-b5309d51e339.png)
Part of my code looks like this:
Part of the data I got is shown below,
I think the first three values of each row of these data are the X, Y, Z values of the point cloud, and the fourth value is the rgb value, but I don't understand why the rgb The value would be so large and negative, I thought the rgb value should be three independently represented values, But the data just shows an implausible RGB data value.
I visualize it with the following code:
But I got some images like this:
![Screenshot from 2022-05-17 00-49-02](https://user-images.githubusercontent.com/79902739/168644772-a8b63d01-98d4-4792-bda2-577b31e5c104.png)
I think I must have made a mistake in some step, or I am missing some necessary steps, but I don't know what exactly is causing the problem, I need help, I would like to reply, thank you very much
Best wishes