A mobile UI for Tabula.
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
Note that the setup steps may require you to enter the Unity Editor in safe mode while you configure the ROS TCP Connector.
- Clone this project
- Clone Unity's
ROS TCP Connector
to the TabulaUI > Packages folder. - Find the Window tab on the top > Package Manager and install the ROS TCP Connector package from disk.
- 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!!!
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.
This can happen when the ROS TCP Connector has updated, but your ROS TCP Connector has not. If this happens, try:
- Uninstalling and reinstalling the ROS TCP connector (make sure the manifest.json file is changed to your local package)
- Check that the IDE you use with Unity (Visual Studio, Rider, etc.) is also up-to-date
- 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)
This is because the LineBrush prefab needs PositionsManager to draw lines.
A fix to the issue is coming, but in the meantime:
- Go to Assets/Resources/LineBrush.prefab and click on "Open Prefab" in the Inspector tab.
- Scroll down to the bottom of the LineBrush's Inspector tab and find the component labelled "Missing Script".
- Click on Assets/Scripts and then drag the PositionsManager script into the Missing Script slot.
Please see the ATTRIBUTIONS.md for a list of icon attributions.