Android phone connecting to roscore on pc and thus how android phone can act as device for command input

asked 2011-06-28 06:43:21 -0500

david gravatar image

Hi,

I already have a pubsubtutorial application up and running.

However, how can I modify it or how shall I change the given tutorial code so that the application does not set up its own RosCore, but instead connects to a RosCore already running on a PC (let's say with http://host:11311 ).

In addition, what I am intending to do is that the android phone can have a command line tool so that the user can simply give commands as if the user were typing the commands into the terminal on the pc. So, is there a way so that it is the android phone that connects to the phone in command line mode?

Thanks! Really Appreciate it! :D

David

edit retag flag offensive close merge delete

Comments

2

1) Set the ROS_MASTER_URI environment variable to where the roscore is running. 2) You could send commands as String messages and execute the code on the client side.

dornhege gravatar image dornhege  ( 2011-06-28 06:54:10 -0500 )edit
Hi Dornhege! Thanks for the answer, I am actually looking for some sample code to accomplish them, if available.
david gravatar image david  ( 2011-06-28 13:54:47 -0500 )edit
Hi there, so how exactly do you set the ROS_MASTER_URI on an Android device then? thx, D.
dejanpan gravatar image dejanpan  ( 2011-12-27 10:37:24 -0500 )edit