ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A answers.ros.org
Ask Your Question
0

How should I name my message file?

asked 2021-10-22 19:04:17 -0500

JollyRogers gravatar image

updated 2021-10-23 03:30:20 -0500

gvdhoorn gravatar image

I am trying to create a cmake dependency that has all my messages, however the following error happens:

rosidl_adapter.parser.InvalidResourceName: 'testMsg' is an invalid message
name.  It should have the pattern '^[A-Z][A-Za-z0-9]*$'

Looks like that the name of my message file is incorrect, but I do not understand what ^[A-Z][A-Za-z0-9]*$' means.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2021-10-23 06:27:48 -0500

JollyRogers gravatar image

I got the answer,

^[A-Z]

Means upper case letter, and

^[A-Za-z0-9]

Means upper case letter followed by lower case letters or numbers. Thus, my message name was wrong because I was using

'testMsg'

Which does not starts with a capitol letter. This problem was solved just by writing:

'TestMsg'
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2021-10-22 19:04:17 -0500

Seen: 97 times

Last updated: Oct 23 '21