What feature or enhancement are you proposing?
- Add a
relative parameter to the get_quat() method.
- This feature allows users to directly retrieve the relative quaternion.
Motivation
Currently, the set_quat() method has a relative parameter that determines whether the applied quaternion is absolute or relative to the initial quaternion.
This is particularly useful for tasks like domain randomization, where random orientations are set relative to the initial pose.
Therefore, it would be highly beneficial to have a built-in way to retrieve this relative quaternion directly, without requiring manual calculations in user scripts.
Potential Benefit
- API Consistency: Ensures symmetry with the existing set_quat(relative=True), providing a more intuitive and consistent developer experience.
- Simplified Implementation: Eliminates the need for manual quaternion math (e.g., $q_{rel} = q_{curr} \otimes q_{init}^{-1}$), reducing boilerplate code and potential calculation errors.
- Efficient RL Workflows: Streamlines domain randomization and observation handling by allowing direct access to relative orientations from the initial state.
What is the expected outcome of the implementation work?
Additional information
- Related Feature: This directly complements the existing set_quat(relative=True) method. Aligning the internal state tracking ($q_{init}$) with the existing setter implementation will ensure consistent behavior.
What feature or enhancement are you proposing?
relativeparameter to theget_quat()method.Motivation
Currently, the
set_quat()method has arelativeparameter that determines whether the applied quaternion is absolute or relative to the initial quaternion.This is particularly useful for tasks like domain randomization, where random orientations are set relative to the initial pose.
Therefore, it would be highly beneficial to have a built-in way to retrieve this relative quaternion directly, without requiring manual calculations in user scripts.
Potential Benefit
What is the expected outcome of the implementation work?
Additional information