ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

I would think the result you receive from the master makes total sense right now, as you're asking it (ie: the master) to return its pid.

Haven't done this myself in C++, but I would imagine the control flow being similar to Python:

  1. retrieve all node names from the master
  2. ask all ..

I would think the result you receive from the master makes total sense right now, as you're asking it (ie: the master) to return its pid.

Haven't done this myself in C++, but I would imagine the control flow being similar to Python:

  1. retrieve all node names from the master
  2. ask all retrieve ..

I would think the result you receive from the master makes total sense right now, as you're asking it (ie: the master) to return its pid.

Haven't done this myself in C++, but I would imagine the control flow being similar to Python:

  1. retrieve all node names from the master
  2. retrieve ..URIs for all returned names
  3. construct clients for all URIs
  4. invoke getPid on all clients

I would think the result you receive from the master makes total sense right now, as you're asking it (ie: the master) to return its pid.

Haven't done this myself in C++, but I would imagine the control flow being similar to Python:

  1. retrieve all node names from the master
  2. retrieve URIs for all returned names
  3. construct clients for all URIs
  4. invoke getPid on all clients

Edit:

"I cannot figure out how to get access to node URIs" - do you know how to do step (2) of what you suggest?

You can use lookupNode in the Master API.