/pal_led_manager/do_effect#

Caution

This documentation page has been auto-generated.

It may be missing some details.

/pal_led_manager/do_effect Quick Facts

Category

Robot hardware

Message type

pal_device_msgs/DoTimedLedEffect

Controls the various LEDs or PAL’s robots. You can select the desired set of LEDs, a colour effect, duration and priority, as well as provide effect-specific parameters (like the desired color).

See LEDs API for details.

Quick snippets#

Send a goal from the command-line#
$ rostopic pub /pal_led_manager/do_effect/goal pal_device_msgs/DoTimedLedEffectActionGoal # press Tab to complete the message prototype

How to use in your code#

Call the action from a Python script#
#!/usr/bin/env python

import rospy
import actionlib
from pal_device_msgs.msg import *


if __name__ == "__main__":

    client = actionlib.SimpleActionClient("/pal_led_manager/do_effect", pal_device_msgs.msg.DoTimedLedEffectAction)
    client.wait_for_server()

    # check https://github.com/pal-robotics/pal_msgs/tree/indigo-devel/pal_device_msgs/action/DoTimedLedEffect.action
    # for the possible goal parameters
    goal = pal_device_msgs.msg.DoTimedLedEffectGoal(param1=..., param2=...)

    client.send_goal(goal)
    client.wait_for_result()

    rospy.loginfo("Action returned: %s" % client.get_result())