Code Monkey home page Code Monkey logo

tabulaui's Introduction

TabulaUI

A mobile UI for Tabula.

Description

This UI is a robot programming tablet that works with the TabulaSynthesizer backend. While the backend can be tested without the UI, you need the ROS backend running for the UI to work.

It was developed for a Samsung Galaxy S8 tablet using Unity Editor version 2020.3.21f1. This system uses speech input, which works best on the Android tablet but may also work from Windows (but is not supported with Unity on Linux). Further, building for the tablet is most accessible through Windows. To test on an S8 tablet, ensure that the Android Build support was installed with your Unity Editor (version 2020.3.21f1). You will need to change the BuildSettings to Android.

Note, if you are on a Mac, I have had success guided by this blog post: https://medium.com/@surathchatterji/unity3d-devs-setting-up-your-mac-for-android-builds-6fb937aec31c Also from Mac, we had to implement this fix: https://answers.unity.com/questions/1644585/native-error-access-denied-when-building-the-proje.html

Setting Up

Note that the setup steps may require you to enter the Unity Editor in safe mode while you configure the ROS TCP Connector.

  1. Clone this project
  2. Clone Unity's ROS TCP Connector to the TabulaUI > Packages folder.
  3. Find the Window tab on the top > Package Manager and install the ROS TCP Connector package from disk.
  4. Go to TabulaUI > Packages > manifest.json and change the following line:

    "com.unity.robotics.ros-tcp-connector": "file:[your local TabulaUI Path]/TabulaUI/Packages/ROS-TCP-Connector/com.unity.robotics.ros-tcp-connector",

Once you open the project in Unity, there is one additional setup step. In the Project window, click on the Resources/RosConnectionPrefab file. You will need to set the Ros IP Address field to your own IP address --> This should be the ROS master IP!!!

Running

To run, you need to open in the Unity Editor the scene SampleScene. If the tablet is connected to the computer, you should be able to Build and Run (which will deploy the app to the tablet). Otherwise, you can test it in the editor with the play button, but speech input will not work as expected.

Troubleshooting

"the type or namespace Robotics is missing" Unity compiler error

This can happen when the ROS TCP Connector has updated, but your ROS TCP Connector has not. If this happens, try:

  1. Uninstalling and reinstalling the ROS TCP connector (make sure the manifest.json file is changed to your local package)
  2. Check that the IDE you use with Unity (Visual Studio, Rider, etc.) is also up-to-date
  3. If all else fails, push any changes to your remote local branch, delete your local repository, and re-clone (this is what worked for me)

Null Reference Exception: a script is missing error while drawing lines in recording mode.

This is because the LineBrush prefab needs PositionsManager to draw lines.

A fix to the issue is coming, but in the meantime:

  1. Go to Assets/Resources/LineBrush.prefab and click on "Open Prefab" in the Inspector tab. Adding Positions Manager Script Pt 1
  2. Scroll down to the bottom of the LineBrush's Inspector tab and find the component labelled "Missing Script".
  3. Click on Assets/Scripts and then drag the PositionsManager script into the Missing Script slot. Adding Positions Manager script Pt 2

Attributions

Please see the ATTRIBUTIONS.md for a list of icon attributions.

tabulaui's People

Contributors

lstegner avatar barn-cat avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.