Could you perhaps use `ros::NodeHandle::getParam<std::vector<T>>` (see [Parameter Server#Retrieving_Lists](http://wiki.ros.org/roscpp/Overview/Parameter%20Server#Retrieving_Lists))? Would remove the need for the `for` loop.