Skip to content

Metadrive simulator #440

Closed Answered by QuanyiLi
VishalP227 asked this question in Q&A
May 16, 2023 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

Hi,

Welcome to MetaDrive and thanks for your interest!

Q1: FPP view

You can set the pose and position of the default camera via the environment config. I believe these options can satisfy most requirements. We are going to expose an API taking extrinsic/intrinsic matrix soon.

"camera_dist": -0.5, # set -0.5 to move it to the front of the Car
"camera_height": 0.5, 
"camera_pitch": np.pi / 3, # make it look at the ground
"camera_fov": 60,

Q2: Multi-player Vehicle Control

Nice idea. I believe it can be supported easily. In MetaDrive, all vehicles and objects are controlled by policies, which are inherited from class BasePolicy. Take ManulaControlPolicy as an example:

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@VishalP227
Comment options

@QuanyiLi
Comment options

Answer selected by VishalP227
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants