ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
2

Data logging with rosbag in rosjava

asked 2011-11-17 06:54:20 -0600

Tuan gravatar image

Hi,

I am currrently using rosjava to create an control interface on my tablet to control a robot. Everything works fine except that rosbag does not record information from the nodes created by rosjava.

May I know if this logging feature has been supported for rosjava? If yes then how to enable it? Thank you very much.

edit retag flag offensive close merge delete

Comments

What information isn't being recorded exactly? Are you using the latest rosjava from source or the released binary version?
damonkohler gravatar image damonkohler  ( 2011-11-18 23:39:06 -0600 )edit
I am sending command velocity to drive the robot from a Motorola Xoom tablet. The command velocity sent from the tablet was not recorded properly while that sent from the robot machine itself could be seen in the bag file. I am using the rosjava version from source as of July 2011.
Tuan gravatar image Tuan  ( 2011-11-22 09:44:38 -0600 )edit
Are you setting the host correctly in the NodeConfiguration? Can you provide some sample code?
damonkohler gravatar image damonkohler  ( 2011-11-22 21:29:55 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
3

answered 2011-11-18 23:38:50 -0600

damonkohler gravatar image

updated 2011-11-22 21:31:23 -0600

It's possible that this is due to the way that rosbag subscribes (i.e. using wildcards). Support for that was added more recently. You may need to update to the latest rosjava.

edit flag offensive delete link more

Comments

I can confirm that prior to the latest update (Rosjava Android from late October), rosbag record was broken. I updated to the latest version (~Nov 17), and this is now fixed. If you have this problem, be sure you're running the latest rosjava from source.
Chad Rockey gravatar image Chad Rockey  ( 2011-11-25 12:20:07 -0600 )edit
Oops, just noticed that it looks like rosjava isn't providing the right connection information. The provided message definition seems to be always empty "". This results in an md5 of d41d8cd98f00b204e9800998ecf8427e.
Chad Rockey gravatar image Chad Rockey  ( 2011-11-25 16:10:12 -0600 )edit
Added bug ticket for rosjava, pending confirmation: http://code.google.com/p/rosjava/issues/detail?id=71
Chad Rockey gravatar image Chad Rockey  ( 2011-11-25 16:20:53 -0600 )edit

Hi, which version of rosjava_android, rosjava_core and appmanadroid are you using? we are using appamnandroid: hg update 7adc52c0e5f0, rosjava_android: hg update 6cf45d11853f rosjava_core: hg update ca6ecfeba48b as described in http://www.ros.org/wiki/ApplicationsPlatform/Clients/Android

Kei Okada gravatar image Kei Okada  ( 2012-05-31 04:50:52 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2011-11-17 06:54:20 -0600

Seen: 754 times

Last updated: Nov 22 '11