Arrays Ros Launch File
How can I get a list of values from a ROS launch file? My launch file includes the following line:
<param name="workspace" value="[0.55, 0.9, -0.4, 0.4, -0.25, 2]" />
In C++, I try loading that array, but it does not work (the variable workspace just always gets set to the constant WORKSPACE)
std::vector<double> workspace;
node.param("workspace", workspace, std::vector<double>(WORKSPACE, WORKSPACE + sizeof(WORKSPACE) / sizeof(WORKSPACE[0])));