Robotics StackExchange | Archived questions

rosapi: how to filter topics

I am trying to understand rosapi.

Here is my test:

  1. Launching some of my own ros nodes
  2. Doing rostopic list reveals a long list of topics
  3. Launching rosapi with a launch file that sets the topicsglob param. The console output confirms that the topicsglob is set as expected:
SUMMARY
========

PARAMETERS
 * /rosapi/params_glob: [*]
 * /rosapi/services_glob: [*]
 * /rosapi/topics_glob: [/rosout]
 * /rosdistro: kinetic
 * /rosversion: 1.12.13

But when I then do rosservice call /rosapi/topics, all existing topics are listed, incl /rosout. I expected to see only the /rosout listed due to the topics_glob.

Are my expectations wrong? What is the right use of the *_glob parameters?

Asked by knxa on 2018-05-15 07:42:30 UTC

Comments

Answers