Ask Your Question
1

Running sample ROS node on Android through SL4A.

asked 2011-06-08 21:44:54 -0500

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

Hi,

Following the instructions in section 6 on running the sample ROS node on android page http://www.ros.org/wiki/android , when I went to SL4A, then went into ros.py, it asks for the ROS_PACKAGE_URI. I filled in the field with http://ubuntu:11311/ . Then it says "uname: permission denied". How can I go about this?

Thanks

Soe

edit retag flag offensive close merge delete

3 Answers

Sort by » oldest newest most voted
2

answered 2011-06-09 01:12:55 -0500

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

Have you considered using rosjava instead? You'll see much better integration with Android that way. See http://rosjava.googlecode.com/

edit flag offensive delete link more

Comments

Hi Damon, Yes, I have already tried it, but cannot seem to understand how to start it off. Can you provide some simple example source files for linking android with ROS, which are fully functional? That would be very helpful indeed. I am using the eclipse with android sdk and adt tools. Thanks! :D
soetommy gravatar image soetommy  ( 2011-06-21 07:55:30 -0500 )edit
There are fully functional Android projects under trunk/android/tutorials.
damonkohler gravatar image damonkohler  ( 2011-06-22 08:28:30 -0500 )edit
There is currently a problem with importing RosTextView and MessageCallable into the java because they seem not to be included in the rosjava.jar library.
soetommy gravatar image soetommy  ( 2011-06-22 21:28:38 -0500 )edit
They are part of the Android library and not part of rosjava.jar. If you're having trouble, this may be better off as a separate question.
damonkohler gravatar image damonkohler  ( 2011-06-23 06:27:03 -0500 )edit
3

answered 2011-06-09 01:29:29 -0500

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

Hi Soe,

this should not affect negatively the functionality of the sample ROS node or any other Android ROS nodes.

Background: roslib/os_detect.py tries to detect the current operating system the ROS node is running on. uname is called during these OS checks. However, on un-rooted Android devices uname cannot be called due to missing permissions. For this reason, the error occurs in the terminal.

Best regards, Stefan

edit flag offensive delete link more
0

answered 2011-06-21 07:53:21 -0500

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

Hi Stefan, Thanks for the suggestion. Since since I am trying out with my emulator, it's unrooted and thus still facing the problem with the missing permissions. Is there a way to bypass this? Thanks

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2011-06-08 21:44:54 -0500

Seen: 720 times

Last updated: Jun 21 '11