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 annotation result of a camera sensor does not update when we attach a Lidar sensor simultaneously #284

Open
dli2016 opened this issue Sep 26, 2024 · 2 comments

Comments

@dli2016
Copy link

dli2016 commented Sep 26, 2024

We attach a camera and a Lidar for the vehicle.
lidar = Lidar('lidar1', beamng, vehicle, pos=(0, 0, 1.7), requested_update_time=0.05, is_using_shared_memory=False, is_visualised=True, frequency=3, is_360_mode=False, horizontal_angle=120, max_distance=85)
front_camera = Camera('front_camera', beamng, vehicle, pos=(-0.3, -2.1, 1), dir=(0, 0, 0), field_of_view_y=120, resolution=(256, 256), is_render_colours=True, is_render_depth=False, is_render_annotations=True, is_render_instance=False)

However, the annotation result of the camera does not update when we save the data as follows:
front_cam_data = front_camera.poll()
annotation = front_cam_data['annotation'].convert('RGB')
annotation.save('xxx.jpg')
We always get the annotation result of the first frame. The color image and the depth image are correct. And we find that the function get_full_poll_request() must be used to obtain the correct annotation result. Both poll() and stream() are performed abnormally.
Could you please help us check if we use the api correctly? Thank you!

@aivora-beamng
Copy link
Contributor

Hi, thank you for the report. This is a bug and we managed to reproduce with your code, we are now working on a fix.

@dli2016
Copy link
Author

dli2016 commented Sep 27, 2024

Thank you for the quick reply and we look forward for the new version.

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