semantic_slam icon indicating copy to clipboard operation
semantic_slam copied to clipboard

questions about the bag file

Open wk524629918 opened this issue 3 years ago • 2 comments

I have successfully run demo.bag, I used the Kinect camera to record my own bag file, and the semantic segmentation is normal, but there is no semantic map. What should I pay attention to when making my own demo.bag?

wk524629918 avatar Mar 25 '21 01:03 wk524629918

Hi For getting the semantic octomap in Rviz with your own dataset or camera , you have to modify "color_pcl_generator.py" and multiplicate below lines to Depth_Map_Factor , for example to 0.0001 ;

    self.xyd_vect[:,0:2] = self.xy_index * depth_img.reshape(-1,1) / 1000
    self.xyd_vect[:,2:3] = depth_img.reshape(-1,1) / 1000

It's better you check this value and decrease or increase it.

Also check the camera intrinsic matrix parameter in this file "color_pcl_generator.py" and also parameter file (.yaml) corresponds to your camera's intrinsic matrix values , you can check it by;

   $ rostopic echo camera/rgb/camera_info

ahmadkh1995 avatar Mar 29 '21 00:03 ahmadkh1995

Hi For getting the semantic octomap in Rviz with your own dataset or camera , you have to modify "color_pcl_generator.py" and multiplicate below lines to Depth_Map_Factor , for example to 0.0001 ;

    self.xyd_vect[:,0:2] = self.xy_index * depth_img.reshape(-1,1) / 1000
    self.xyd_vect[:,2:3] = depth_img.reshape(-1,1) / 1000

It's better you check this value and decrease or increase it.

Also check the camera intrinsic matrix parameter in this file "color_pcl_generator.py" and also parameter file (.yaml) corresponds to your camera's intrinsic matrix values , you can check it by;

   $ rostopic echo camera/rgb/camera_info

Thank you for your reply. How do I get my own Depth_Map_Factor?

wk524629918 avatar Mar 31 '21 02:03 wk524629918