CLEARPATH Turtlebot4 User Manual page 125

Table of Contents

Advertisement

# LED 4
lightring_msg.leds[4].red =
lightring_msg.leds[4].blue =
lightring_msg.leds[4].green =
# LED 5
lightring_msg.leds[5].red =
lightring_msg.leds[5].blue =
lightring_msg.leds[5].green =
# Lights are currently on
else:
# Disable system override. The system will take back control of the lightring.
lightring_msg.override_system =
# Publish the message
self.lightring_publisher.publish(lightring_msg)
# Toggle the lights on status
self.lights_on_ = not self.lights_on_
def main(args=None):
rclpy.init(args=args)
node = TurtleBot4FirstNode()
rclpy.spin(node)
node.destroy_node()
rclpy.shutdown()
if __name__ == '__main__':
main()
255
0
255
0
255
255
False

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the Turtlebot4 and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Turtlebot 4 lite

Table of Contents