In this example, "x" filed and "y" filed has a size 100, and filed "vectors" has a size 100*3
This makes me thinking that filed "vectors" should put the points I want to transform to ros msg, and "x" filed and "y" filed is the indices of it on the depth image.
This is wrong.
I took some time to realize it. So, to avoid confusion to other users, I propose to update the readme file example as follows:
When I try to transform numpy to pointcloud2, the example on readme file is confusing me:
In this example,
"x"
filed and"y"
filed has a size 100, and filed"vectors"
has a size 100*3 This makes me thinking that filed"vectors"
should put the points I want to transform to ros msg, and"x"
filed and"y"
filed is the indices of it on the depth image. This is wrong. I took some time to realize it. So, to avoid confusion to other users, I propose to update the readme file example as follows: