[Documentation] [TitleIndex] [WordIndex

  Show EOL distros: 

wu_ros_tools: easy_markers | generic_dashboard | manifest_cleaner | rosbaglive | roswiki_node | rxgraphplus

Package Summary

A library to assist in publishing markers easily in Python

wu_ros_tools: catkinize_this | easy_markers | joy_listener | kalman_filter | manifest_cleaner | rosbaglive | roswiki_node

Package Summary

Python library to assist in publishing markers easily

wu_ros_tools: catkinize_this | easy_markers | joy_listener | kalman_filter | manifest_cleaner | rosbaglive | roswiki_node

Package Summary

Python library to assist in publishing markers easily

wu_ros_tools: catkinize_this | easy_markers | joy_listener | kalman_filter | manifest_cleaner | rosbaglive | roswiki_node

Package Summary

Python library to assist in publishing markers easily

wu_ros_tools: catkinize_this | easy_markers | joy_listener | kalman_filter | manifest_cleaner | rosbaglive | roswiki_node

Package Summary

Python library to assist in publishing markers easily

wu_ros_tools: catkinize_this | easy_markers | joy_listener | kalman_filter | manifest_cleaner | rosbaglive | roswiki_node

Package Summary

Python library to assist in publishing markers easily

wu_ros_tools: easy_markers | joy_listener | kalman_filter | rosbaglive

Package Summary

Python library to assist in publishing markers easily

wu_ros_tools: easy_markers | joy_listener | kalman_filter | rosbaglive

Package Summary

Python library to assist in publishing markers easily

Standard Markers Usage

   1 #!/usr/bin/python
   2 
   3 import roslib; roslib.load_manifest('easy_markers')
   4 import rospy
   5 from easy_markers.generator import *
   6 
   7 if __name__=='__main__':
   8     rospy.init_node('some_markers')
   9     pub = rospy.Publisher('/visualization_marker', Marker)
  10     gen = MarkerGenerator()
  11     gen.ns = '/awesome_markers'
  12     gen.type = Marker.SPHERE_LIST
  13     gen.scale = [.3]*3
  14     gen.frame_id = '/base_link'
  15    
  16     while not rospy.is_shutdown():
  17         gen.counter = 0
  18         t = rospy.get_time()
  19 
  20         gen.color = [1,0,0,1]
  21         m = gen.marker(points= [(0, i, (i+t)%5.0) for i in range(10)])
  22         pub.publish(m)
  23         gen.color = [0,1,0,1]
  24         m = gen.marker(points= [(0, i, (i-t)%5.0) for i in range(10)])
  25         pub.publish(m)
  26         rospy.sleep(.1)

screenshot

Interactive Usage

   1 #!/usr/bin/python
   2 
   3 import roslib; roslib.load_manifest('easy_markers')
   4 import rospy
   5 from easy_markers.interactive import InteractiveGenerator
   6 
   7 def callback(feedback):
   8     print feedback
   9 
  10 if __name__=='__main__':
  11     rospy.init_node('itest')
  12 
  13     ig = InteractiveGenerator()
  14     ig.makeMarker(controls=["move_x", "rotate_x"])
  15     ig.makeMarker(controls=["move_y", "rotate_y"], pose=[1,0,0], description="X")
  16     rospy.spin()

screenshot


2024-11-16 14:35