This question deals with ROS2.
In ROS1 when you had a publisher you usually put a while loop to execute the node publishing periodically. Instead in ROS2 you can use create_wall_timer
to create a timer so as to call a callback function that publish your messages periodically.
My question is (to anyone with experience in ROS2) can I create this timer and use it for other tasks unrelated to publishing? In other words using like a normal timer? I need to do somethings periodically and I was going to implement a timer, but since this is already built in the ROS2 system, I would like to use it to do the processing I want. Is this possible or advisable?
Also, can I use or create more than one of these wall timers?