Implement blocking homing endpoint and refactor homing logic in mujoco_server.py
Georg
e9e2294
- Introduced a new blocking API endpoint (`/homing`) for UR5 that pauses jogging commands while executing homing, enhancing control during the homing process.
- Refactored the homing logic to remove the need for continuous home messages, improving efficiency and reducing potential drift.
- Updated the frontend to utilize the new blocking endpoint, simplifying the user interaction for homing.
- Removed deprecated home and stop_home message types from protocol_types.py to streamline the codebase.
- Enhanced tests to validate the new blocking homing functionality and ensure proper behavior during homing operations.
- Updated README.md to document the new homing endpoint and its usage.
Implement dynamic camera management and enhance overlay functionality in mujoco_server.py
Georg
2425670
- Introduced dynamic camera configuration capabilities, allowing users to register auxiliary cameras via a new API endpoint.
- Updated overlay camera state management to support dynamic camera states, improving the responsiveness of the UI to camera events.
- Enhanced the handling of camera events in the frontend, ensuring that the UI refreshes automatically when new cameras are added.
- Added comprehensive tests for the dynamic camera functionality, verifying state announcements and environment updates.
- Updated README.md to document the new dynamic camera API and its integration with the existing system.
Enhance multi-axis homing and Nova API v2 integration
Georg
59625d9
- Updated the homing functionality in `mujoco_server.py` to support multi-axis movements using the Nova API v2, allowing all joints to move simultaneously for faster homing.
- Improved the `NovaJogger` class to utilize a unified v2 endpoint for joint and cartesian jogging, enhancing command efficiency and mode switching.
- Added comprehensive tests for multi-axis homing and jogging functionality, ensuring robust performance and validation of the new features.
- Updated `README.md` to reflect the new capabilities and integration details with the Nova API v2.
- Introduced new scripts for testing multi-axis homing and validating the v2 jogging commands, ensuring proper functionality before deployment.
Enhance homing functionality and client management in mujoco_server.py
Georg
0551bb3
- Updated the homing state management to include timeout checks, preventing drift when home messages cease.
- Improved the handling of identified and unidentified clients in the `broadcast_state()` function, ensuring accurate client status reporting.
- Introduced continuous command sending in the NovaJogger class for smoother joint movements during jogging.
- Enhanced the UI to display both identified and unidentified clients, improving user feedback on connection status.
- Added comprehensive tests for homing behavior, including drift prevention and overshoot detection, ensuring robust performance in various scenarios.
- Updated README.md to reflect changes in homing behavior and client management.
Refactor mujoco_server.py and protocol_types.py for external client support
Georg
223bbeb
- Replaced trainer-specific WebSocket handling with a more generic external client model, allowing for better integration of various client types.
- Updated message types and payload structures to reflect the new client identity and notification system, ensuring backward compatibility with legacy trainer messages.
- Enhanced the broadcast mechanisms to notify all connected clients about their connection status, improving the overall communication flow.
- Removed deprecated trainer-related code and tests, streamlining the server's functionality and focusing on external client interactions.
- Updated README.md to reflect changes in client messaging and connection handling, providing clearer guidance for developers.
Refactor teleoperation commands to actions in mujoco_server.py and update protocol documentation
Georg
9013e5d
- Renamed `teleop_command` to `teleop_action` and `command` to `action` for consistency across the codebase.
- Updated message handling to support new action-based velocity control for UR5 robots, including backward compatibility for legacy message types.
- Enhanced the README.md and PROTOCOL_CHANGES.md to reflect the new action structure and provide clear migration guidance for developers.
- Introduced a new `protocol_types.py` file with TypeScript-style type definitions for all protocol messages, improving type safety and IDE support.
- Updated tests to validate the new action message structure and ensure backward compatibility with existing command formats.
Enhance mujoco_server.py and README.md for improved teleoperation and environment management
Georg
9078db7
- Initialized last_teleop_command with default values to ensure consistent command structure.
- Updated switch_robot function to handle gripper state for UR5 robots, improving teleoperation control.
- Refactored the /env endpoint to return static environment information, including camera feeds and robot properties, enhancing API usability.
- Revised README.md to reflect changes in dependencies and clarify the usage of the new /env endpoint for environment information.
- Added detailed documentation on the new camera feed structure and updated examples for better clarity.
Enhance mujoco_server.py and UR5 environment for improved teleoperation and episode control
Georg
c525614
- 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.
Add environment loading utility and integrate into Nova API and Jogger
Georg
07bb707
- Introduced a new utility module for loading environment variables from `.env.local` to streamline configuration management.
- Integrated the environment loading functionality into the Nova API and Jogger modules to ensure proper configuration during runtime.
- Updated the UR5 environment to utilize the loaded home pose for joint initialization, enhancing simulation consistency.
Enhance mujoco_server.py and documentation with camera and scene updates
Georg
e636f34
- Updated the UR5 overlay camera configuration to include a new look target and adjusted offsets for improved visualization.
- Enhanced the simulation loop to support dynamic camera positioning based on site IDs and offsets.
- Added a new endpoint for scheduling robot and scene switches, allowing for automated testing and integration.
- Updated README.md to reflect changes in camera functionality and added instructions for the new switch endpoint.
- Introduced tests for API endpoints, camera streams, and WebSocket interactions to ensure reliability and performance.
Implement Nova API jogging support and enhance UI controls
Georg
a75f112
- Added support for bidirectional jogging control via the Nova API, allowing users to send jogging commands for joint and cartesian movements.
- Enhanced mujoco_server.py to handle new jogging commands and integrate with the Nova API for real-time control.
- Updated the UR5 environment to initialize and manage the NovaJogger for handling jogging operations.
- Improved the UI to include jogging controls for translation and rotation, providing users with intuitive interaction options.
- Enhanced README.md to document the new jogging features and usage modes, including Digital Twin, Nova IK, and Hybrid modes.
- Introduced test scripts for validating Nova API connections and jogging functionality, improving overall reliability and user experience.