Spaces:
Paused

Georg commited on
Commit
c525614
·
1 Parent(s): fc65a06

Enhance mujoco_server.py and UR5 environment for improved teleoperation and episode control

Browse files

- Introduced new mechanisms for handling teleoperation commands, including a snapshot of the last command for better state management.
- Updated the reward calculation in the UR5 environment to prioritize task rewards, with a fallback to distance-based rewards.
- Added gym-style control message handling over the unified WebSocket, allowing for richer interactions and state updates.
- Implemented a robust episode control flag system to manage episode termination and truncation without interfering with the gym client's lifecycle.
- Enhanced documentation in README.md to clarify server startup options and the unified WebSocket API for trainers and clients.
- Added unit tests to verify the functionality of the episode control mechanism, ensuring thread safety and correct behavior across multiple episodes.

5 files changed +411 -84
Files changed (5)
README.md+50-23
mujoco_server.py+180-55
robots/ur5/ur5_env.py+12-4
tests/test_api.py+2-2
tests/test_episode_control_fix.pyAdded+167