Closed KAArunmoli closed 1 year ago
hi @KAArunmoli!
This is something that is not implemented in JOAN yet. But it should be possible to add it to the carlainterface
module. Carla itself has camera objects that return image objects to the python side. These images can be saved.
Hello @OlgerSiebinga,
Thanks for your reply. Could you tell me in which particular function I need to add these changes ? I tried to change the ego_vehicle.py function (in do() function) but was not able to save the images.
as long as you add it in a do()
function in carlainterface
it should work. You could add it in an agent, or in the main process. As long as you can get the camera object from the carla client, you should be fine.
@OlgerSiebinga Do you mean do() or do_while_running() ? Because is see the latter in the carlainterface module
You're right! It's do_while_running()
Hey @OlgerSiebinga. I tried to add the carla command for saving in the do_while_running() function, but the rendering is not happening because i think CARLA takes time to render the images and JOAN doesnt gives it time to render the images and jump to the next frame. I also tried using Queues so that the images are synchronised, but still it doesnt work. Is there any fix for this issue ?
Hi @KAArunmoli. I'm happy to help but I think I need some extra information to help you.
There are some things you could try:
hopefully, this helps.
Hi @OlgerSiebinga,
Hello,
I would love to take snapshots with joan as the Ego vehicle is driven by human. Is it possible to do so in Joan ?