NameError: name 'DistanceSensorData' is not defined
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
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
Is there any update on this issue?
I was able to fix this by adding the following code the the types file.
AirSim\PythonClient\airsim\types.py
Add:
class DistanceSensorData(MsgpackMixin):
time_stamp = np.uint64(0)
distance = Quaternionr()
min_distance = Quaternionr()
max_distance = Quaternionr()
relative_pose = Pose()
@ACLeighner please feel free to submit a PR!