You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm training locomotion policies with genesis in headless mode, I'm using cameras to record the robot training. To follow the robot i'm updating the camera position but this is a bit clunky, it would be nice to have an option telling the camera to follow a certain entity !
In my case it would be nice if the camera follows for example the robot's body on the xy plane but stay at the same height, or maybe even some smoothing done on the position so that the camera's movement are not too jittery.
Would that be possible ?
Thanks have a nice day
The text was updated successfully, but these errors were encountered:
FixesGenesis-Embodied-AI#538
Add functionality for the camera to follow an entity.
* **Camera Class (`genesis/vis/camera.py`)**
- Add `_follow_entity`, `_follow_height`, and `_follow_smoothing` attributes.
- Add `follow_entity` method to set the camera to follow a specified entity.
- Update `render` method to call `follow_entity` if enabled.
* **Scene Class (`genesis/engine/scene.py`)**
- Add `set_camera_follow_entity` method to set the camera to follow a specified entity.
- Update `step` method to call `set_camera_follow_entity` if enabled.
* **Drone Example (`examples/drone/interactive_drone.py`)**
- Add `--follow` argument to enable camera follow.
- Update `main` function to use `follow_entity` method if `--follow` argument is provided.
Hello,
I'm training locomotion policies with genesis in headless mode, I'm using cameras to record the robot training. To follow the robot i'm updating the camera position but this is a bit clunky, it would be nice to have an option telling the camera to follow a certain entity !
In my case it would be nice if the camera follows for example the robot's body on the xy plane but stay at the same height, or maybe even some smoothing done on the position so that the camera's movement are not too jittery.
Would that be possible ?
Thanks have a nice day
The text was updated successfully, but these errors were encountered: