/audio/status_led#

Caution

This documentation page has been auto-generated.

It may be missing some details.

/audio/status_led Quick Facts

Category

Robot hardware

Message type

std_msgs/ColorRGBA

Direction

🖐️ this topic is protected: you should not have to write/read from it directly!

The topic controlling the reSpeaker microphone LEDs. Do not use this topic directly. Instead, use /pal_led_manager/do_effect.

Quick snippets#

Publish data on the topic#
$ rostopic pub /audio/status_led std_msgs/ColorRGBA # press Tab twice to complete

How to use in your code#

Publish to the topic using Python#
 1import rospy
 2from std_msgs.msg import ColorRGBA
 3
 4if __name__ == "__main__":
 5    rospy.init_node("publisher")
 6
 7    pub = rospy.Publisher("/audio/status_led", ColorRGBA, queue_size=10)
 8    rate = rospy.Rate(10) # 10Hz
 9    msg = ColorRGBA()
10
11    while not rospy.is_shutdown():
12
13        # check http://docs.ros.org/en/api/std_msgs/html/msg/ColorRGBA.html
14        # for the msg structure
15        # msg.data = ...
16        pub.publish(msg)
17
18        rate.sleep()