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

ibd's profile - activity

2018-07-13 03:23:11 -0500 received badge  Famous Question (source)
2018-07-13 03:23:11 -0500 received badge  Notable Question (source)
2018-03-10 00:38:53 -0500 received badge  Famous Question (source)
2018-03-10 00:38:53 -0500 received badge  Notable Question (source)
2018-03-10 00:38:53 -0500 received badge  Popular Question (source)
2017-06-18 21:23:14 -0500 received badge  Popular Question (source)
2017-06-17 08:23:19 -0500 received badge  Famous Question (source)
2017-05-24 10:26:53 -0500 marked best answer Bug? Rosbag filter and /tf_static

Hi all

I am using a .bag file with RTAB-map ROS. It uses some static transforms between different camera frames to do the mapping.

Edit: An example bag file that shows the buggy behavior can be downloaded here: https://www.dropbox.com/s/6ox0xq6ctg2...

The launch file to launch RTAB-Map can be found here: https://pastebin.com/ZhXb5r5U

When I feed "data.bag" into RTAB-map, it works fine. Now, I create a dummy filtered rosbag, using:

rosbag filter data.bag data_filtered.bag "topic != '/thistopicdoesntexist'"

As this topic doesn't exist, it should create an identical .bag file. However, when I try to feed "data_filtered.bag" into RTAB-map, I get many errors like:

[ WARN] [1494031985.023853640, 1493939596.985478852]: Could not get transform from camera_depth to camera_color after 0.100000 seconds (for stamp=1493939594.615704)! Error=". canTransform returned after 0.10093 timeout was 0.1.".
  1. It seems that the filtered bag somehow is missing data from the static TF transforms. When I "rostopic echo -b data_filtered.bag", however, it shows that the static transforms are there.
  2. It seems that the dummy filtering actually alters the .bag. Both MD5 hash and file size are changed between "data.bag" and "data_filtered.bag"! No compression is used. Why is that?

Maybe the problem is related to the time stamp? In any case, I am using use_sim_time=true, and I am also using --clock when playing back the .bag files.

Any help would be appreciated.

Cheers,

  • ibd
2017-05-09 13:14:20 -0500 commented answer Bug? Rosbag filter and /tf_static

I just did some tests, and it seems that the tango tablet clock will drift as much as 1 second in 30 minutes when not co

2017-05-09 13:13:54 -0500 commented answer Bug? Rosbag filter and /tf_static

I just did some tests, and it seems that the tango tablet clock will drift as much as 1 second in 30 minutes!

2017-05-09 12:53:38 -0500 commented answer Bug? Rosbag filter and /tf_static

Thank you for the workaround. At least these transforms are constant across all rosbags. I try to synchronize the time b

2017-05-09 00:36:28 -0500 received badge  Notable Question (source)
2017-05-08 16:13:32 -0500 received badge  Popular Question (source)
2017-05-08 15:18:16 -0500 commented question Bug? Rosbag filter and /tf_static

ahendrix, it seems related indeed. Is there a clean fix for the .bag files I already have? Maybe changing the timestamp

2017-05-08 15:03:03 -0500 commented question Bug? Rosbag filter and /tf_static

Updated the original post with a bag file and the launch file I use to launch RTAB-map.

2017-05-08 15:02:14 -0500 edited question Bug? Rosbag filter and /tf_static

Bug? Rosbag filter and /tf_static Hi all I am using a .bag file with RTAB-map ROS. It uses some static transforms betwe

2017-05-08 15:02:14 -0500 received badge  Editor (source)
2017-05-08 14:36:09 -0500 commented answer ROS TF claims tree disconnected, but clearly connected

I see, thank you for suggestions on how to solve it. Is there a reason that these restrictions are in place?

2017-05-08 14:34:23 -0500 marked best answer ROS TF claims tree disconnected, but clearly connected

Hi all

I am playing back some rosbag file. In RVIZ, I see the error message "No transform from [area_description] to frame [start_of_service]". TF view_frames agrees and shows the following: ROS TF tree

