You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried to implement the getDistanceSensorData(lidar_name, vehicle_name) method but I received the following error.
NameError: name 'DistanceSensorData' is not defined
Trace: Traceback (most recent call last):
File "Path/to/my/project.py", line 399, in
handlerObj.main()
File "Path/to/my/project.py", line 351, in main
print(airSimObj.getDistanceSensorData(client=drone_client, vehicle_name=vehicles[0]))
File "Path/to/my/project.py", line 291, in getDistanceSensorData
client.getDistanceSensorData()
File "C:\Program Files\Python36\lib\site-packages\airsim\client.py", line 157, in getDistanceSensorData
return DistanceSensorData.from_msgpack(self.client.call('getDistanceSensorData', distance_sensor_name, vehicle_name))
NameError: name 'DistanceSensorData' is not defined
I tried to find the DistanceSensorData class but couldn't find it. Has anyone faced a similar issue? And if so, how did you resolve it?
Any help is much appreciated
The text was updated successfully, but these errors were encountered:
I tried to implement the getDistanceSensorData(lidar_name, vehicle_name) method but I received the following error.
NameError: name 'DistanceSensorData' is not defined
Trace:
Traceback (most recent call last):
File "Path/to/my/project.py", line 399, in
handlerObj.main()
File "Path/to/my/project.py", line 351, in main
print(airSimObj.getDistanceSensorData(client=drone_client, vehicle_name=vehicles[0]))
File "Path/to/my/project.py", line 291, in getDistanceSensorData
client.getDistanceSensorData()
File "C:\Program Files\Python36\lib\site-packages\airsim\client.py", line 157, in getDistanceSensorData
return DistanceSensorData.from_msgpack(self.client.call('getDistanceSensorData', distance_sensor_name, vehicle_name))
NameError: name 'DistanceSensorData' is not defined
I tried to find the DistanceSensorData class but couldn't find it. Has anyone faced a similar issue? And if so, how did you resolve it?
Any help is much appreciated
The text was updated successfully, but these errors were encountered: