Only released in EOL distros:  

Package Summary

Convenient modules to control kobuki leds

Contents

  1. Overview
  2. Usage

Overview

Python library to control kobuki LEDs.

Usage

This is example script to demonstrate usage.

   1 import kobuki_led_controller
   2 
   3 rospy.init_node('Hello')
   4 
   5 blinker = kobuki_led_controller.LedBlinker()
   6 rospy.loginfo("Blinker : blinker start")
   7 blinker.start() # Starts Led blinker thread.
   8 
   9 rospy.loginfo("Blinker : blinks red")
  10 blinker.set_on_error() # Blinks Red LED
  11 rospy.sleep(3.0)
  12 
  13 rospy.loginfo("Blinker : blinks Green")
  14 blinker.set_on_ok()    # blinks Green LED
  15 rospy.sleep(3.0)
  16 
  17 rospy.loginfo("Blinker : stop blinking")
  18 blinker.set_on_off()   # stop blinking
  19 
  20 rospy.loginfo("Blinker : blinker stops")
  21 blinker.stop()         # stops led blinkder thread.

Wiki: kobuki_led_controller (last edited 2015-07-09 08:51:28 by jihoonl)