Open cmperezg opened 5 years ago
Can you paste the contents of the "fields" (PointField list) for a frame of this cloud? We've seen issues with some non-standard field layouts.
Hi @mvollrath , thanks for your reply.
Here are the fields for a frame:
-
name: "x"
offset: 0
datatype: 7
count: 1
-
name: "y"
offset: 4
datatype: 7
count: 1
-
name: "z"
offset: 8
datatype: 7
count: 1
---
This was not a bug. The problem was that I was not aware that a point limit was being set by default. setting max_pts to 200000 fixed the problem for me.
Another question About PointCloud2. It looks like that when max_pts
(name it N) is selected, only the N first points are displayed. Is there a way to display N points choosing them ( for example every 2 points ) ?
@Kad91 Use pointRatio
for that kind of subsampling.
Hello I've built an app to display sensor data from a robot, but I can't get PointClouds to display correctly. LaserScans work without issue, so I'm quite sure the structure of my code is fine. This is the configuration I am trying to display:
The tfClient is added later, and the config is handled by a parser.
However, the point cloud is displayed very weirdly. here is a screenshot:
Here is an rviz screenshot of the same rosbag playing, subscribing to the exact same topics:
Why is it being flattened out this way? Am I missing something in the configuration? Is it even possible to display more than one point cloud at once? I had no issues displaying several laser scans. After a few seconds this starts to lag like crazy too, but that is a separate issue and I see there is a ticket for it already.
Any help with this issue would be greatly appreciated.