<> <> == Overview == bondcpp is an implementation of [[bond]] in C++. To use bondcpp, please see the example below as well as the [[http://www.ros.org/doc/api/bondcpp/html/|API documentation]]. == Example usage == '''Process A:''' {{{#!cplusplus #include std::string id = generateUniqueId(); // Sends id to B using a service or action bond::Bond bond("example_bond_topic", id); bond.start(); if (!bond.waitUntilFormed(ros::Duration(1.0))) { ROS_ERROR("ERROR!"); return false; } // ... do things with B ... bond.waitUntilBroken(ros::Duration(-1.0)); printf("B has broken the bond\n"); }}} '''Process B:''' {{{#!cplusplus #include // Receives id from A using a service or action bond::Bond bond("example_bond_topic", id); bond.start(); // ... do things ... bond.breakBond(); }}} == Report a Bug == <> ## AUTOGENERATED DON'T DELETE ## CategoryPackage