However, when I export the rosbag file, /tf topic only, to .csv format, I can clearly see that there are 3 kinds of transformations in the rosbag file: 1. map -> start_of_service 2. start_of_service -> device 3. area_description -> start_of_service Whereas the left side is the value in "field.transforms0.header.frame_id", and the right side is the value in "field.transforms0.child_frame_id" in the resulting .csv file.

Now, the resulting graph is acyclic. If we choose start_of_service as root, this is clearly a valid tree. The question remains: Is ROS able to invert the transformations so to form a valid TF tree?

Apologies if this has been asked before. I was unable to find an answer on google or here.

Cheers! - ibd

2017-05-08 14:34:23 -0500 received badge  Scholar (source)
2017-05-05 20:12:51 -0500 asked a question Bug? Rosbag filter and /tf_static

Bug? Rosbag filter and /tf_static Hi all I am using a .bag file with RTAB-map ROS. It uses some static transforms betwe

2017-05-05 19:45:58 -0500 edited question ROS TF claims tree disconnected, but clearly connected

ROS TF claims tree disconnected, but clearly connected Hi all I am playing back some rosbag file. In RVIZ, I see the er

2017-05-05 19:45:01 -0500 asked a question ROS TF claims tree disconnected, but clearly connected

ROS TF claims tree disconnected, but clearly connected Hi all I am playing back some rosbag file. In RVIZ, I see the er

2017-02-21 00:10:38 -0500 received badge  Famous Question (source)
2017-01-30 17:27:58 -0500 commented question cannot launch kobuki_dashboard on kinetic

I did indeed install everything using apt-get. Posted my questions there.

2017-01-30 17:23:57 -0500 received badge  Notable Question (source)
2017-01-28 18:51:26 -0500 answered a question cannot launch kobuki_dashboard on kinetic

If I "fix" the file in question, "dashboard.py", by changing line 8 to:

from PyQt4.QtGui import QMessageBox, QAction

Then python will segfault. Here's a backtrace from gdb:

    #0  0x00007fff9645e5a4 in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#1  0x00007ffff7de74ea in call_init (l=<optimized out>, argc=argc@entry=4, 
    argv=argv@entry=0x7fffffffd858, env=env@entry=0xeb2920) at dl-init.c:72
#2  0x00007ffff7de75fb in call_init (env=0xeb2920, argv=0x7fffffffd858, 
    argc=4, l=<optimized out>) at dl-init.c:30
#3  _dl_init (main_map=main_map@entry=0x2deef60, argc=4, argv=0x7fffffffd858, 
    env=0xeb2920) at dl-init.c:120
#4  0x00007ffff7dec712 in dl_open_worker (a=a@entry=0x7fffffffb310)
    at dl-open.c:575
#5  0x00007ffff7de7394 in _dl_catch_error (
    objname=objname@entry=0x7fffffffb300, 
    errstring=errstring@entry=0x7fffffffb308, 
    mallocedp=mallocedp@entry=0x7fffffffb2ff, 
    operate=operate@entry=0x7ffff7dec300 <dl_open_worker>, 
    args=args@entry=0x7fffffffb310) at dl-error.c:187
#6  0x00007ffff7debbd9 in _dl_open (
    file=0x2b49180 "/usr/lib/python2.7/dist-packages/PyQt4/QtGui.so", 
    mode=-2147483646, caller_dlopen=0x5231c3 <_PyImport_GetDynLoadFunc+243>, 
    nsid=-2, argc=<optimized out>, argv=<optimized out>, env=0xeb2920)
    at dl-open.c:660
#7  0x00007ffff75edf09 in dlopen_doit (a=a@entry=0x7fffffffb540) at dlopen.c:66
#8  0x00007ffff7de7394 in _dl_catch_error (objname=0xa6c770, 
    errstring=0xa6c778, mallocedp=0xa6c768, 
    operate=0x7ffff75edeb0 <dlopen_doit>, args=0x7fffffffb540)
    at dl-error.c:187
#9  0x00007ffff75ee571 in _dlerror_run (
    operate=operate@entry=0x7ffff75edeb0 <dlopen_doit>, 
    args=args@entry=0x7fffffffb540) at dlerror.c:163
#10 0x00007ffff75edfa1 in __dlopen (file=<optimized out>, mode=<optimized out>)
    at dlopen.c:87
