Skip to content

Commit

Permalink
/libros/node_handle: alternative way to fix ros#838 (ros#1656)
Browse files Browse the repository at this point in the history
  • Loading branch information
cwecht authored and josephduchesne committed Jan 24, 2024
1 parent cb6e1b7 commit 5ff2110
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions clients/roscpp/src/libros/node_handle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,10 @@ class NodeHandleBackingCollection
V_SrvCImpl srv_cs_;

boost::mutex mutex_;

// keep shared_ptrs to these managers to avoid assertions. Fixes #838
TopicManagerPtr keep_alive_topic_manager = TopicManager::instance();
ServiceManagerPtr keep_alive_service_manager = ServiceManager::instance();
};

NodeHandle::NodeHandle(const std::string& ns, const M_string& remappings)
Expand Down

0 comments on commit 5ff2110

Please sign in to comment.