Beispiel #1
0
 def off(self):
     """
     Set the lights of the robot OFF
     :return: no return
     """
     rgb_msg = RGBLightCommand(show_color=False)
     self._topic.publish(rgb_msg)
Beispiel #2
0
 def on(self):
     """
     Set the lights of the robot ON
     :return: no return
     """
     rgb_msg = RGBLightCommand(show_color=True)
     self._topic.publish(rgb_msg)
Beispiel #3
0
 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)
Beispiel #4
0
 def off(self):
     rgb_msg = RGBLightCommand(show_color=False)
     self._topic.publish(rgb_msg)
Beispiel #5
0
 def on(self):
     rgb_msg = RGBLightCommand(show_color=True)
     self._topic.publish(rgb_msg)
Beispiel #6
0
 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)
Beispiel #7
0
 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)