Open jingzhengli opened 1 week ago
According to the Carla CHANGELOG, 'get_vector_angle' was added to Vector3D in version 0.9.13. We tested this project under version 0.9.13, so we recommend updating Carla to version 0.9.13 (or higher). Otherwise, you'll need to write your own code to calculate the angle between two 3D vectors in radians.
According to the Carla CHANGELOG, 'get_vector_angle' was added to Vector3D in version 0.9.13. We tested this project under version 0.9.13, so we recommend updating Carla to version 0.9.13 (or higher). Otherwise, you'll need to write your own code to calculate the angle between two 3D vectors in radians.
Thanks, you solve my issue. BTW. I also proved the code I wrote to replace it correct.
In addition, I want to know how to incorporate the KING code and Advtraj (adversarial trajectory) into the FREA framework. Could you give me some guide or idea? To my knowledge, FREA framework is complete as opposed to Safebench in generating scenarios.
Thank you for your interest in FREA. The KING experiments in the paper are based on results from its official repository, analyzed using evaluation code. Unlike KING, our framework generates continuous traffic flow and selects CBVs for adversarial interactions. To incorporate KING (or any other adversarial method), you could apply it after CBV selection to generate adversarial trajectories for interaction with the ego vehicle and release the CBV as a regular vehicle when the attacking is done. This would require integrating KING into our framework and aligning its observation part.
AttributeError: 'Vector3D' object has no attribute 'get_vector_angle'
I have met an error in the following code, can you help me?
relative_delta_angle = math.degrees(ego_forward_vector.get_vector_angle(relative_direction))
direction_angle = math.degrees(ego_forward_vector.get_vector_angle(CBV_forward_vector))
delta_angle = math.degrees(current_vector.get_vector_angle(relative_direction))
I try to use the following code, but I don't know the correctness