Closed syediu closed 5 years ago
This is a configuration or visualization issue. See links below to help, closing.
https://github.com/ros-perception/image_pipeline/issues/397 http://wiki.ros.org/stereo_image_proc/Tutorials/ChoosingGoodStereoParameters
Hi all, I am trying to get
disparity image
andpointclouds
fromVREP's
twovision sensors
(assembled like stereo camera) usingStereo_Image_Proc.
Disparity image is successfully displayed and pointcloud topic (i-e/points2
) publishes consistent data at each iteration(I mean its data contains few numbers like 197, 172,0 ,0,0,0 etc repeatedly). I don't know where am I doing mistake. I would be highly grateful if someone please solve my this problem. I have attachedrqt_graph
,rostopic echo /points2
andrviz
display of pointcloud. ThanksEDITED: when i convert the pointcloud2 to image using below two commands I can see the image from pointcloud data. the problem is i can't visualize it in rviz.
rosrun pcl_ros convert_pointcloud_to_image input:=/points2 output:=/my_image
rosrun image_view image_view image:=/my_image
Hi
Hi all, I am trying to get
disparity image
andpointclouds
fromVREP's
twovision sensors
(assembled like stereo camera) usingStereo_Image_Proc.
Disparity image is successfully displayed and pointcloud topic (i-e/points2
) publishes consistent data at each iteration(I mean its data contains few numbers like 197, 172,0 ,0,0,0 etc repeatedly). I don't know where am I doing mistake. I would be highly grateful if someone please solve my this problem. I have attachedrqt_graph
,rostopic echo /points2
andrviz
display of pointcloud. ThanksEDITED: when i convert the pointcloud2 to image using below two commands I can see the image from pointcloud data. the problem is i can't visualize it in rviz.
rosrun pcl_ros convert_pointcloud_to_image input:=/points2 output:=/my_image
rosrun image_view image_view image:=/my_image
Need you help ! Got stuck in the same situation badly.
@syediu Were you able to solve this issue?
@Mdmorshadurrahman @JMadhup Please apology my late response. Yes, I did solve the issue.
Solution:
While using the stereo camera
, you also need to supply the baseline
between the left and right camera, if you don't specify this, you will not be able to get depth. See this link for reference, in the Projection matrix, supply the value of the correct baseline
as mentioned in the link.
Projection matrix can be found in the Sensor_msgs/CameraInfo when publishing the camera information.
@syediu are you referring tto the
Hi all, I am trying to get
disparity image
andpointclouds
fromVREP's
twovision sensors
(assembled like stereo camera) usingStereo_Image_Proc.
Disparity image is successfully displayed and pointcloud topic (i-e/points2
) publishes consistent data at each iteration(I mean its data contains few numbers like 197, 172,0 ,0,0,0 etc repeatedly). I don't know where am I doing mistake. I would be highly grateful if someone please solve my this problem. I have attachedrqt_graph
,rostopic echo /points2
andrviz
display of pointcloud. ThanksEDITED: when i convert the pointcloud2 to image using below two commands I can see the image from pointcloud data. the problem is i can't visualize it in rviz.
rosrun pcl_ros convert_pointcloud_to_image input:=/points2 output:=/my_image
rosrun image_view image_view image:=/my_image