Homework 1
Zahteve zaključka
Odprto: torek, 21. februar 2023, 00.00
Rok za oddajo: petek, 8. marec 2024, 21.00
- 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.