interface_tf.py
Go to the documentation of this file.
1 #!/usr/bin/env python
2 
3 import rospy
4 
5 from frame_editor.constructors_geometry import ToTransformStamped
6 from frame_editor.interface import Interface
7 from frame_editor.objects import Frame
8 
9 
11 
12  def __init__(self, frame_editor):
13  self.editor = frame_editor
14  self.editor.observers.append(self)
15 
16  def broadcast(self, editor):
17  #print "> Broadcasting"
18  now = rospy.Time.now()
19  transforms = [
21  f.position, f.orientation, now, f.name, f.parent)
22  for f in editor.frames.values()]
23  Frame.tf_broadcaster.sendTransform(transforms)
24 
25 # eof
def ToTransformStamped(translation, rotation, stamp, child, parent)


frame_editor
Author(s): ipa-lth , ipa-frn
autogenerated on Wed Apr 10 2019 02:47:55