Asked — Edited

Controlling A Robot With Android Wear Smartwatch

As discussed in this thread: https://synthiam.com/Community/Questions/9107 I have been working on controlling my robots from my new Android Wear watch.

Eventually, I want to make a plugin and an Android Wear app to make this easier, but with the combination of 3 (unfortunately, all paid) android apps, I now have a controller. Note: Unlike the Apple watch app that DJ wrote that uses ARC Mobile, this one requires a PC running ARC and the TCP Client connection activated.

User-inserted image

The app has 5 configurable buttons, which I have set up for basic movement panel, but each button actually supports tap, double tap, press and hold, and swipe so I could add 15 additional functions.

It uses the following three apps:

Tasker https://play.google.com/store/apps/details?id=net.dinglisch.android.taskerm

Send/Expect https://play.google.com/store/apps/details?id=com.asif.plugin.sendexpect

and AutoWear https://play.google.com/store/apps/details?id=com.joaomgcd.autowear

There are some issues with AutoWear on Android Wear 6.0.1 (the latest version) but none that impact this function, it just took some work to set up because I could not get through the setup wizard, and some of the features (like gesture support) don't work, but the multi-button function I used work fine.

If anyone else has an Android Wear watch and wants me to put together a tutorial, post here and if there is enough interest I'll write up instructions and post my Tasker files.

Alan


ARC Pro

Upgrade to ARC Pro

With ARC Pro, your robot is not just a machine; it's your creative partner in the journey of technological exploration.

#25  

Quote:

if you download the Google rewards app you'll soon accumulate enough credit to pay for the apps

Good point. I bought Tasker years ago because it is so valuable in its ability to extend Android and automate things I used to do manually, but I bought both of the add-ons with Google Rewards credits.

Alan

United Kingdom
#26  

I really only buy things now with the Google rewards. It can be quite easy to manipulate. I figured out the (semi) local stores that always send a survey if you visit and make a point to walk past them even if I don't call in. Guarantee a survey 24/48 hours later :-)

#27  

If you add any interesting capabilities to this idea please share. The one I plan on doing is having multiple faces available for different robot functions (launching each new face with a swipe on the currently open face, although our discussion of integrating AutoVoice into the mix has me thinking of some new ideas too.

Alan

United Kingdom
#28  

I will do. I was thinking also of autovoice integration.

I'll let you know if I get there.

Paul.

#29  

I haven't modified the code yet, but I have been playing with the ARC HTTP Server (custom) control and realized that I can send script commands using HTTP Get and don't need the Send/Expect telnet client.

Format is:


get  http://host:port/script.cmd?code=script statement


(note: this is not documented, so could potentially change with ARC updates. I discovered it by capturing packets when using the HTTP Server (custom) web page and watching what happened when I hit the buttons)

Alan