8 from visualization_msgs.msg
import Marker
15 self.editor.observers.append(self)
17 self.
publisher = rospy.Publisher(
"frame_editor_marker", Marker, queue_size=10, latch=
False)
22 def update(self, editor, level, elements):
26 for element
in elements:
35 element.update_marker()
37 marker = copy.deepcopy(element.marker)
39 marker.header.frame_id = element.name
40 marker.header.stamp = rospy.Time()
41 marker.ns =
"frame_editor_markers" 42 marker.frame_locked =
True 45 marker.action = Marker.DELETE
47 marker.action = Marker.ADD
49 if element.style ==
"mesh":
50 if element.path ==
"" or element.path
is None:
51 marker.action = Marker.DELETE
53 self.publisher.publish(marker)
61 self.
update(editor, 0, editor.frames.values())
def broadcast(self, editor)
def update(self, editor, level, elements)
last_publish_time
Publish with own rate.
def update(self, editor, level, elements)
def __init__(self, frame_editor)
def publish_marker(self, element)