Custom messages not generated by ROSJava

asked 2015-10-22 08:06:14 -0500

Jackal gravatar image

updated 2015-10-22 09:14:13 -0500

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...

I sourced my workspace and ran genjava_message_artifacts.
It generated correctly all the standards message artifacts (std_msgs, geometry_msgs 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:
['my_msgs']
:generatePomFileForMavenJavaPublication
:bugfixtask :generateSources
:compileJava UP-TO-DATE
:processResources UP-TO-DATE :classes
UP-TO-DATE
:jar
:publishMavenJavaPublicationToMavenRepository
Uploading: org/ros/rosjava_messages/my_msgs/1.2.0/my_msgs-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....

edit retag flag offensive close merge delete