Skip to content
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

Bugfix - lidarview pose3d #984

Merged
merged 4 commits into from
Apr 3, 2024
Merged

Bugfix - lidarview pose3d #984

merged 4 commits into from
Apr 3, 2024

Conversation

tajgr
Copy link
Collaborator

@tajgr tajgr commented Mar 13, 2024

The lidarview does not work if only pose3d is available. It looks there is just wrong indentation. However, i am not sure so please for careful review.

@tajgr tajgr requested a review from m3d March 13, 2024 19:44
@@ -416,14 +416,15 @@ def _step(self, direction):
arr = deserialize(data)
assert len(arr) == 3
self.pose = (arr[0]/1000.0, arr[1]/1000.0, math.radians(arr[2]/100.0))
if stream_id in [self.pose2d_id, self.pose3d_id]:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

well, it is probably not correct - I would add there elif stream_id in [self.pose2d_id, self.pose3d_id]: and inside handle if pose2d else pose3d and them common crazy correction for g_rotation_offset_rad :(

keyframe = self.keyframe
self.keyframe = False
return timestamp, self.frame, self.pose, self.pose3d, self.scan, self.scan2, self.image, self.image2, self.bbox, self.joint, keyframe, self.title, False
if self.lidar_id is None and self.camera_id is None:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this if section not lidar and not camera is really INSIDE the processing of pose (future pose3d) and it is ment to define keyframe (lidar is primary, camera secondary and pose is tertiary)

@tajgr
Copy link
Collaborator Author

tajgr commented Apr 2, 2024

Thanks for comments, please check my fix.

Copy link
Member

@m3d m3d left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this looks better, thanks

@tajgr tajgr merged commit 7bdc4f7 into master Apr 3, 2024
6 checks passed
@tajgr tajgr deleted the bugfix/lidarview_pose3d branch April 3, 2024 21:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants