# Set of geometry_msgs::Point

I'm implementing a node where I need to return `geometry_msgs::Point[]`

containing points from some data; however, some points that I add will have the same x, y, z coordinates. I thought implementing a `std::vector<geometry_msgs::Point>`

, adding all the points to the set and then casting back to `geometry_msgs::Point[]`

would be a good idea.

But I can't find anything on the forums regarding a set of `geometry_msgs::Point`

. I'd appreciate any advice on how I can implement a set, or a better way to ensure that duplicate points are not added to the vector.