#11 0x00000000005231c3 in _PyImport_GetDynLoadFunc ()
#12 0x0000000000522d6f in _PyImport_LoadDynamicModule ()
#13 0x00000000004afbad in ?? ()
#14 0x00000000004af34d in PyImport_ImportModuleLevel ()
#15 0x00000000004b0f78 in ?? ()
#16 0x00000000004b0cb3 in PyObject_Call ()
#17 0x00000000004ce5d0 in PyEval_CallObjectWithKeywords ()
#18 0x00000000004c6ed6 in PyEval_EvalFrameEx ()
#19 0x00000000004c2765 in PyEval_EvalCodeEx ()
#20 0x00000000004c2509 in PyEval_EvalCode ()
#21 0x00000000004c061b in PyImport_ExecCodeModuleEx ()
#22 0x00000000004bd6ee in ?? ()
#23 0x00000000004afbad in ?? ()
#24 0x00000000004af34d in PyImport_ImportModuleLevel ()
#25 0x00000000004b0f78 in ?? ()
#26 0x00000000004cada2 in PyEval_EvalFrameEx ()
#27 0x00000000004c9d8f in PyEval_EvalFrameEx ()
#28 0x00000000004c9d8f in PyEval_EvalFrameEx ()
---Type <return> to continue, or q <return> to quit---
#29 0x00000000004c9d8f in PyEval_EvalFrameEx ()
#30 0x00000000004c9d8f in PyEval_EvalFrameEx ()
#31 0x00000000004c9d8f in PyEval_EvalFrameEx ()
#32 0x00000000004c9d8f in PyEval_EvalFrameEx ()
#33 0x00000000004c2765 in PyEval_EvalCodeEx ()
#34 0x00000000004ca099 in PyEval_EvalFrameEx ()
#35 0x00000000004c2765 in PyEval_EvalCodeEx ()
#36 0x00000000004ca099 in PyEval_EvalFrameEx ()
#37 0x00000000004c2765 in PyEval_EvalCodeEx ()
#38 0x00000000004ca099 in PyEval_EvalFrameEx ()
#39 0x00000000004c2765 in PyEval_EvalCodeEx ()
#40 0x00000000004ca099 in PyEval_EvalFrameEx ()
#41 0x00000000004c2765 in PyEval_EvalCodeEx ()
#42 0x00000000004ca099 in PyEval_EvalFrameEx ()
#43 0x00000000004c2765 in PyEval_EvalCodeEx ()
#44 0x00000000004ca099 in PyEval_EvalFrameEx ()
#45 0x00000000004c2765 in PyEval_EvalCodeEx ()
#46 0x00000000004c2509 in PyEval_EvalCode ()
#47 0x00000000004f1def in ?? ()
#48 0x00000000004ec652 in PyRun_FileExFlags ()
#49 0x00000000004eae31 in PyRun_SimpleFileExFlags ()
#50 0x000000000049e14a in Py_Main ()
#51 0x00007ffff7811830 in __libc_start_main (main=0x49dab0 <main>, argc=4, 
    argv=0x7fffffffd858, init=<optimized out>, fini=<optimized out>, 
    rtld_fini=<optimized out>, stack_end=0x7fffffffd848)
    at ../csu/libc-start.c:291
#52 0x000000000049d9d9 in _start ()

Any ideas? I concluded that it must be PyQt4.QtGui, and not PyQt5.QtGui, because the latter doesn't contain QMessageBox.

2017-01-28 18:49:00 -0500 received badge  Enthusiast
2017-01-27 11:14:24 -0500 received badge  Popular Question (source)
2017-01-24 00:02:34 -0500 asked a question cannot launch kobuki_dashboard on kinetic

Hi, I'm trying to setup a turtlebot on ubuntu 16, ROS kinetic.

Installation went well so far. My laptop and the turtlebot netbook can ping each other. I can roslaunch on the turtlebot fine.

I am following the tutorial at: http://wiki.ros.org/turtlebot_bringup...

When I try the command rqt -s kobuki_dashboard, I get the following error:

