sensor_msgs/PointCloud2 custom data type.

asked 2021-01-26 09:57:31 -0500

hoseung_choi gravatar image

In the process of publishing PointCloud2 Topic, I want to change the data type of the data field. (Float32 --> Float64) Is it possible??

  • Default

name : “x”

offset : 0

datatype : 7 (Float32)

count : 1

name: "y"

offset : 4

datatype : 7

count : 1

name: "z"

offset : 8

datatype : 7

count : 1

name: "intensity"

offset : 16

datatype : 7

count : 1

point_step : 32

  • To publish by changing the data type to float64, datatype value to 7 -> 8 in the default setting above, but the topic was confirmed in the terminal but is not visualized in rviz. Have I set the wrong value such as Offset or Point Step??
edit retag flag offensive close merge delete