I am creating a publisher and subscriber node in Android. Currently it works very well with the included ROSjava standard messages. However, I would like to create a custom message type. Hoping there is a tutorial or sample project I can study.
Updated to add my solution in case it helps others: I did follow this tutorial http://wiki.ros.org/rosjava_build_tools/Tutorials/indigo/UsingServices per @jubeira post. The most important thing that I found impacted my success was the sourcing of rosjava.
Written in the text below Step 2 is
Remember to source your Rosjava installation workspace first to have the command line tools available (e.g. source ~/rosjava/devel/setup.bash).
What I found was that if rosjava was deb installed I had problems. I am very new to working with ROS and linux so that may be obvious what to do for other folks, but that's what I found that made things work for me.
Originally posted by jbeard on ROS Answers with karma: 13 on 2018-01-11
Post score: 1
Original comments
Comment by jayess on 2018-01-18:
Could you please post your update as a solution instead?
Comment by jbeard on 2018-01-18:
@jayess Do you mean post as an answer below or is there a solution option I am missing? Forgive me, very new to forum.
Comment by jayess on 2018-01-18:
Yes, post as answer. If you come up with a solution for your problem you should post it as an answer. It's ok if there's already other answers.
Comment by Ro on 2019-12-11:
hola @jubeira estoy trabajando con rosjava y necesito pasar mensajes personalizados, llegaste ha hacer ese tutorial?
Comment by jubeira on 2019-12-16:
Hola Ro,
probaste los pasos que describi en la respuesta anterior? Generar los mensajes no tiene ningun paso distinto en Java; solo hay que tener genjava
disponible en el workspace en el momento de buildear el paquete que contiene los mensajes.
Comment by gvdhoorn on 2019-12-16:
Guys, could you please not post in languages other than English? Thanks.