rosjava node pub and sub with roscpp/rospy
Hi, I'm new to both ROS and android. Just one question, can a robot running on roscpp or rospy subscribe to a topic published by an Android rosjava?
ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A answers.ros.org |
Hi, I'm new to both ROS and android. Just one question, can a robot running on roscpp or rospy subscribe to a topic published by an Android rosjava?
Yes, it will work. The client libraries just implement the ROS communication protocol which is the same for java, c++, python and lisp.
Can my publisher in rospy and subscriber in rosjava be in two separate packages in the same workspace?I am new to ROS and there are different build commands for rospy like catkin_make and gradlew for rosjava. Can i use the same workspace for building both the scripts by putting them in two seperate packages or should i put them in the same package?
It doesn't matter where they are. You could have a source workspace for buliding your desktop (python) packages. And a completely separate source workspace where you build your android packages. The only thing in common they need is the message package.
but the message packages are different for rospy and rosjava right? we use std_msgs for python and rosjava_messages for rosjava..do i add both of these package dependencies to both the packages between whom i am publishing and subscribing? cant i just use the same topic and message type for the publisher and subscriber?
Its actually std_msgs + genpy for python and std_msgs + rosjava_bootstrap + java_messages for rosjava. genpy generates the python modules for std_msgs and puts them inside std_msgs. rosjava_bootstrap generates the java artifacts for std_msgs and puts them inside rosjava_messages.
We'd like a genjava eventually, not too far off that target now.
Please start posting anonymously - your entry will be published after you log in or create a new account.
Asked: 2011-09-11 19:22:46 -0500
Seen: 987 times
Last updated: Sep 11 '11
Converting/importing existing ROS code to rosjava
Which version of Android studio works with rosjava?
Adding an image publishing node to the android_tutorial_image_transport
rosjava image_transport example failing
ROS Android project-rosmake failed
tf android: No tf data received ??
Laserscan subscription delay! rosjava on android
How to run unit/integration tests for a rosjava-android project?