| 122 | } |
| 123 | |
| 124 | inline void ExportChannelHandleRef(pybind11::object m) { |
| 125 | using aimrt::channel::ChannelHandleRef; |
| 126 | |
| 127 | pybind11::class_<ChannelHandleRef>(std::move(m), "ChannelHandleRef") |
| 128 | .def(pybind11::init<>()) |
| 129 | .def("__bool__", &ChannelHandleRef::operator bool) |
| 130 | .def("GetPublisher", &ChannelHandleRef::GetPublisher) |
| 131 | .def("GetSubscriber", &ChannelHandleRef::GetSubscriber) |
| 132 | .def("MergeSubscribeContextToPublishContext", &ChannelHandleRef::MergeSubscribeContextToPublishContext); |
| 133 | } |
| 134 | |
| 135 | #ifdef AIMRT_BUILD_WITH_ROS2 |
| 136 | |