RosPluginProvider.load(kobuki_dashboard/KobukiDashboard) exception raised in __builtin__.__import__(kobuki_dashboard.dashboard, [KobukiDashboard]):
Traceback (most recent call last):
  File "/opt/ros/kinetic/lib/python2.7/dist-packages/rqt_gui/ros_plugin_provider.py", line 77, in load
    module = __builtin__.__import__(attributes['module_name'], fromlist=[attributes['class_from_class_type']], level=0)
  File "/opt/ros/kinetic/lib/python2.7/dist-packages/kobuki_dashboard/dashboard.py", line 8, in <module>
    from QtGui import QMessageBox, QAction
ImportError: cannot import name QMessageBox

PluginManager._load_plugin() could not load plugin "kobuki_dashboard/KobukiDashboard":
Traceback (most recent call last):
  File "/opt/ros/kinetic/lib/python2.7/dist-packages/qt_gui/plugin_handler.py", line 99, in load
    self._load()
  File "/opt/ros/kinetic/lib/python2.7/dist-packages/qt_gui/plugin_handler_direct.py", line 54, in _load
    self._plugin = self._plugin_provider.load(self._instance_id.plugin_id, self._context)
  File "/opt/ros/kinetic/lib/python2.7/dist-packages/qt_gui/composite_plugin_provider.py", line 71, in load
    instance = plugin_provider.load(plugin_id, plugin_context)
  File "/opt/ros/kinetic/lib/python2.7/dist-packages/qt_gui/composite_plugin_provider.py", line 71, in load
    instance = plugin_provider.load(plugin_id, plugin_context)
  File "/opt/ros/kinetic/lib/python2.7/dist-packages/rqt_gui_py/ros_py_plugin_provider.py", line 60, in load
    return super(RosPyPluginProvider, self).load(plugin_id, plugin_context)
  File "/opt/ros/kinetic/lib/python2.7/dist-packages/qt_gui/composite_plugin_provider.py", line 71, in load
    instance = plugin_provider.load(plugin_id, plugin_context)
  File "/opt/ros/kinetic/lib/python2.7/dist-packages/rqt_gui/ros_plugin_provider.py", line 83, in load
    raise e
ImportError: cannot import name QMessageBox

Same when I try to launch the dashboard via rosrun kobuki_dashboard kobuki_dashboard.

It seems to be related to QT. Any ideas how to fix?

Cheers Isaac


Edit: If I "fix" the file in question, "dashboard.py", by changing line 8 to:

from PyQt4.QtGui import QMessageBox, QAction

Then python will segfault. Here's a backtrace from gdb:

    #0  0x00007fff9645e5a4 in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#1  0x00007ffff7de74ea in call_init (l=<optimized out>, argc=argc@entry=4, 
    argv=argv@entry=0x7fffffffd858, env=env@entry=0xeb2920) at dl-init.c:72
#2  0x00007ffff7de75fb in call_init (env=0xeb2920, argv=0x7fffffffd858, 
    argc=4, l=<optimized out>) at dl-init.c:30
#3  _dl_init (main_map=main_map@entry=0x2deef60, argc=4, argv=0x7fffffffd858, 
    env=0xeb2920) at dl-init.c:120
#4  0x00007ffff7dec712 in dl_open_worker (a=a@entry=0x7fffffffb310)
    at dl-open.c:575
#5  0x00007ffff7de7394 in _dl_catch_error (
    objname=objname@entry=0x7fffffffb300, 
    errstring=errstring@entry=0x7fffffffb308, 
    mallocedp=mallocedp@entry=0x7fffffffb2ff, 
    operate=operate@entry=0x7ffff7dec300 <dl_open_worker>, 
    args=args@entry=0x7fffffffb310) at dl-error.c:187
#6  0x00007ffff7debbd9 in _dl_open (
    file=0x2b49180 "/usr/lib/python2.7/dist-packages/PyQt4/QtGui.so", 
    mode=-2147483646, caller_dlopen=0x5231c3 <_PyImport_GetDynLoadFunc+243>, 
    nsid=-2, argc=<optimized out>, argv=<optimized out>, env=0xeb2920)
    at dl-open.c:660
#7  0x00007ffff75edf09 in dlopen_doit (a=a@entry=0x7fffffffb540) at dlopen.c:66
#8  0x00007ffff7de7394 in _dl_catch_error (objname ...
(more)