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

Ted's profile - activity

2018-07-19 10:54:59 -0500 received badge  Good Question (source)
2015-01-24 06:42:39 -0500 received badge  Taxonomist
2012-10-18 07:42:52 -0500 received badge  Popular Question (source)
2012-10-18 07:42:52 -0500 received badge  Notable Question (source)
2012-10-18 07:42:52 -0500 received badge  Famous Question (source)
2012-05-24 06:47:25 -0500 received badge  Supporter (source)
2012-05-24 05:52:19 -0500 received badge  Nice Question (source)
2012-05-24 04:58:10 -0500 received badge  Student (source)
2012-05-24 00:42:38 -0500 asked a question Nodelets and intraprocess communication

Hi there! ;)

I'm working on a communication between two Nodelets by making use of the intraprocess communication with shared pointers as mentioned here.

I got three questions and hope you can help:

  1. Is it possible to use the shared pointer kind communication with services/requests, too? How?

  2. If you send out a message as shared pointer you must take care of that the sender doesn't write to this message again after sending it out. If there are a lot of subscribers, who is responsible for freeing the used memory if the message isn't used any longer AND how can the sender check if this is the case?

  3. Regarding to this the Nodelets don't have to care about there callbacks to be called as Nodes do. It is simply neccessary to subscribe for the messages at a (MT)NodeHandle and there is NO NEED to call ros::spin_once() or ros::spin() in an self created thread. Is that correct?