carla.Location and get_location() 's difference #5459
Unanswered
EnjoyingSunshine
asked this question in
Q&A
Replies: 1 comment
-
self.get_location returns the absolute location for map. For your example, the result is the second one(Location(x=57.403641, y=28.343533, z=0.600000)). |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
carlar.Location function gets the absolute location for map ?
self.get_location gets the relative location for self?
for self.get_location ,have some examples :
bp = blueprint_library.filter('model3')[0]
transform = Transform(Location(x=57.403641, y=28.343533, z=0.600000), Rotation(pitch=0, yaw=0, roll=0))
vehicle = world.spawn_actor(bp, transform)
vehicle.get_location() return :(2 situations)
1.Location(x=00.000000, y=00.000000, z=00.000000)
2.Location(x=57.403641, y=28.343533, z=0.600000)
Beta Was this translation helpful? Give feedback.
All reactions