How to write a function in ROS2 ?
I created a new package and updated the CMakeList.txt
and Package.xml
file.
Now i need to write a simple function : output = input*time
and display it . Do i need to use service
for this or could the publisher and subscriber be extended without any need for service
?
How to use the ROS::time() API ?