Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

questions about the bag file #40

Open
wk524629918 opened this issue Mar 25, 2021 · 2 comments
Open

questions about the bag file #40

wk524629918 opened this issue Mar 25, 2021 · 2 comments

Comments

@wk524629918
Copy link

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?

@ahmadkh1995
Copy link

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

@wk524629918
Copy link
Author

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants