ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Jackal's profile - activity

2016-06-02 15:48:00 -0500 received badge  Famous Question (source)
2015-11-26 12:15:44 -0500 received badge  Popular Question (source)
2015-11-26 12:15:44 -0500 received badge  Notable Question (source)
2015-10-22 09:00:40 -0500 asked a question 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...

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