Skip to content

package dependency #7

@aremazeilles

Description

@aremazeilles

ping @miguelprada

I am bringing this functionality to a ros_comm fork.

The question is related to how properly define the dependency on rospy_message_converter.

In this repo, I have defined it this way:

In package.xml:

  <depend>rospy_message_converter</depend>

In CMakeLists.txt

find_package(catkin REQUIRED COMPONENTS
    rospy
    rospy_message_converter
)

and further on:

catkin_package(
    CATKIN_DEPENDS
        rospy
        rospy_message_converter
)

If I look to the upstream ros_comm config in the rostest package, I find:

  • in package.xml, most of the dependencies set as run_depend.
  • in CMakeLists.txt, there is very little package dependency placed at the level of find_package and of catkin_package.

Is it because, being a python package, it is sufficient to state the dependency as a run dependency, and so there is no need to place it as dependency in the CMakeLists.txt, as it is not needed for compiling / installing purposes?

I am a bit lost here. Would you have a better understanding of this?

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions