point cloud produces meaningless data
I'm trying to save the data that my TurtleBot sees when PointCloud2 is turned on. To do this I call 'rostopic echo /camera/depth/points > points.txt' but when I view the data it looks like the following:
header:
seq: 253
stamp:
secs: 1340030655
nsecs: 180170944
frame_id: camera_rgb_optical_frame
height: 480
width: 640
fields:
name: x
offset: 0
datatype: 7
count: 1
name: y
offset: 4
datatype: 7
count: 1
name: z
offset: 8
datatype: 7
count: 1
is_bigendian: False
point_step: 16
row_step: 10240
data: [0, 0, 192, 127, 0, 0, 192, 127, 0, 0, 192, 127, 0, 0, 128, 63,
0, 0, 192, 127, 0, 0, 192, 127, 0, 0, 192, 127, 0, 0, 128, 63,
0, 0, 192, 127, 0, 0, 192, 127, 0, 0, 192, 127, 0, 0, 128, 63,
0, 0, 192, 127, 0, 0, 192, 127, 0, 0, 192, 127, 0, 0, 128, 63,
.
.
.
0, 0, 192, 127, 0, 0, 192, 127, 0, 0, 192, 127, 0, 0, 128, 63,]
Why does it give me the same point over and over again? When the data shows up in rviz it looks perfectly fine...