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(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]