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

How to determine what package a node belongs to?

asked 2014-04-20 23:22:17 -0500

ggg gravatar image

Hi !

I have read the "Create a ros package tutorial" and I more or less understand what the tags <run_depend> and <build_depend> 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
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2018-10-03 05:30:08 -0500

tfoote gravatar image
  1. the includes are enought to determine the build dependencies
  2. The standard is "<package_name>/<headerfile>.h
  3. There are some tools that can help you analyze headers for dependencies, but they are not sufficient.
edit flag offensive delete link more

Question Tools

3 followers

Stats

Asked: 2014-04-20 23:22:17 -0500

Seen: 465 times

Last updated: Oct 03 '18