Ask Your Question
0

Android tutorial teleop problems

asked 2012-09-23 07:33:58 -0600

this post is marked as community wiki

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

Hi! I am having problems with "android_tutorial_teleop". It compiles ok, but the app crashes when touching the virtualJoysticView. The problem is that "currentVelocityCommand" is null when setting velocities. I have tried:

currentVelocityCommand =publisher.newMessage();

as the Issue 109 of rosjava says (http://code.google.com/p/rosjava/issues/detail?can=2&start=0&num=100&q=android&colspec=ID%20Type%20Status%20Priority%20Milestone%20Owner%20Summary&groupby=&sort=&id=109) but it doesn't work...

Please, could anybody help me??

Thanks!!

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2012-09-23 11:22:30 -0600

this post is marked as community wiki

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

finally it works! i tried:

currentVelocityCommand = publisher.newMessage();

after publisher initialization. It is necessary to have the master running, the publisher needs to be initialized ok, if not, currentVelocityCommand = publisher.newMessage(); won't work.

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: 2012-09-23 07:33:58 -0600

Seen: 379 times

Last updated: Sep 23 '12