ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

how to use share_ptr for self-define ros message

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

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 -0500

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 -0500 )edit

thx for @Javier, his comments is correct.

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

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

gvdhoorn gravatar image gvdhoorn  ( 2016-03-07 01:48:04 -0500 )edit

Question Tools

1 follower


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

Seen: 132 times

Last updated: Mar 06 '16