Project

General

Profile

Actions

Bug #141

closed

More than one component in one ROS node

Added by François Félix Ingrand over 6 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal

Description

With the BIP Engine running more than one component in the same process, we in fact have one node (but a number of NodeHandle). As a result, genomixd (init.cc) believe the node/component is not running. Here is a patch to ignore the case where we cannot find the node. A better fix may be to check if there are topics such as /module/genom_state:

diff --git a/client/c/init.cc b/client/c/init.cc
index aec4f73..0495681 100644
--- a/client/c/init.cc
+++ b/client/c/init.cc
@@ -123,8 +123,8 @@ genom_<"$comp">_client_init(int argc, char *argv[],
      genom_mwerr_detail d;
      snprintf(d.what, sizeof(d.what),
               "%s node does not seem to be running", h->instance);
-      genom_mwerr(&d, h);
-      goto error;
+      // genom_mwerr(&d, h);
+      //      goto error;
    }

    h->node = new ros::NodeHandle;
Actions #1

Updated by Anthony Mallet over 6 years ago

  • Status changed from New to Closed
Actions

Also available in: Atom PDF