Unable to visualize camera inside RViz
I am trying to visualize camera inside RViz. The camera info topic and image topic are available as shown below:
[baxter - http://011312P0016.local:11311] baxterpc@BaxterPC7350:~/ros_ws$ rostopic list|grep kinect
/head/kinect2/k2_rgb/camera_info
/head/kinect2/k2_rgb/image
I can also get the live echo from camera_info topic in the terminal.
[baxter - http://011312P0016.local:11311] baxterpc@BaxterPC7350:~/ros_ws$ rostopic echo /head/kinect2/k2_rgb/camera_info
header:
seq: 1958
stamp:
secs: 2410039413
nsecs: 0
frame_id: /k2/rgb_frame
height: 1080
width: 1920
distortion_model: plumb_bob
D: [0.0, 0.0, 0.0, 0.0, 0.0]
K: [1081.3720703125, 0.0, 959.5, 0.0, 1081.3720703125, 539.5, 0.0, 0.0, 1.0]
R: [1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0]
P: [1081.3720703125, 0.0, 959.5, 0.0, 0.0, 1081.3720703125, 539.5, 0.0, 0.0, 0.0, 1.0, 0.0]
binning_x: 0
binning_y: 0
roi:
x_offset: 0
y_offset: 0
height: 0
width: 0
do_rectify: False
The image can be seen using ros image_view tool as following:
[baxter - http://011312P0016.local:11311] baxterpc@BaxterPC7350:~/ros_ws$ rosrun image_view image_view image:=/head/kinect2/k2_rgb/image
Below is the screenshot:
However, when I add the camera the in RViz, it doesn't show anything. Please see below the screenshot of RViz:
Asked by ravijoshi on 2017-11-06 00:02:44 UTC
Comments
Did you try changing the transport hint?
Asked by VictorLamoine on 2017-11-07 02:32:54 UTC
@VictorLamoine: What is transport hint? Can you please elaborate a bit more?
Asked by ravijoshi on 2017-11-07 04:29:45 UTC
Last screenshot, under the "Camera" topic, there is a "Transport Hint", test them all!
Asked by VictorLamoine on 2017-11-07 05:06:20 UTC