ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

Is depth registered image bigger than depth image in size?

asked 2014-07-24 20:07:59 -0500

Xegara gravatar image

Is depth registered image bigger than depth image in size? I can't seem to find the answer in the internet.

I needed to know this for optimization in wireless image streaming. When I stream two openni2 cameras in one wifi network, sometimes it just drop frames. I was thinking if depth registered is larger than depth image, maybe I can just register the image in the base station, thus save bandwidth.

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
1

answered 2014-07-24 21:13:12 -0500

Hi there!

According to the headers of /camera/depth/image:

$ rostopic echo -n 1 /camera/depth/image | head
header: 
  seq: 304
  stamp: 
    secs: 1406254046
    nsecs: 731604330
  frame_id: /camera_depth_optical_frame
height: 480
width: 640
encoding: 32FC1
is_bigendian: 0

and the headers of /camera/depth_registered/image_raw:

$ rostopic echo -n 1 /camera/depth_registered/image_raw | head
header: 
  seq: 0
  stamp: 
    secs: 1406254097
    nsecs: 573718779
  frame_id: /camera_depth_optical_frame
height: 480
width: 640
encoding: 32FC1
is_bigendian: 0

They both are the same size: width, height and encoding are the same.

edit flag offensive delete link more

Comments

how did you get that ? when I launch the command I get nothing !

ROSkinect gravatar image ROSkinect  ( 2014-07-25 02:53:08 -0500 )edit
1

you should be running "roslaunch openni_launch openni.launch" or "roslaunch openni2_launch openni2.launch" (depending on your RGBD sensor) on a separate terminal.

Martin Peris gravatar image Martin Peris  ( 2014-07-25 04:30:18 -0500 )edit
0

answered 2014-07-25 02:47:18 -0500

ROSkinect gravatar image

updated 2014-07-25 02:52:03 -0500

It's due to the change frame. because depth_registered is aligned with camera rgb: the system is calibrated, then this topic /camera/depth_registered/image_raw comes from this one /camera/depth/image but by adding intrinsic parameters.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2014-07-24 20:07:59 -0500

Seen: 741 times

Last updated: Jul 25 '14