MCPcopy Create free account

hub / github.com/bilalkabas/DRL-Nav / functions

Functions211 in github.com/bilalkabas/DRL-Nav

MethodgetMultirotorState
Args: vehicle_name (str, optional): Vehicle to get the state of Returns: MultirotorState:
scripts/airsim/client.py:1411
MethodgetRotorStates
Used to obtain the current state of all a multirotor's rotors. The state includes the speeds, thrusts and torques for all rotors.
scripts/airsim/client.py:1422
MethodgetSettingsString
Fetch the settings text being used by AirSim Returns: str: Settings text in JSON format
scripts/airsim/client.py:967
Functionget_pfm_array
(response)
scripts/airsim/utils.py:23
MethodgoHomeAsync
Return vehicle to Home i.e. Launch location Args: timeout_sec (int, optional): Timeout for the vehicle to reach desired
scripts/airsim/client.py:1007
MethodhoverAsync
(self, vehicle_name = '')
scripts/airsim/client.py:1117
MethodisApiControlEnabled
Returns true if API control is established. If false (which is default) then API calls would be ignored. After a successful call to
scripts/airsim/client.py:60
MethodisRecording
Whether Recording is running or not Returns: bool: True if Recording, else False
scripts/airsim/client.py:909
MethodlandAsync
Land the vehicle Args: timeout_sec (int, optional): Timeout for the vehicle to land vehicle_name (str, optio
scripts/airsim/client.py:994
MethodlistVehicles
Lists the names of current vehicles Returns: list[str]: List containing names of all vehicles
scripts/airsim/client.py:958
MethodmoveByAngleRatesThrottleAsync
- Desired throttle is between 0.0 to 1.0 - Roll rate, pitch rate, and yaw rate set points are given in **radians**, in the body frame
scripts/airsim/client.py:1315
MethodmoveByAngleRatesZAsync
- z is given in local NED frame of the vehicle. - Roll rate, pitch rate, and yaw rate set points are given in **radians**, in the bod
scripts/airsim/client.py:1280
MethodmoveByAngleThrottleAsync
(self, pitch, roll, throttle, yaw_rate, duration, vehicle_name = '')
scripts/airsim/client.py:1057
MethodmoveByAngleZAsync
(self, pitch, roll, z, yaw, duration, vehicle_name = '')
scripts/airsim/client.py:1054
MethodmoveByManualAsync
- Read current RC state and use it to control the vehicles. Parameters sets up the constraints on velocity and minimum altitude whil
scripts/airsim/client.py:1090
MethodmoveByMotorPWMsAsync
- Directly control the motors using PWM values Args: front_right_pwm (float): PWM value for the front right motor (betwe
scripts/airsim/client.py:1124
MethodmoveByRC
(self, rcdata = RCData(), vehicle_name = '')
scripts/airsim/client.py:1120
MethodmoveByRollPitchYawThrottleAsync
- Desired throttle is between 0.0 to 1.0 - Roll angle, pitch angle, and yaw angle are given in **radians**, in the body frame.
scripts/airsim/client.py:1175
MethodmoveByRollPitchYawZAsync
- z is given in local NED frame of the vehicle. - Roll angle, pitch angle, and yaw angle set points are given in **radians**, in the
scripts/airsim/client.py:1140
MethodmoveByRollPitchYawrateThrottleAsync
- Desired throttle is between 0.0 to 1.0 - Roll angle, pitch angle, and yaw rate set points are given in **radians**, in the body fra
scripts/airsim/client.py:1210
MethodmoveByRollPitchYawrateZAsync
- z is given in local NED frame of the vehicle. - Roll angle, pitch angle, and yaw rate set points are given in **radians**, in the b
scripts/airsim/client.py:1245
MethodmoveByVelocityZAsync
(self, vx, vy, z, duration, drivetrain = DrivetrainType.MaxDegreeOfFreedom, yaw_mode = YawMode(), vehicle_name
scripts/airsim/client.py:1076
MethodmoveByVelocityZBodyFrameAsync
Args: vx (float): desired velocity in the X axis of the vehicle's local NED frame vy (float): desired velocity in the
scripts/airsim/client.py:1037
MethodmoveOnPathAsync
(self, path, velocity, timeout_sec = 3e+38, drivetrain = DrivetrainType.MaxDegreeOfFreedom, yaw_mode = YawMode
scripts/airsim/client.py:1079
MethodmoveToPositionAsync
(self, x, y, z, velocity, timeout_sec = 3e+38, drivetrain = DrivetrainType.MaxDegreeOfFreedom, yaw_mode = YawM
scripts/airsim/client.py:1083
MethodnanPose
()
scripts/airsim/types.py:249
Methodouter_product
(self, other)
scripts/airsim/types.py:202
Functionread_pfm
Read a pfm file
scripts/airsim/utils.py:127
Functionread_pfm
Read a pfm file
scripts/airsim/pfm.py:8
Methodrender
(self)
scripts/airsim_env.py:47
Methodreset
Reset the vehicle to its original starting state Note that you must call `enableApiControl` and `armDisarm` again after the call to
scripts/airsim/client.py:20
Methodrotate
(self, other)
scripts/airsim/types.py:208
MethodrotateByYawRateAsync
(self, yaw_rate, duration, vehicle_name = '')
scripts/airsim/client.py:1114
MethodrotateToYawAsync
(self, yaw, timeout_sec = 3e+38, margin = 5, vehicle_name = '')
scripts/airsim/client.py:1111
MethodsetAngleLevelControllerGains
- Sets angle level controller gains (used by any API setting angle references - for ex: moveByRollPitchYawZAsync(), moveByRollPitchYawThrottl
scripts/airsim/client.py:1365
MethodsetAngleRateControllerGains
- Modifying these gains will have an affect on *ALL* move*() APIs. This is because any velocity setpoint is converted to an angle
scripts/airsim/client.py:1350
MethodsetCarControls
Control the car using throttle, steering, brake, etc. Args: controls (CarControls): Struct containing control values
scripts/airsim/client.py:1441
MethodsetPositionControllerGains
Sets position controller gains for moveByPositionAsync. This function should only be called if the default position control PID gains
scripts/airsim/client.py:1397
MethodsetVelocityControllerGains
- Sets velocity controller gains for moveByVelocityAsync(). - This function should only be called if the default velocity control PID
scripts/airsim/client.py:1381
Methodset_throttle
(self, throttle_val, forward)
scripts/airsim/types.py:352
Methodsetup_flight
(self)
scripts/airsim_env.py:209
Methodsgn
(self)
scripts/airsim/types.py:226
MethodsimAddDetectionFilterMeshName
Add mesh name to detect in wild card format For example: simAddDetectionFilterMeshName("Car_*") will detect all instance named "Car_
scripts/airsim/client.py:513
MethodsimAddVehicle
Create vehicle at runtime Args: vehicle_name (str): Name of the vehicle being created vehicle_type (str): Ty
scripts/airsim/client.py:943
MethodsimClearDetectionMeshNames
Clear all mesh names from detection filter Args: camera_name (str): Name of the camera, for backwards compatibility, ID
scripts/airsim/client.py:542
MethodsimContinueForFrames
Continue (or resume if paused) the simulation for the specified number of frames, after which the simulation will be paused. Args:
scripts/airsim/client.py:114
MethodsimContinueForTime
Continue the simulation for the specified number of seconds Args: seconds (float): Time to run the simulation for
scripts/airsim/client.py:105
MethodsimCreateVoxelGrid
Construct and save a binvox-formatted voxel grid of environment Args: position (Vector3r): Position around which voxel g
scripts/airsim/client.py:927
MethodsimDestroyObject
Removes selected object from the world Args: object_name (str): Name of object to be removed Returns:
scripts/airsim/client.py:473
MethodsimEnableWeather
Enable Weather effects. Needs to be called before using `simSetWeatherParameter` API Args: enable (bool): True to enable
scripts/airsim/client.py:201
MethodsimFlushPersistentMarkers
Clear any persistent markers - those plotted with setting `is_persistent=True` in the APIs below
scripts/airsim/client.py:783
MethodsimGetCameraInfo
Get details about the camera Args: camera_name (str): Name of the camera, for backwards compatibility, ID numbers such a
scripts/airsim/client.py:588
MethodsimGetDetections
Get current detections Args: camera_name (str): Name of the camera, for backwards compatibility, ID numbers such as 0,1,
scripts/airsim/client.py:555
MethodsimGetDistortionParams
Get camera distortion parameters Args: camera_name (str): Name of the camera, for backwards compatibility, ID numbers su
scripts/airsim/client.py:603
MethodsimGetGroundTruthEnvironment
Get ground truth environment state Args: vehicle_name (str, optional): Name of the vehicle Returns:
scripts/airsim/client.py:686
MethodsimGetGroundTruthKinematics
Get Ground truth kinematics of the vehicle Args: vehicle_name (str, optional): Name of the vehicle Returns:
scripts/airsim/client.py:672
MethodsimGetImage
Get a single image Returns bytes of png format image which can be dumped into abinary file to create .png image `string_to_u
scripts/airsim/client.py:223
MethodsimGetLidarSegmentation
NOTE: Deprecated API, use `getLidarData()` API instead Returns Segmentation ID of each point's collided object in the last Lidar upda
scripts/airsim/client.py:767
MethodsimGetMeshPositionVertexBuffers
Returns the static meshes that make up the scene See https://microsoft.github.io/AirSim/meshes/ for details and how to use this
scripts/airsim/client.py:320
MethodsimGetObjectPose
Args: object_name (str): Object to get the Pose of Returns: Pose:
scripts/airsim/client.py:379
MethodsimGetObjectScale
Gets scale of an object in the world Args: object_name (str): Object to get the scale of Returns: a
scripts/airsim/client.py:407
MethodsimGetSegmentationObjectID
Returns Object ID for the given mesh name Mapping of Object IDs to RGB values can be seen at https://microsoft.github.io/AirSim/seg_
scripts/airsim/client.py:502
MethodsimGetWorldExtents
Returns a list of GeoPoints representing the minimum and maximum extents of the world Returns: list[GeoPoint]
scripts/airsim/client.py:295
MethodsimIsPause
Returns true if the simulation is paused Returns: bool: If the simulation is paused
scripts/airsim/client.py:96
MethodsimListSceneObjects
Lists the objects present in the environment Default behaviour is to list all objects, regex can be used to return smaller list of m
scripts/airsim/client.py:433
MethodsimLoadLevel
Loads a level specified by its name Args: level_name (str): Name of the level to load Returns: bool
scripts/airsim/client.py:447
MethodsimPause
Pauses simulation Args: is_paused (bool): True to pause the simulation, False to release
scripts/airsim/client.py:87
MethodsimPlotArrows
Plots a list of arrows in World NED frame, defined from points_start[0] to points_end[0], points_start[1] to points_end[1], ... , points_star
scripts/airsim/client.py:828
MethodsimPlotLineList
Plots a line strip in World NED frame, defined from points[0] to points[1], points[2] to points[3], ... , points[n-2] to points[n-1]
scripts/airsim/client.py:815
MethodsimPlotLineStrip
Plots a line strip in World NED frame, defined from points[0] to points[1], points[1] to points[2], ... , points[n-2] to points[n-1]
scripts/airsim/client.py:802
MethodsimPlotPoints
Plot a list of 3D points in World NED frame Args: points (list[Vector3r]): List of Vector3r objects color_rg
scripts/airsim/client.py:789
MethodsimPlotStrings
Plots a list of strings at desired positions in World NED frame. Args: strings (list[String], optional): List of strings
scripts/airsim/client.py:844
MethodsimPlotTransforms
Plots a list of transforms in World NED frame. Args: poses (list[Pose]): List of Pose objects representing the transform
scripts/airsim/client.py:857
MethodsimPlotTransformsWithNames
Plots a list of transforms with their names in World NED frame. Args: poses (list[Pose]): List of Pose objects represent
scripts/airsim/client.py:870
MethodsimPrintLogMessage
Prints the specified message in the simulator's window. If message_param is supplied, then it's printed next to the message and in t
scripts/airsim/client.py:571
MethodsimRunConsoleCommand
Allows the client to execute a command in Unreal's native console, via an API. Affords access to the countless built-in commands such
scripts/airsim/client.py:305
MethodsimSetCameraFov
- Control the field of view of a selected camera Args: camera_name (str): Name of the camera to be controlled
scripts/airsim/client.py:659
MethodsimSetCameraPose
- Control the pose of a selected camera Args: camera_name (str): Name of the camera to be controlled pose (P
scripts/airsim/client.py:646
MethodsimSetDetectionFilterRadius
Set detection radius for all cameras Args: camera_name (str): Name of the camera, for backwards compatibility, ID number
scripts/airsim/client.py:529
MethodsimSetDistortionParams
Set camera distortion parameters Args: camera_name (str): Name of the camera, for backwards compatibility, ID numbers su
scripts/airsim/client.py:618
MethodsimSetObjectPose
Set the pose of the object(actor) in the environment The specified actor must have Mobility set to movable, otherwise there will be
scripts/airsim/client.py:390
MethodsimSetObjectScale
Sets scale of an object in the world Args: object_name (str): Object to set the scale of scale_vector (airsi
scripts/airsim/client.py:420
MethodsimSetSegmentationObjectID
Set segmentation ID for specific objects See https://microsoft.github.io/AirSim/image_apis/#segmentation for details Args:
scripts/airsim/client.py:484
MethodsimSetTimeOfDay
Control the position of Sun in the environment Sun's position is computed using the coordinates specified in `OriginGeopoint` in set
scripts/airsim/client.py:181
MethodsimSetTraceLine
Modify the color and thickness of the line when Tracing is enabled Tracing can be enabled by pressing T in the Editor or setting `En
scripts/airsim/client.py:366
MethodsimSetWeatherParameter
Enable various weather effects Args: param (WeatherParameter): Weather effect to be enabled val (float): Int
scripts/airsim/client.py:210
MethodsimSetWind
Set simulated wind, in World frame, NED direction, m/s Args: wind (Vector3r): Wind, in World frame, NED direction, in m/
scripts/airsim/client.py:918
MethodsimSpawnObject
Spawned selected object in the world Args: object_name (str): Desired name of new object asset_name (str): Na
scripts/airsim/client.py:459
MethodsimSwapTextures
Runtime Swap Texture API See https://microsoft.github.io/AirSim/retexturing/ for details Args: tags (str): stri
scripts/airsim/client.py:161
MethodsimTestLineOfSightBetweenPoints
Returns whether the target point is visible from the perspective of the source point Args: point1 (GeoPoint): source poi
scripts/airsim/client.py:282
MethodsimTestLineOfSightToPoint
Returns whether the target point is visible from the perspective of the inputted vehicle Args: point (GeoPoint): target
scripts/airsim/client.py:269
MethodstartRecording
Start Recording Recording will be done according to the settings
scripts/airsim/client.py:895
MethodstopRecording
Stop Recording
scripts/airsim/client.py:903
Functionstring_to_float_array
(bstr)
scripts/airsim/utils.py:17
Functionstring_to_uint8_array
(bstr)
scripts/airsim/utils.py:14
MethodtakeoffAsync
Takeoff vehicle to 3m above ground. Vehicle should not be moving when this API is used Args: timeout_sec (int, optional)
scripts/airsim/client.py:981
Methodto_Quaternionr
(self)
scripts/airsim/types.py:137
Functionto_eularian_angles
(q)
scripts/airsim/utils.py:55
Methodto_list
(self)
scripts/airsim/types.py:490
Methodto_lists
(self)
scripts/airsim/types.py:509
← previousnext →101–200 of 211, ranked by callers