-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rework camera logic #232
base: dev-v1.2.0
Are you sure you want to change the base?
Rework camera logic #232
Conversation
…y the simulation to be able to work with the old and new camera type
…initial orientation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot for this significant undertaking!
- Could you please update
doc/source/api_ref/camera.rst
accordingly? This involves:- Edit the text explanation if needed
- Add the autogenerated documentation for all camera types)?
For ii, you can use
.. automodule:: flygym.camera :members: :undoc-members: :show-inheritance:
... instead of adding all cameras explicitly:
.. autoclass:: flygym.camera.Camera :members: :undoc-members: :show-inheritance: .. autoclass:: flygym.camera.ZStabCamera :members: :undoc-members: :show-inheritance: ... etc ...
See https://github.com/NeLy-EPFL/flygym/blob/rework-camera/doc/source/api_ref/legacy.rst for an example.
- For all notebooks changed, can you also modify the RST files under
doc/source/tutorials
accordingly? I know... this is tedious. I also had to manually modify the RST files generated by nbconvert.
…to targeted_fly_names and make it a list of str
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @stimpfli ! Looks good to me now
Description
This PR implements generic camera that can be attached to any part of the model.
Cameras are now initialised dynamically and not part of the xml.
New cameras with special update rules can be created and inherit from the base camera class.
Changes have been incorporated to every example and notebook and tested.
Does this address any currently open issues?
[#229]