Two ros nodes generate and publish square waves and triangle waves. Another ros node can subscribe to a topic and calculate the average over n number of recieved samples. Average of square and triangle functions are calculated using two instances of the averager node using a launch file.