def off(self): """ Set the lights of the robot OFF :return: no return """ rgb_msg = RGBLightCommand(show_color=False) self._topic.publish(rgb_msg)
def on(self): """ Set the lights of the robot ON :return: no return """ rgb_msg = RGBLightCommand(show_color=True) self._topic.publish(rgb_msg)
def set_color_colorRGBA(self, rgba): """ Set the color of the robot by a std_msgs.msg.ColorRGBA :param rgba: std_msgs.msg.ColorRGBA :return: no return """ rgb_msg = RGBLightCommand(color=rgba) rgb_msg.show_color.data = True self._topic.publish(rgb_msg)
def off(self): rgb_msg = RGBLightCommand(show_color=False) self._topic.publish(rgb_msg)
def on(self): rgb_msg = RGBLightCommand(show_color=True) self._topic.publish(rgb_msg)
def set_color(self, r, g, b, a=1.0): rgb_msg = RGBLightCommand(color=ColorRGBA(r, g, b, a)) rgb_msg.show_color.data = True self._topic.publish(rgb_msg)
def reset(self): rgb_msg = RGBLightCommand(color=ColorRGBA(0.0, 0.0, 1.0, 1.0)) rgb_msg.show_color.data = True self._topic.publish(rgb_msg)