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

Database logged by mongdb_log_cimg cannot be played. #3

Open
longjie opened this issue Apr 2, 2015 · 3 comments
Open

Database logged by mongdb_log_cimg cannot be played. #3

longjie opened this issue Apr 2, 2015 · 3 comments

Comments

@longjie
Copy link

longjie commented Apr 2, 2015

Logging compressed image as:

$ rosrun mongodb_log mongodb_log.py /left/image_raw/compressed
Adding topic /left/image_raw/compressed
DETECTED compressed image topic /left/image_raw/compressed, using fast C++ logger
^Ctajima@nextage1:~/Codes/ros/hydro/src/mongodb_store/mongodb_log/src$ rrun mongodb_log mongodb_log.py /left/image_raw/compressed
Adding topic /left/image_raw/compressed
WARNING: topic [/left/image_raw/compressed] does not appear to be published yet
DETECTED compressed image topic /left/image_raw/compressed, using fast C++ logger

And playing it back as:

$ rosrun mongodb_store mongodb_play.py /left/image_raw/compressed
Playing back topics set([u'left_image_raw_compressed'])
Exception in thread Thread-4:
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 551, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.7/threading.py", line 504, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/home/tajima/Codes/ros/hydro/src/mongodb_store/mongodb_store/scripts/mongodb_play.py", line 116, in queue_from_db
    self.publisher = rospy.Publisher(documents[0]["_meta"]["topic"], msg_cls, latch = documents[0]["_meta"]["latch"], queue_size = 10)
KeyError: 'topic'

The database has no _meta: {topic, latch} field, I guess that's why.

Environment: Ubuntu12.04 + Hydro, mongodb_store ver. 0.1.12

Thank you.

@jeremy-a
Copy link

jeremy-a commented Nov 4, 2015

I have the exact same error but on Ubuntu 14.04 + Indigo using mongod ver2.4.9. Any updates?

@marc-hanheide
Copy link

see strands-project/mongodb_store#123 for further discussion

@hawesie
Copy link

hawesie commented Nov 5, 2015

Also, for the record, this repo is out of date, and the developed version which is released in binary by ROS is at: https://github.com/strands-project/mongodb_store/tree/hydro-devel/mongodb_log so issues should be raised at https://github.com/strands-project/mongodb_store/issues

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

4 participants