-
Notifications
You must be signed in to change notification settings - Fork 8
API Reference
We provide a python client that shows how to use VIVID API here.
Note: To prevent unpredictable behavior, a short delay must be included after calling environment state changing functions.
Return True
when the vehicle collides with something.
Returns
boolean
Reset the location of the vehicle to the default spawn point set by setLocation(x, y, z) in a map.
Returns
void
Get vehicle's current location.
Returns
list of float: [x, y, z]
Set vehicle's location.
Parameters
x, y, z
: target location (in centimeter)
Returns
void
Get vehicle's current direction.
Returns
list of float: [roll, yaw, pitch]
Move the vehicle by specify distance. Return True
when success.
Parameters
dx, dy, dz
: distances to move along corresponding axes (in centimeter). Note that the coordinate is egocentric.
Returns
boolean
Turn vehicle by degree on yaw axis. Return True
when success.
Parameters
degree
: positive for clockwise rotation
Returns
boolean
Spawn an object at the specified location. Return True
when success.
Parameters
obj_type
: -1: fire, 0: chair, 1: table, 2: bookshelf, 3: door, 4: stair
x, y, z
: target location (in centimeter)
Returns
boolean
Camera control. Refer to Tutorial 01: Capture Screens for detail information.
Returns
list of compressed png byte array
Return True
when the map can be reloaded.
Note: The client will be disconnected and need to reconnect back after the new map is reloaded.
Parameters
map_id
: the index of the list obtained bygetMapNames()
Returns
boolean
Return ['map_0', 'map_1', ...], the list of map names
Returns
list of string