-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
E57 element path well formed but not defined (ErrorPathUndefined) #58
Comments
Hello, |
I have had a similar error attempting to re-apply a previous header onto a new scan write. Any followup on what this error means? |
I was able to solve my issue by commenting out header attributes inside of |
Hi, I have the same issue. I solved it with changing the code locally. |
I am also experiencing the same issue related to the scan_header. The error I get the following:
I did a very dirty quickfix by simply altering the error handling code in ScanHeader.rotation from this: @property
def rotation(self) -> np.array:
try:
rotation = self.node["pose"]["rotation"]
q = Quaternion([e.value() for e in rotation])
except KeyError:
q = Quaternion()
return q.elements to this: @property
def rotation(self) -> np.array:
try:
rotation = self.node["pose"]["rotation"]
q = Quaternion([e.value() for e in rotation])
except Exception: # <-- here
q = Quaternion()
return q.elements I am not sure what is the most correct way to handle this though. But at least doing this for me lets me work on the point cloud. Maybe header.hasPose could do some kind of check whether the pose information is valid? Or, are there are any easy ways to amend such a .e57 file with a "corrupt" scanheader? EDIT: A better quickfix I did was to set transform=False, which just skips all of this. |
I had the error
File ".venv\lib\site-packages\pye57\e57.py", line 214, in read_scan xyz = self.to_global(xyz, header.rotation, header.translation) File ".venv\lib\site-packages\pye57\scan_header.py", line 32, in rotation q = Quaternion([e.value() for e in self.node["pose"]["rotation"]]) pye57.libe57.E57Exception: E57 element path well formed but not defined (ErrorPathUndefined)
for e57 files created from Recap and also the downloaded e57 sample file Trimble Data - Muliple Scans point cloud from libe57
Does anybody know this topic?
The text was updated successfully, but these errors were encountered: