Skip to content

camera pos #65

Open
Open

Description

@lhjackgod

Hello! Thank you very much for creating this dataset. I've been trying to reproduce it recently. However, when I use the offset relative to the world coordinates, I can't obtain the same viewing angles as yours. I'd like to ask how you defined the origin of the world coordinate system. This is how I define the camera, and it's really crucial for me. Thank you for your reply.
this is my code:

vehicle_pos = airsim.Pose(airsim.Vector3r(0, 0, 0), airsim.Quaternionr(0, 0, 0, 1))
client.simSetVehiclePose(vehicle_pos, True)
tx, ty, tz, qx, qy, qz, qw = pos.tolist()
cameraPos =airsim.Pose(airsim.Vector3r(tx, ty, tz), airsim.Quaternionr(qx, qy, qz, qw))
client.simSetCameraPose('0', cameraPos)

Activity

  1. Amigoshan commented on Jul 9, 2025

    @Amigoshan
    Contributor

    The choice of the origin is quite arbitrary. It is environment-specific. Please see this image for some rough information. The start x/y/z column shows the coordinates of the "player start" in the Unreal Engine.

    Image
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions