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

Relocalizing only supported for horizontal looking cameras. #163

Open
robin-zealrobotics opened this issue Sep 13, 2023 · 3 comments
Open

Comments

@robin-zealrobotics
Copy link

https://github.com/stella-cv/stella_vslam_ros/blob/a7a7ae31a9132be159a5c999f1553eaa63261be7/src/stella_vslam_ros.cc#L206C5-L209C6

Correct me if I'm wrong, but the normal vector here means relocalization happens in the XZ-plane in optical camera frame. For a camera that is looking horizontal, this means the XY-plane in base-link frame. So far this makes sense for robots moving in the XY-plane.

However if the camera is mounted differently, e.g. looking at the ceiling or any angle, doesn't this code look for keyframe matches in a plane completely different than the baselink XY-plane?

My guess is the normal vector would need to be transformed using tf2 as well to guarantee that it aligns with the XY-plane in baselink -frame (and optionally even a user-configurable plane)

@ymd-stella
Copy link
Contributor

ymd-stella commented Sep 13, 2023

I think you are right. I guess we should also fix rot_cv_to_ros_map_frame. This should be the transform from the initial camera pose to the map frame.

It would be nice if users could specify the conversion between stella_vslam map and map frame as a parameter or tf.

@ymd-stella
Copy link
Contributor

I have created draft #168.

@robin-zealrobotics
If you can confirm that it works, please try.

@robin-zealrobotics
Copy link
Author

Can't run it right now, but I reviewed the code.

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