MarkerArray ma; ma.markers.push_back(mark)
Originally posted by dornhege with karma: 31395 on 2012-05-30
This answer was ACCEPTED on the original site
Post score: 12
Original comments
Comment by [email protected] on 2020-04-22:
what is the difference in insert and push_back
MarkerArray ma;
MarkerArray mark;
ma.markers.insert(ma.makers.end(), mark.makers.begin(), mark.markers.end());
vs
ma.markers.push_back(mark);
Comment by Hazel-rah on 2023-06-08:
I usually work in python, but it might be that push_back can be in loop easier than your insert line, or that push_back is faster. Could also be neither