:material-robot-industrial: JoyLo
JoyLo teleoperation system is first introduced in BEHAVIOR Robot Suite as an effective teleop device for R1 robot, providing a cost-effective whole-body teleoperation interface that enables seamless control of mobile manipulators with high degrees of freedom. Originally designed for real-world robots, JoyLo has been extended to support simulation environments and is now fully compatible with OmniGibson.
Additionally, in OmniGibson, we support more robots beyond the original R1, including mobile manipulators R1 (6dof arm) and R1-pro (7dof arm), as well as single arm robots like A1 (6dof) and Franka (7dof).
Hardware Setup
6 DoF R1
For the 6dof version, please reference this guide from the BEHAVIOR Robot Suite.
7 DoF R1-Pro
Coming soon!
Software Setup
Prerequisites
- Linux operating system
- NVIDIA RTX-enabled GPU
- External Bluetooth dongle (recommended: [link])
Step 1: BEHAVIOR Environment Setup
Refer to the installation guide and setup the BEHAVIOR environment with the --teleop flag.
Step 2: Copy Over Task Instances
All the sampled tasks are represented as JSON files in the sampled_task directory in this repo. You can check the names of all available tasks in the available_tasks.yaml file. Usually, tasks are stored in our dataset directory in public releases, but since we are still in the process of iterating on them, we temporarily keep them in the joylo repo so that we can quickly update. OmniGibson still reads from the dataset directory, so we wrote the populate_behavior_tasks.sh shell script to help copy these sampled task JSON files over to the dataset directory.
To populate task definitions, run:
# Run the script to copy sampled task JSON files to the dataset directory
./joylo/populate_behavior_tasks.sh
Step 3: Nintendo JoyCon Configuration
- Configure udev rules:
sudo nano /etc/udev/rules.d/50-nintendo-switch.rules
- Add the following content to the file:
# Switch Joy-con (L) (Bluetooth only)
KERNEL=="hidraw*", SUBSYSTEM=="hidraw", KERNELS=="0005:057E:2006.*", MODE="0666"
# Switch Joy-con (R) (Bluetooth only)
KERNEL=="hidraw*", SUBSYSTEM=="hidraw", KERNELS=="0005:057E:2007.*", MODE="0666"
# Switch Pro controller (USB and Bluetooth)
KERNEL=="hidraw*", SUBSYSTEM=="hidraw", ATTRS{idVendor}=="057e", ATTRS{idProduct}=="2009", MODE="0666"
KERNEL=="hidraw*", SUBSYSTEM=="hidraw", KERNELS=="0005:057E:2009.*", MODE="0666"
# Switch Joy-con charging grip (USB only)
KERNEL=="hidraw*", SUBSYSTEM=="hidraw", ATTRS{idVendor}=="057e", ATTRS{idProduct}=="200e", MODE="0666"
KERNEL=="js0", SUBSYSTEM=="input", MODE="0666"
- Refresh udev rules:
sudo udevadm control --reload-rules && sudo udevadm trigger
- Install Bluetooth manager:
sudo add-apt-repository universe
sudo apt-get install blueman
Step 4: Connect JoyCons
Method 1: Using Bluetooth Manager (Recommended)
- Ensure your external Bluetooth dongle is connected
- Open Bluetooth Manager
- Search for JoyCon devices and connect when they appear
Method 2: Using Command Line (If Method 1 fails)
- Run the following commands:
bluetoothctl
scan on
# Wait for Joy-Con (L) and (R) to appear with their MAC addresses
# For each controller:
pair <MAC_ADDRESS>
trust <MAC_ADDRESS>
connect <MAC_ADDRESS>
- Verify connection: JoyCon lights should be static (not flashing)
Step 5: Running the System
Ensure JoyLo is powered on (with motors NOT connected to Dynamixel software)
Ensure JoyCons are connected
In one terminal, start the recording environment with a specified task:
python joylo/experiments/launch_nodes.py --recording_path /path/to/recording_file_name.hdf5 --task_name picking_up_trash
- In another terminal, run the JoyLo node:
python joylo/experiments/run_joylo.py --gello_model r1pro --joint_config_file joint_config_{your specific gello set name}.yaml
Joycon Button Mapping
Usage Notes
- Press the home button on the right JoyCon to save an episode and reset the scene
- To save all episodes and exit, focus your mouse on the OmniGibson window and press Escape
- Recording file will be saved to the path specified in the launch_nodes.py command
- Fast base motion mode: Activate by pressing down on the left joystick while moving it
- Object visibility toggle: Press A button on the right JoyCon to toggle between hiding non-relevant objects and showing all objects
- JoyCon connection stability: We have noticed that sometimes the JoyCon could disconnect randomly during data collection. A team member has reported that putting the Bluetooth dongle onto USB 2.0 is more stable than USB 3.0. We will look further into this issue.
Task Information
- Available tasks are listed in
sampled_task/available_tasks.yaml - Task definitions are stored as JSON files in the
sampled_taskdirectory - To learn about task definitions and expected goal conditions, check the corresponding
problem0.bddlfile in the BDDL repository for the task name. This file contains information about relevant objects, initial conditions, and goal conditions.
Troubleshooting
JoyCon connection issues
- If JoyCons won't connect, try the command line method (Method 2 above)
- Ensure you're using an external Bluetooth dongle, as built-in Bluetooth may not be compatible
- Verify that udev rules are properly configured if devices aren't recognized
- If JoyCons disconnect randomly during data collection, try connecting the Bluetooth dongle to a USB 2.0 port instead of USB 3.0
- If the JoyCon is being used as a mouse, double check this setting (or alternatively remove
50-joystick.confdirectly) - If the JoyCons are connected to Ubuntu in bluetooth but are still unable to be detected from Python, try
pip uninstall hidapi, and thenpip install hid pyglm, and then try again
HID issues
- If you see something like
ImportError: Unable to load any of the following libraries:libhidapi-hidraw.so libhidapi-hidraw.so.0 libhidapi-libusb.so libhidapi-libusb.so.0 libhidapi-iohidmanager.so libhidapi-iohidmanager.so.0 libhidapi.dylib hidapi.dll libhidapi-0.dll, trysudo apt install libhidapi-hidraw0.
Joycon Calibration
Connect joycons and run:
python joylo/scripts/calibrate_joycons.py
JoyLo Joint Calibration
- JoyLo sets can be assembled in slightly different ways, resulting in different orientations of the motors and offsets between the physical motor positions and the joint positions in simulation.
- A script for automatically determining these joint signs and offsets is available in
scripts/calibrate_joints.py
Example Usage
python joylo/scripts/calibrate_joints.py --robot R1Pro --gello_name {YOUR_GELLO_NAME_HERE}
(Make sure to specify the same gello_name argument when using your set to run the simulation).
Reference Positions
The calibration script requires each arm to be placed in two fixed reference positions, called the "zero" and "calibration" positions. These are provided below for both the R1 (6-DOF) and R1-Pro (7-DOF) JoyLo variants.










