ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A
Ask Your Question

how to use share_ptr for self-define ros message

asked 2016-02-22 01:18:01 -0600

crazymumu gravatar image

Hi, I want to define a share_ptr for a self-defined ros message in one node for zero copy process. Any suggestions will be appreciated. Thanks.

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted

answered 2016-02-22 04:03:22 -0600

I do not get your question. What is your problem exactly? Why you are not able to achieve it? shared pointer definitions are automatically created for every message type, even custom ones.

edit flag offensive delete link more


thanks for your help. could you give me some link about shared pointer definitions which as you said will be created automatically. i couldn't find, appreciated.

crazymumu gravatar image crazymumu  ( 2016-02-22 19:03:30 -0600 )edit

thx for @Javier, his comments is correct.

crazymumu gravatar image crazymumu  ( 2016-03-06 20:15:30 -0600 )edit

@crazymumu: please accept the answer by @Javier V. Gómez.

gvdhoorn gravatar image gvdhoorn  ( 2016-03-07 01:48:04 -0600 )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

1 follower


Asked: 2016-02-22 01:18:01 -0600

Seen: 114 times

Last updated: Mar 06 '16