New in Diamondback
bond_core: bond | bondcpp | bondpy | smclib
Package Summary
C++ implementation of bond, a mechanism for checking when another process has terminated.
- Author: Stuart Glaser
- License: BSD
- Repository: wg-kforge
- Source: hg https://kforge.ros.org/common/bondcore
Contents
Overview
bondcpp is an implementation of bond in C++. To use bondcpp, please see the example below as well as the API documentation.
Example usage
Process A:
1 #include <bondcpp/bond.h>
2
3 std::string id = generateUniqueId();
4 // Sends id to B using a service or action
5 bond::Bond bond("example_bond_topic", id);
6 bond.start();
7 if (!bond.waitUntilFormed(ros::Duration(1.0)))
8 {
9 ROS_ERROR("ERROR!");
10 return false;
11 }
12 // ... do things with B ...
13 bond.waitUntilBroken();
14 printf("B has broken the bond\n");
Process B:
Report a Bug
Use trac to report bugs or request features. [View active tickets]






