Extracting tags from images in a bag

60 views
Skip to first unread message

Li Brus

unread,
Apr 18, 2023, 3:31:50 AM4/18/23
to tagslam
Hi bernd,
When I was trying to extract tags from images in a bag, I found that my out.bag extraction was not successful with sync_and_detect.launch,and my out.bag only has topic body and tf.How can I get the bag in the example?1.png
I also read the Visualization part ,I don't understand how the bag containing two topics mentioned in the Massage the bag was obtained,
1.png
If I execute add_camera_info.py, what are the outout.bag  and  input.bag this code?
Thank you for your contribution to Tagslam,
Best,
Brus

Bernd Pfrommer

unread,
Apr 18, 2023, 3:40:39 AM4/18/23
to tagslam
I'm totally confused. Do you have a bag with images? You first need to record that one directly from the camera with "rosbag record".
The rosbag info you show has no images. Can you show the output of rosbag info for the bags before and after you run sync_and_detect?

 

Li Brus

unread,
Apr 18, 2023, 3:51:44 AM4/18/23
to tagslam

Sorry, I didn't express myself clearly,I recorded a bag called camera, which contains camera information,then I use this bag to execute sync_ and_ Detect, but the result is like this
1.png

Li Brus

unread,
Apr 18, 2023, 3:55:33 AM4/18/23
to tagslam
This is bag with camera info
1.png

在2023年4月18日星期二 UTC+8 15:40:39<bernd.p...@gmail.com> 写道:

Bernd Pfrommer

unread,
Apr 19, 2023, 5:09:22 PM4/19/23
to tagslam
Ok, so this bag has raw images under /hikrobot_camera/rgb/compressed. Now you need to put that topic into your sync_and_detect.launch file, like so:

<rosparam param="image_topics">

["/hikrobot_camera/rgb/compressed/"]

</rosparam>

Li Brus

unread,
May 4, 2023, 10:02:10 PM5/4/23
to tagslam
thank you very much!
Reply all
Reply to author
Forward
0 new messages