Ask Your Question
2

Add markers to markerarray in c++

asked 2012-05-30 00:14:02 -0500

Fredje gravatar image

Hi all, I am trying to add markers to a markerarray but i am unable to find the line of code that has to be used for this. Ot is probably pretty simple but I am inexperienced with c++ and ros.

Thank you in advance

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
6

answered 2012-05-30 01:18:09 -0500

dornhege gravatar image

MarkerArray ma; ma.markers.push_back(mark)

edit flag offensive delete link more

Comments

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);

gnykumar@gmail.com gravatar image gnykumar@gmail.com  ( 2020-04-22 02:12:05 -0500 )edit
1

answered 2012-05-30 21:30:49 -0500

Fredje gravatar image

Thank you very much, that works.

edit flag offensive delete link more

Comments

This is not where you comment actually.

kk2105 gravatar image kk2105  ( 2020-09-06 05:55:32 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2012-05-30 00:14:02 -0500

Seen: 5,560 times

Last updated: May 30 '12