Closed junmeng6025 closed 1 year ago
Hello,
to use custom messages in ros2-for-unity
you have to create a separate package with your messages. You can find the instructions on how to do it here: Creating custom msg and srv files.
Then, having such a custom package, you need to put it inside src/ros2cs
directory or use a .repos
file.
If you are hosting your package on a git repository, you can list it in ros2_for_unity_custom_messages.repos
file. ros2_for_unity_custom_messages.repos
doesn't contain the custom messages definitions directly. It holds the information where the build system can find the repository for that package. You can't define messages in .repo
file as you tried to do (see Custom messages in a readme).
@junmeng6025 were you able to work with custom message following the instructions? If so, could you close the issue?
I tried to custom the message in
ros2_for_unity_custom_messages.repos
, like this:and then ran
./pull_repositories.sh
in root directory, got this:It seems that my message in wrong syntax. How should I edit the message?