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

mongodb_play KeyError question #123

Closed
vonovak opened this issue Mar 16, 2015 · 10 comments
Closed

mongodb_play KeyError question #123

vonovak opened this issue Mar 16, 2015 · 10 comments
Assignees

Comments

@vonovak
Copy link
Contributor

vonovak commented Mar 16, 2015

Hello,
I've got a question on the monngodb_play script. I recorded some camera data from the head_xtion_compressed_rgb_compressed topic. Now when I want to replay it, I run the play script and get the following output.

Playing back topics set([u'head_xtion_compressed_rgb_compressed']) Exception in thread Thread-4: Traceback (most recent call last): File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner self.run() File "/usr/lib/python2.7/threading.py", line 763, in run self.__target(*self.__args, **self.__kwargs) File "./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'

Can you tell whether there is something wrong with the script or there is something broken on our side?

Thanks a lot!

@vonovak vonovak changed the title mongodb_play KeyError mongodb_play KeyError question Mar 16, 2015
@marc-hanheide
Copy link
Member

@vonovak is this still an issue? I have another user reporting the same problem (he'll probably comment on this soon). Did you record this with mongodb_log? Did you find a solution for it already?

@jeremy-a
Copy link

jeremy-a commented Nov 4, 2015

I think I have the same problem. It also seems to be recorded on the mongodb_log issue side (timn/ros-mongodb_log#3). It was suggested to me that the general problem is an incompatibility between mongodb_store and mongodb_log packages. My best guess is that mongodb_log should be updated to support the playback better. I hope we can make this happen as I see this as the go to replacement for rosbag. It's much more powerful to have the ability to play the data back and to run queries on the same data.

@marc-hanheide
Copy link
Member

@hawesie can you comment on this. It seems we cannot use mongodb_store/mongodb_play.py to play back things that have been recorded with mongodb_log, right? Do you agree that we should make the data formats compatible?

@hawesie
Copy link
Member

hawesie commented Nov 5, 2015

They definitely should be compatible. Either way the playback should be more robust, so I'll look into this.

@hawesie
Copy link
Member

hawesie commented Nov 5, 2015

My guess is this is just sloppy engineering on my part. I assume the 'latch' key is always present, but this was only introduced at d2cb06e and so recordings made before that will cause this error.

hawesie added a commit to hawesie/mongodb_store that referenced this issue Nov 5, 2015
@hawesie
Copy link
Member

hawesie commented Nov 5, 2015

@jeremy-a-asi @vonovak it would be great if you could test the code at #156 to see if this fixes your problem.

@jeremy-a
Copy link

jeremy-a commented Nov 5, 2015

I’ll try that out. Thanks for letting me know.

[cid:image001.png@01D04620.57208070]

Jeremy Adams
SOFTWARE
T

+1.866.881.2171

asirobots.comhttp://www.asirobots.com/

On Nov 5, 2015, at 2:02 PM, Nick Hawes <notifications@github.commailto:notifications@github.com> wrote:

@jeremy-a-asihttps://github.com/jeremy-a-asi @vonovakhttps://github.com/vonovak it would be great if you could test the code at #156#156 to see if this fixes your problem.


Reply to this email directly or view it on GitHubhttps://github.com//issues/123#issuecomment-154190095.

This message contains confidential information and is intended only for the recipient. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately if you have received this e-mail by mistake and delete this e-mail from your system. Finally, the recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.

@jeremy-a
Copy link

jeremy-a commented Nov 6, 2015

One thing I noticed is that this fix is on a hydro branch. I don’t see an indigo branch but there is a jade. Should I able to build and run this branch with ROS indigo release?

[cid:image001.png@01D04620.57208070]

Jeremy Adams
SOFTWARE
T

+1.866.881.2171

asirobots.comhttp://www.asirobots.com/

On Nov 5, 2015, at 2:02 PM, Nick Hawes <notifications@github.commailto:notifications@github.com> wrote:

@jeremy-a-asihttps://github.com/jeremy-a-asi @vonovakhttps://github.com/vonovak it would be great if you could test the code at #156#156 to see if this fixes your problem.


Reply to this email directly or view it on GitHubhttps://github.com//issues/123#issuecomment-154190095.

This message contains confidential information and is intended only for the recipient. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately if you have received this e-mail by mistake and delete this e-mail from your system. Finally, the recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.

@hawesie
Copy link
Member

hawesie commented Nov 6, 2015 via email

@jeremy-a
Copy link

jeremy-a commented Nov 6, 2015

That's what I thought. I tried it with my setup and am still having the same problems with images. I'm using sensor_msgs/CompressedImage message in a topic.

  1. start the database "roslaunch mongodb_store mongodb_store.launch db_path:=/opt/ros/mongodb_store3 db_port:=62345"
  2. play an existing bag file to publish the topics
  3. start mongodb_log "rosrun mongodb_log mongodb_log.py -a" and let it run for 30 seconds or so
  4. stop the bag playback and the mongodb_log recording.
  5. play from the database "rosrun mongodb_store mongodb_play.py"

After step 5 I don't see topics published containing the sensor_msgs/CompressedImage. I also see the exceptions from #123.

hawesie added a commit that referenced this issue Feb 24, 2016
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