@@ -110,7 +110,7 @@ def simContinueForTime(self, seconds):
110110 seconds (float): Time to run the simulation for
111111 """
112112 self .client .call ('simContinueForTime' , seconds )
113-
113+
114114 def simContinueForFrames (self , frames ):
115115 """
116116 Continue (or resume if paused) the simulation for the specified number of frames, after which the simulation will be paused.
@@ -305,7 +305,7 @@ def simGetImages(self, requests, vehicle_name = '', external = False):
305305 """
306306 responses_raw = self .client .call ('simGetImages' , requests , vehicle_name , external )
307307 return [ImageResponse .from_msgpack (response_raw ) for response_raw in responses_raw ]
308-
308+
309309 def simTestLineOfSightToPoint (self , point , vehicle_name = '' ):
310310 """
311311 Returns whether the target point is visible from the perspective of the inputted vehicle
@@ -318,7 +318,7 @@ def simTestLineOfSightToPoint(self, point, vehicle_name = ''):
318318 [bool]: Success
319319 """
320320 return self .client .call ('simTestLineOfSightToPoint' , point , vehicle_name )
321-
321+
322322 def simTestLineOfSightBetweenPoints (self , point1 , point2 ):
323323 """
324324 Returns whether the target point is visible from the perspective of the source point
@@ -331,7 +331,7 @@ def simTestLineOfSightBetweenPoints(self, point1, point2):
331331 [bool]: Success
332332 """
333333 return self .client .call ('simTestLineOfSightBetweenPoints' , point1 , point2 )
334-
334+
335335 def simGetWorldExtents (self ):
336336 """
337337 Returns a list of GeoPoints representing the minimum and maximum extents of the world
@@ -483,7 +483,7 @@ def simListSceneObjects(self, name_regex = '.*'):
483483 list[str]: List containing all the names
484484 """
485485 return self .client .call ('simListSceneObjects' , name_regex )
486-
486+
487487 def simLoadLevel (self , level_name ):
488488 """
489489 Loads a level specified by its name
@@ -496,28 +496,37 @@ def simLoadLevel(self, level_name):
496496 """
497497 return self .client .call ('simLoadLevel' , level_name )
498498
499+ def simListAssets (self ):
500+ """
501+ Lists all the assets present in the Asset Registry
502+
503+ Returns:
504+ list[str]: Names of all the assets
505+ """
506+ return self .client .call ('simListAssets' )
507+
499508 def simSpawnObject (self , object_name , asset_name , pose , scale , physics_enabled = False , is_blueprint = False ):
500509 """Spawned selected object in the world
501-
510+
502511 Args:
503512 object_name (str): Desired name of new object
504513 asset_name (str): Name of asset(mesh) in the project database
505514 pose (airsim.Pose): Desired pose of object
506515 scale (airsim.Vector3r): Desired scale of object
507516 physics_enabled (bool, optional): Whether to enable physics for the object
508517 is_blueprint (bool, optional): Whether to spawn a blueprint or an actor
509-
518+
510519 Returns:
511520 str: Name of spawned object, in case it had to be modified
512521 """
513522 return self .client .call ('simSpawnObject' , object_name , asset_name , pose , scale , physics_enabled , is_blueprint )
514523
515524 def simDestroyObject (self , object_name ):
516525 """Removes selected object from the world
517-
526+
518527 Args:
519528 object_name (str): Name of object to be removed
520-
529+
521530 Returns:
522531 bool: True if object is queued up for removal
523532 """
@@ -567,7 +576,7 @@ def simAddDetectionFilterMeshName(self, camera_name, image_type, mesh_name, vehi
567576
568577 """
569578 self .client .call ('simAddDetectionFilterMeshName' , camera_name , image_type , mesh_name , vehicle_name , external )
570-
579+
571580 def simSetDetectionFilterRadius (self , camera_name , image_type , radius_cm , vehicle_name = '' , external = False ):
572581 """
573582 Set detection radius for all cameras
@@ -580,7 +589,7 @@ def simSetDetectionFilterRadius(self, camera_name, image_type, radius_cm, vehicl
580589 external (bool, optional): Whether the camera is an External Camera
581590 """
582591 self .client .call ('simSetDetectionFilterRadius' , camera_name , image_type , radius_cm , vehicle_name , external )
583-
592+
584593 def simClearDetectionMeshNames (self , camera_name , image_type , vehicle_name = '' , external = False ):
585594 """
586595 Clear all mesh names from detection filter
@@ -654,7 +663,7 @@ def simGetDistortionParams(self, camera_name, vehicle_name = '', external = Fals
654663 Returns:
655664 List (float): List of distortion parameter values corresponding to K1, K2, K3, P1, P2 respectively.
656665 """
657-
666+
658667 return self .client .call ('simGetDistortionParams' , str (camera_name ), vehicle_name , external )
659668
660669 def simSetDistortionParams (self , camera_name , distortion_params , vehicle_name = '' , external = False ):
@@ -975,7 +984,7 @@ def simSetWind(self, wind):
975984 Set simulated wind, in World frame, NED direction, m/s
976985
977986 Args:
978- wind (Vector3r): Wind, in World frame, NED direction, in m/s
987+ wind (Vector3r): Wind, in World frame, NED direction, in m/s
979988 """
980989 self .client .call ('simSetWind' , wind )
981990
0 commit comments