| 119 | }; |
| 120 | |
| 121 | inline void RegisterNodes(BT::BehaviorTreeFactory& factory) |
| 122 | { |
| 123 | static GripperInterface grip_singleton; |
| 124 | |
| 125 | factory.registerSimpleCondition("CheckBattery", std::bind(CheckBattery)); |
| 126 | factory.registerSimpleCondition("CheckTemperature", std::bind(CheckTemperature)); |
| 127 | factory.registerSimpleAction("SayHello", std::bind(SayHello)); |
| 128 | factory.registerSimpleAction("OpenGripper", |
| 129 | std::bind(&GripperInterface::open, &grip_singleton)); |
| 130 | factory.registerSimpleAction("CloseGripper", |
| 131 | std::bind(&GripperInterface::close, &grip_singleton)); |
| 132 | factory.registerNodeType<ApproachObject>("ApproachObject"); |
| 133 | factory.registerNodeType<SaySomething>("SaySomething"); |
| 134 | } |
| 135 | |
| 136 | } // namespace DummyNodes |
| 137 |
no test coverage detected