array/list as command line argument in roslaunch file
I am drawing some points inside rviz. I want to pass these points as command line argument to roslaunch file. In other word, I looking for a way to enter command like below-
roslaunch render_points renderer.launch points:=[x1, y1, z1], [x2, y2, z2], [x3, y3, z3], [x4, y4, z4]
After this command, I should be able to get these points back inside python in similar way such as
points = rospy.get_param("~points", None)
# where points[0] is [x1, y1, z1] and points[1] is [x2, y2, z2] and so on..
I am not sure, whether it is possible or not. If not, please suggest some workaround to do the same.