forked from Genesis-Embodied-AI/Genesis
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes Genesis-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.
- Loading branch information
1 parent
10a1078
commit c4bd73c
Showing
3 changed files
with
80 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters