Resource-aware control in a hyperconnected world with applications to cooperative driving