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 | ros @ Robotics Stack Exchange |
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.
Asked: 2011-09-11 19:22:46 -0500
Seen: 1,002 times
Last updated: Sep 11 '11
error setting localhost on android
I had a compilation error when i build rosjava_core source package
android_tutorial_image_transport crashed in android
rosjava publishing to a topic based on user input (button)
Does android_tutorial_pubsub connect to other ROS Masters?
ERROR: Gradle 'android_10' project refresh failed
ROS Android project-rosmake failed
Using Android Studio with ros java
What is the best way to interface a android tab to a roscore