Metadrive simulator #440
-
I had a few questions about the possible functionalities of the Metadrive simulator as given below:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hi, Welcome to MetaDrive and thanks for your interest! Q1: FPP viewYou 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.
Q2: Multi-player Vehicle ControlNice idea. I believe it can be supported easily. In MetaDrive, all vehicles and objects are controlled by policies, which are inherited from The def act function decides the steering and throttle for the controlled vehicle by reading the keyboard or joystick input and will be called each frame automatically. Therefore, you can write your own policy to determine how to get the throttle and steering command for each vehicle. This policy can read the input from another set of keys, another device, like the steering wheel, or even another machine (add some communication mechanism). The only thing that needs to care about is binding the target vehicles and different policy instances via engine.add_policy(object, policy) .
Q3: Run in web-browserWell, I am a noob about web services, so I can not give you a certain answer. But I remember our game engine supports web-gl as the rendering backend, so it might be possible. I am not 100% sure about this, sorry. |
Beta Was this translation helpful? Give feedback.
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.
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
. TakeManulaControlPolicy
as an example:metadrive/metadrive/…