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

No messages received #1

Open
hoonkai opened this issue Sep 17, 2019 · 2 comments
Open

No messages received #1

hoonkai opened this issue Sep 17, 2019 · 2 comments

Comments

@hoonkai
Copy link

hoonkai commented Sep 17, 2019

Hi

Great work there! I'm trying to get it to work with a simple rosbag file I made, but I keep getting the error no message is received:

$ rosrun rgbd_export rgbd_sync_export.py   ~/test2.bag   ~/export   --topic_rgb /camera/rgb/image_raw   --topic_depth /camera/depth_registered/image_raw   --topic_camera_info /camera/rgb/camera_info


reading: /home/mwell/test2.bag
duration: 4.97503685951 s
exporting to: /home/mwell/Downloads/test_extract/export
Ignoring joint topic.
NO colour images. Check that topic '/camera/rgb/image_raw' is present in bag file!
NO depth images. Check that topic '/camera/depth_registered/image_raw' is present in bag file!
Found no messages on any of the given topics.
Valid topics are: ['camera/depth_registered/image_raw', 'tf_static']
Given topics are: ['/camera/rgb/image_raw', '/camera/depth_registered/image_raw', '/camera/rgb/camera_info', '/joint_states']
Traceback (most recent call last):
  File "/home/mwell/catkin_ws/src/rgbd_export/src/rgbd_sync_export.py", line 281, in <module>
    RGBDExporter().export()
  File "/home/mwell/catkin_ws/src/rgbd_export/src/rgbd_sync_export.py", line 143, in export
    raise Exception("No CameraInfo message received!")
Exception: No CameraInfo message received!

This bag publishes tf_static rather than tf though. Any idea why this is happening?

Thanks

@hoonkai
Copy link
Author

hoonkai commented Sep 17, 2019

Here's some info on the rosbag file:

path:        test2.bag
version:     2.0
duration:    5.0s
start:       Sep 17 2019 03:48:43.16 (1568656123.16)
end:         Sep 17 2019 03:48:48.14 (1568656128.14)
size:        246.3 MB
messages:    484
compression: none [241/241 chunks]
types:       sensor_msgs/CameraInfo [c9a58c1b0b154e0e6da7578cb991d214]
             sensor_msgs/Image      [060021388200f6f0f447d0fcd9c64743]
             tf2_msgs/TFMessage     [94810edda583a504dfda3829e70d7eec]
topics:      camera/depth_registered/camera_info   120 msgs    : sensor_msgs/CameraInfo
             camera/depth_registered/image_raw     120 msgs    : sensor_msgs/Image     
             camera/rgb/camera_info                120 msgs    : sensor_msgs/CameraInfo
             camera/rgb/image_raw                  120 msgs    : sensor_msgs/Image     
             tf_static                               4 msgs    : tf2_msgs/TFMessage     (4 connections)

@christian-rauch
Copy link
Owner

Sorry, I missed that issue. Seems I never got a notification for it.

I cannot download the example bag file anymore. But from the topic names, it looks like that your bag file does not have the leading slash, e.g. your bag image topic is camera/rgb/image_raw, while your ask for /camera/rgb/image_raw as the command line parameter.

Does rosrun rgbd_export rgbd_sync_export.py ~/test2.bag ~/export --topic_rgb camera/rgb/image_raw --topic_depth camera/depth_registered/image_raw --topic_camera_info camera/rgb/camera_info (i.e. without the leading '/') work in your case?

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