Robotics StackExchange | Archived questions

How to determine what package a node belongs to?

Hi !

I have read the "Create a ros package tutorial" and I more or less understand what the tags and are for. My difficulty is to determine what I should put in the corresponding sections. For example, if I look at the code of the tf listener tutorial, I have the following includes:

#include <ros/ros.h>

#include <tf/transform_listener.h>

#include <turtlesim/Velocity.h>

#include <turtlesim/Spawn.h>

The questions I have are:

  1. Are the includes enough to determine the dependencies?
  2. How do I determine the package name from the include file name, e.g. for tf/transform_listener.h?
  3. If dependencies can be deduced from the includes, is there some automatic tool to do it?

Thanks for any input.

      GGG

Asked by ggg on 2014-04-20 23:22:17 UTC

Comments

Answers

  1. the includes are enought to determine the build dependencies
  2. The standard is "/.h
  3. There are some tools that can help you analyze headers for dependencies, but they are not sufficient.

Asked by tfoote on 2018-10-03 05:30:08 UTC

Comments