Closed ZdenekM closed 9 years ago
Just a note. Depth data from Gazebo has encoding: 32FC1
- which is equivalent to CV_32FC1
I guess.
do you have a gazebo scene I could reuse as a unit test ?
It's scene independent so you can use even roslaunch pr2_gazebo pr2_empty_world.launch
. This is my config:
source1:
type: RosKinect
module: 'object_recognition_ros.io'
parameters:
rgb_frame_id: '/head_mount_kinect_rgb_optical_frame'
rgb_image_topic: '/head_mount_kinect/rgb/image_raw'
rgb_camera_info: '/head_mount_kinect/rgb/camera_info'
depth_image_topic: '/head_mount_kinect/depth/image_raw'
depth_camera_info: '/head_mount_kinect/depth/camera_info'
sink1:
type: TablePublisher
module: 'object_recognition_tabletop'
inputs: [source1]
pipeline1:
type: TabletopTableDetector
module: 'object_recognition_tabletop'
inputs: [source1]
outputs: [sink1]
parameters:
table_detector:
min_table_size: 4000
plane_threshold: 0.01
And this is the command I'm using to bring up ORK:
rosrun object_recognition_core detection -c my_conf_file.ork
Thanks for your time.
I have some news. It's probably Gazebo issue. See following:
rostopic echo /head_mount_kinect/depth/image_raw | grep encoding
encoding: mono8
encoding: 32FC1
encoding: 32FC1
encoding: mono8
encoding: 32FC1
encoding: 32FC1
encoding: mono8
encoding: 32FC1
encoding: 32FC1
encoding: mono8
Have you checked that there aren't two publishers publishing in that topic? That looks weird.
rostopic info /head_mount_kinect/depth/image_raw
2015-09-01 12:19 GMT+02:00 Zdeněk Materna notifications@github.com:
I have some news. It's probably Gazebo issue. See following:
rostopic echo /head_mount_kinect/depth/image_raw | grep encoding encoding: mono8 encoding: 32FC1 encoding: 32FC1 encoding: mono8 encoding: 32FC1 encoding: 32FC1 encoding: mono8 encoding: 32FC1 encoding: 32FC1 encoding: mono8
— Reply to this email directly or view it on GitHub https://github.com/wg-perception/object_recognition_core/issues/35#issuecomment-136664593 .
It's definitely weird.
rostopic info /head_mount_kinect/depth/image_raw
Type: sensor_msgs/Image
Publishers:
* /gazebo (http://robodev1:39815/)
Subscribers:
* /image_view_1441103460258460915 (http://robodev1:45951/)
Btw, I found that in PR2 URDF there are two kinect sensors. One here and second here. The first one publish ir topics and the second one rgb topics. But both of them also publish depth data. Could this cause some issues?
Ok, so it's definitely issue of PR2 URDF: https://github.com/PR2/pr2_simulator/issues/112. Sorry for noise. I will close this issue.