Skip to content
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

The camera in the example is not updated #71

Open
AmiyaShirou opened this issue Dec 19, 2024 · 3 comments
Open

The camera in the example is not updated #71

AmiyaShirou opened this issue Dec 19, 2024 · 3 comments

Comments

@AmiyaShirou
Copy link

When I checked the parameters of aviary, I found that the parameters of camera were not needed, but 04_camera.py in the example still existed
Is there any simple and clear example of the new version?
ty

@jjshoots
Copy link
Owner

Thanks for the issue! The parameters are being passed into drone_options of the Aviary, which is passed into the drones themselves. Does this answer your query?

@AmiyaShirou
Copy link
Author

Thanks for your reply, now I know the parameters are in drone_options, but when I run
env = Aviary(
start_pos=start_pos,
start_orn=start_orn,
render=True,
drone_type="quadx",
drone_options=dict(
use_camera=True,
camera_angle=30,
camera_FOV_degrees=110,
camera_fps=30,
),

i cant send the parameters into Aviary
TypeError: QuadX.init() got an unexpected keyword argument 'camera_angle'
Maybe I'm too dumb to figure it out on my own.If possible,could u teach me how can i solve the problem?

@jjshoots
Copy link
Owner

The parameter is camera_angle_degrees according to here. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants