Skip to content

Creating custom msg and srv files: Files have to be in folders called msg or srv #29

@definitelyuncertain

Description

@definitelyuncertain

Hi, I was following the tutorial on Creating custom msg and srv files.

When I placed my .msg file in a folder that was not called msg, I got an error about the .idl file not being found when querying with ros2 interface show. The error went away when I renamed the folder to msg.

So it appears that the .msg files are expected to be in the msg directory in the package. The tutorial on the other hand suggests that it is recommended but not an issue to do otherwise:

It is good practice to keep .msg and .srv files in their own directories within a package.

If it is the case that the directory needs to be called msg, then the tutorial needs to state explicitly as such. Could somebody confirm this?

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