ROS-PSE / arni

this is the codebase of the Advanced ROS Network Introspection.
BSD 2-Clause "Simplified" License
17 stars 9 forks source link

gui: KeyError: 'cpu_temp_core.actual_value' #4

Closed gmwe closed 10 years ago

gmwe commented 10 years ago

Test scenario:

Running test 3.

roslaunch arni_core test_3_fluctuation.launch

And rqt-gui

rqt

Opening Arni-Detail will result in an KeyError (the gui is still running though)

virtubuntu@virtubuntu ~> rqt
arguments:  Namespace(quiet=False)
unknowns:  []
chose translation /home/virtubuntu/catkin_ws/src/arni/arni_gui/translations/en_EN.qm
QObject: Cannot create children for a parent that is in a different thread.
(Parent is RootItem(0x2bc6ab0), parent's thread is QThread(0x2ac8670), current thread is QThread(0x37e1c10)
Exception in thread Thread-12:
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
    self.run()
  File "/opt/ros/indigo/lib/python2.7/dist-packages/rospy/timer.py", line 194, in run
    self._callback(TimerEvent(last_expected, last_real, current_expected, current_real, last_duration))
  File "/home/virtubuntu/catkin_ws/src/arni/arni_gui/src/arni_gui/buffer_thread.py", line 101, in __update_model
    self.__host_statistics_buffer, self.__node_statistics_buffer)
  File "/home/virtubuntu/catkin_ws/src/arni/arni_gui/src/arni_gui/ros_model.py", line 321, in update_model
    self.__transform_rated_statistics_item(item)
  File "/home/virtubuntu/catkin_ws/src/arni/arni_gui/src/arni_gui/ros_model.py", line 447, in __transform_rated_statistics_item
    current_item.update_rated_data(item)
  File "/home/virtubuntu/catkin_ws/src/arni/arni_gui/src/arni_gui/abstract_item.py", line 182, in update_rated_data
    self._rated_data[element.statistic_type + ".actual_value"].append(element.actual_value)
KeyError: 'cpu_temp_core.actual_value'

Mentions for notifications: @matt3o @Grommetox

gmwe commented 10 years ago

running

catkin_make

resolves this issue