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:
Is it possible to use the shared pointer kind communication with services/requests, too? How?
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?
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?
Originally posted by Ted on ROS Answers with karma: 41 on 2012-05-24
Post score: 4