[Rock-dev] adding boost::shared_pointer and boost::weak_pointer to rtt/rock?

Matthias Goldhoorn matthias.goldhoorn at dfki.de
Mon Sep 9 13:03:34 CEST 2013


"Moin moin",

What would be needed to add some of the boost shared_pointer structures 
to rock/rtt?
special boost::shared_pointer and boost::weak_pointer?

How is the transport of the smart_ptr currently handled?, what happen if 
the same object is send twice trough an RTT port over the boarders of a 
application (or machine) (e.G. CORB//mqueues)?. Is there a tracking of 
object identification/id? or will be the object simply represented twice 
on the receiving machine?

e.G.

smart_ptr<foo> p1;
smart_ptr<foo> p2;
smart_ptr<foo> p3;

data_structure ds;
ds.foo = p1;
ds.foo.bla = p2;

_port.send(ds);
ds.foo.bla = p3;
_port.send(ds);

Will there then on the receiver side 2 instances of the under laying 
object of p1 or only one?

Matthias


-- 
  Dipl.-Inf. Matthias Goldhoorn
  Space and Underwater Robotic

  Universität Bremen
  FB 3 - Mathematik und Informatik
  AG Robotik
  Robert-Hooke-Straße 5
  28359 Bremen, Germany

  Tel.:     +49 421 178 45-4193
  Zentrale: +49 421 178 45-6550
  Fax:      +49 421 178 45-4150
  E-Mail:   matthias.goldhoorn at uni-bremen.de

  Weitere Informationen: http://www.informatik.uni-bremen.de/robotik



More information about the Rock-dev mailing list