sync_and_detect for multi-cameras

84 views
Skip to first unread message

Jan Li

unread,
Nov 18, 2022, 7:01:08 AM11/18/22
to tagslam
Hi Dr. Bernd Pfrommer:
I have some problems about sync_and_detect node: 
1. Dose the sync_and_detect node can sync images from multi-cameras and detetect tags,  pub detected tags as well?
2. It doesn’t work when I add two image topics to the roslaunch file, should i set other params?
3. would it become very slow when detecting muliti-imags?

Looking forward to your reply.
Best wishes!

Bernd Pfrommer

unread,
Nov 18, 2022, 8:05:38 AM11/18/22
to tagslam
1. Yes
2. "It doesn't work" is insufficient information. How about error logs? Is sync_and_detect subscribing to the right topics? Use rosnode info to check.
3. sync_and_detect's CPU consumption will scale linearly with the number of images

Message has been deleted

Jan Li

unread,
Nov 19, 2022, 2:52:58 AM11/19/22
to tagslam
As for problem 2:
The image topics are /cam0/image_raw and /cam1/image_raw, but no detected tags message, it seems like no synced message from  flex_sync...
Snipaste_2022-11-19_15-34-21.pngSnipaste_2022-11-19_15-52-00.png

Bernd Pfrommer

unread,
Nov 19, 2022, 5:43:38 AM11/19/22
to Jan Li, tagslam
Are the cameras really hardware synced? The way you configured your launch file, the images must have identical header time stamps. Set use_approximate_sync to true and see what happens.

--
You received this message because you are subscribed to the Google Groups "tagslam" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tagslam+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tagslam/2a587746-642d-4a6d-b5d8-5a29972a14d2n%40googlegroups.com.

Jan Li

unread,
Nov 19, 2022, 6:30:16 AM11/19/22
to tagslam
Oh, I made the mistake, the cameras are not hardware synced...I run the use_approximate_sync_ node to make identical header time stamps of two image topics, and then run sync_and_detect _node, it works!
I appreciate your help very much!!!

Hongbo Zhu

unread,
Dec 5, 2022, 9:52:11 PM12/5/22
to tagslam
Hi, I am very interested in multi-camera extrinsic calibration by using TagSLAM. But I still cannot figure out how to use multiple cameras with sync_and_detect.launch. Would you mind share your camera.yaml and tag_slam.yaml? Thanks!

Bernd Pfrommer

unread,
Dec 6, 2022, 12:34:01 PM12/6/22
to tagslam
The files camera.yaml and tag_slam.yaml don't even come into the picture when using sync_and_detect. Can you describe more precisely what the problem is? No output? Error message?
Things to check: what topics is sync_and_detect subscribing to (use rosnode info)? What are the topic names published by your camera driver? Do they match? Are your cameras hardware synced? If not, see answer above.

Hongbo Zhu

unread,
Dec 7, 2022, 10:16:06 PM12/7/22
to tagslam
Thanks for your reply! I have fixed the problem. It is all about the hard syncronization of my cameras. Thanks!
Reply all
Reply to author
Forward
0 new messages