- Docker service starts
- Wait 5 seconds to set up the speaker and microphone with echo cancellation
- Wait 15 seconds before restarting om1
-
Setup environment variables
Get your API key from OM1 Portal
For Bash:
Open the bashrc file
vim ~/.bashrc or ~/.bash_profile.and addexport OM_API_KEY=your API keyFor Unitree G1, Add the following as wellNote: By default, the docker container hasCYCLONEDDS_INTERFACEset toeno1, it is necessary to update it to the correct interface for G1 setup. IdeallyROBOT_TYPEcan also be setup for Go2 but it is not mandatory. The cyclone dds interface can be found by runningifconfigin your terminal and selecting the name of the ethernet connection. Usually for the dog it iseno1and for g1 it isenP2p1s0. - Install ROS2-jazzy and CycloneDDS on the edge device. (Optional) ROS2 installation link
- Establish Ethernet and DDS connectivity Open the network settings and find the network interface that is connected to the Go2 EDU/G1. In the IPv4 settings, change the IPv4 mode to manual, set the address to 192.168.123.99, and set the mask to 255.255.255.0. After completion, click apply (or equivalent) and wait for the network to reconnect.
-
Create cyclonedds.xml file inside /Documents/Github/cyclonedds/
vi cyclonedds.xmlAdd the following -Make sure you configure the correct IP address for control station 2. It should be the same you configure in IPv4 settings above. For Unitree G1, make sure you update the following -
Set CYCLONEDDS_HOME, CMAKE_PREFIX_PATH, and CYCLONEDDS_URI (Optional)
-
Install unclutter on your system to hide the mouse cursor after a period of inactivity:
-
Install Chromium and lock the snapd version for stability:
-
Add the script to /usr/local/bin/start-kiosk.sh and make it executable:
-
Make the script executable:
-
Add the script to /etc/systemd/system/kiosk.service to launch the kiosk mode automatically on boot.
-
Enable and start the kiosk service:
-
Setup default speaker and microphone:
- Connect your robot with a microphone and a speaker if not already connected.
- Install pulseaudio, if not already installed
- Find the available devices using following commands -
Add the following to the file - -
Use
and replace alsa_output.usb-Solid_State_System_Co._Ltd._USB_PnP_Audio_Device_000000000000-00.analog-stereo with your speaker source and alsa_input.usb-046d_Brio_101_2520APKJ1778-02.mono-fallback with mic source
-
Enable and start the audio defaults service:
-
Settings to be updated for edge device
Go to your system settings and update the following
- Set screen blank to Never
- Disable Automate suspend
- Enable Autohide Dock
-
Restart the OM1 container to apply these changes when the system starts to do audio configuration:
-
Add this service to /etc/systemd/system/om1-container.service to automatically restart the OM1 container on boot (Optional):