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

"camera_optical" passed to lookupTransform argument target_frame does not exist. #11

Open
IntoSan opened this issue Aug 19, 2021 · 2 comments

Comments

@IntoSan
Copy link

IntoSan commented Aug 19, 2021

Hello,

Installation was success but when I launch example:
"roslaunch orb_slam2_ros raspicam_mono_wide.launch"
I get this error and data is not delivered from .bag file.
Error

Can you tell me, how I can fix it?

@rayvburn
Copy link
Owner

@IntoSan, you simply have to define a camera_optical frame so tf can find such a frame in a transform tree.

You can find an example in a related package: diff_drive_mapping_robot. The referenced tf was created specifically to a custom mobile base with a camera mounted on top.

You've said that you use a provided bag. Do you find a base_camera frame with rosrun rqt_tf_tree rqt_tf_tree? If yes, the simplest fix is to create a static transform, like:

rosrun tf static_transform_publisher 0 0 0 -1.57 0 -1.57 base_camera camera_optical 100

and possibly adjust rotation, if needed. You should follow REP 103 in your application.

Please let me know if this helped.

@IntoSan
Copy link
Author

IntoSan commented Aug 23, 2021

@rayvburn Sorry, I did not find base_camera frame. There is no any tf data.

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