Homework 1
Completion requirements
Opened: Tuesday, 21 February 2023, 12:00 AM
Due: Friday, 8 March 2024, 9:00 PM
- Create a new package. You can use C++ or Python.
- In the package create a publisher node that periodically sends a custom message. The custom message should have a string field, an integer field, and a bool field.
- Create a subscriber that receives the message and prints out its contents.
- In the new package you created, write a service node that accepts an array of integers and returns its sum.
- Demonstrate its correctness by writing a client that generates random sequences of 10 integers and prints out the sequence and the result returned from the service.