Skip to content

Commit

Permalink
Merge pull request #2403 from sorensenmarius/master
Browse files Browse the repository at this point in the history
Fix missing DistanceSensorData type and wrong param name in getDistanceSensorData()
  • Loading branch information
madratman authored Mar 23, 2020
2 parents 40e3646 + 3e1984f commit 67f2b6f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion PythonClient/airsim/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ def getMagnetometerData(self, magnetometer_name = '', vehicle_name = ''):
def getGpsData(self, gps_name = '', vehicle_name = ''):
return GpsData.from_msgpack(self.client.call('getGpsData', gps_name, vehicle_name))

def getDistanceSensorData(self, lidar_name = '', vehicle_name = ''):
def getDistanceSensorData(self, distance_sensor_name = '', vehicle_name = ''):
return DistanceSensorData.from_msgpack(self.client.call('getDistanceSensorData', distance_sensor_name, vehicle_name))

def getLidarData(self, lidar_name = '', vehicle_name = ''):
Expand Down
9 changes: 8 additions & 1 deletion PythonClient/airsim/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -396,4 +396,11 @@ class GnssReport(MsgpackMixin):
class GpsData(MsgpackMixin):
time_stamp = np.uint64(0)
gnss = GnssReport()
is_valid = False
is_valid = False

class DistanceSensorData(MsgpackMixin):
time_stamp = np.uint64(0)
distance = Quaternionr()
min_distance = Quaternionr()
max_distance = Quaternionr()
relative_pose = Pose()

0 comments on commit 67f2b6f

Please sign in to comment.