Robotics StackExchange | Archived questions

Custom messages not generated by ROSJava

Hi there,

I have some custom ROS messages, everything works perfectly in C++/Python for their generation.
I followed this guide to generete them also in Java : http://wiki.ros.org/rosjava/Tutorials/indigo/RosJava%20Message%20Artifacts

I sourced my workspace and ran genjava_message_artifacts.
It generated correctly all the standards message artifacts (stdmsgs, geometrymsgs and so), but not my custom messages.
It generates an empty .jar file for those. See result from calling : genjava_message_artifacts --verbose -p my_msgs.

Generating message artifacts for:
['mymsgs']
:generatePomFileForMavenJavaPublication
:bugfixtask :generateSources
:compileJava UP-TO-DATE
:processResources UP-TO-DATE :classes
UP-TO-DATE
:jar
:publishMavenJavaPublicationToMavenRepository
Uploading: org/ros/rosjava
messages/mymsgs/1.2.0/mymsgs-1.2.0.jar to repository remote at file:/home/user/my_ws/devel/share/maven/
Transferring 0K from remote
Uploaded 0K

BUILD SUCCESSFUL

As you can see it generates a .jar file big 0 KB (it only contains a manifest and not the classes for the messages).

Any idea on what I am doing wrong? Thanks in advance for any help.

EDIT : I tried using the rosjava message generator directly from :
git clone https://github.com/rosjava/rosjava_messages.git -b indigo
and adding the my_msgs package to the package/CMakeList. Building that generates correctly for the standard message packages but again an empty jar for my custom one.

I tried using the hydro branch git clone https://github.com/rosjava/rosjava_messages.git -b hydro
and this time it generates correctly also my custom messages....

Asked by Jackal on 2015-10-22 08:06:14 UTC

Comments

Answers