Show EOL distros:
bond_core: bond | bondcpp | bondpy | smclib
Package Summary
Released
Documented
C++ implementation of bond, a mechanism for checking when another process has terminated.
- Maintainer status: maintained
- Maintainer: Michael Carroll <michael AT openrobotics DOT org>
- Author: Stuart Glaser
- License: BSD
- Bug / feature tracker: https://github.com/ros/bond_core/issues
- Source: git https://github.com/ros/bond_core.git (branch: kinetic-devel)
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:
Toggle line numbers
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(ros::Duration(-1.0));
14 printf("B has broken the bond\n");
Process B:
Report a Bug
Use GitHub to report bugs or submit feature requests. [View active issues]