Main Page
Namespaces
Classes
Files
File List
src
frame_editor
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
10
class
FrameEditor_TF
(
Interface
):
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 = [
20
ToTransformStamped
(
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
frame_editor.interface
Definition:
interface.py:1
frame_editor.interface.Interface
Definition:
interface.py:5
frame_editor.interface_tf.FrameEditor_TF.editor
editor
Definition:
interface_tf.py:13
frame_editor.objects
Definition:
objects.py:1
frame_editor.interface_tf.FrameEditor_TF.__init__
def __init__(self, frame_editor)
Definition:
interface_tf.py:12
frame_editor.interface_tf.FrameEditor_TF.broadcast
def broadcast(self, editor)
Definition:
interface_tf.py:16
frame_editor.constructors_geometry
Definition:
constructors_geometry.py:1
frame_editor.constructors_geometry.ToTransformStamped
def ToTransformStamped(translation, rotation, stamp, child, parent)
Definition:
constructors_geometry.py:62
frame_editor.interface_tf.FrameEditor_TF
Definition:
interface_tf.py:10
frame_editor
Author(s): ipa-lth
, ipa-frn
autogenerated on Wed Oct 21 2020 03:36:00