~wecacuee/mrol/mrol-dev

« back to all changes in this revision

Viewing changes to mrol_mapping/visualiser/rviz.py

  • Committer: Vikas Dhiman
  • Date: 2012-05-22 15:26:38 UTC
  • Revision ID: wecacuee@gmail.com-20120522152638-j6srlkgrpdq4kdfe
Added support for userdata in terms of colored voxels. Added benchmark test and corresponding data

Show diffs side-by-side

added added

removed removed

Lines of Context:
38
38
        def newhandler(signum, frame):
39
39
            os._exit(0)
40
40
        signal.signal(signal.SIGINT, newhandler)
41
 
        Thread(target=self._publisher_thread).start()
42
 
        Thread(target=self._transform_thread).start()
 
41
        t = Thread(target=self._publisher_thread)
 
42
        t.daemon = True # die when no other non-daemon thread is around
 
43
        t.start()
 
44
        t = Thread(target=self._transform_thread)
 
45
        t.daemon = True # die when no other non-daemon thread is around
 
46
        t.start()
43
47
 
44
48
    def _transform_thread(self):
45
49
        br = tf.TransformBroadcaster()