Skip to content

Commit 53cd470

Browse files
committed
Creating viewer pub variable for C++ factory node
1 parent db64286 commit 53cd470

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

yasmin_factory/src/yasmin_factory_node.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,9 @@ int main(int argc, char *argv[]) {
5454
sm->set_sigint_handler(true);
5555

5656
// Publisher for visualizing the state machine
57+
std::unique_ptr<yasmin_viewer::YasminViewerPub> yasmin_pub_ptr;
5758
if (enable_viewer_pub) {
58-
yasmin_viewer::YasminViewerPub yasmin_pub(sm);
59+
yasmin_pub_ptr = std::make_unique<yasmin_viewer::YasminViewerPub>(sm);
5960
}
6061

6162
// Execute the state machine

0 commit comments

Comments
 (0)