Ros2 subscriber
Create a subscriber
- init
- inherit from Node and name itself
- define message in subscription: data type, topic name, listener_callback function, queue size
- data type and topic name should be the same as the publisher you want to subscribe
- listener_callback function doesn't need any timer, its callback get called as soon as it receives a message
- listener_callback
- simply print an info message to the console
- main
- almost same as publisher, replacing the creation and spining of the publisher with the subscriber